Coursera Machine Learning Notes (vii)

Source: Internet
Author: User

Mainly for the ninth week content: Anomaly detection, recommendation system

(i) Anomaly detection (DENSITY estimation)

kernel density estimation ( Kernel density estimation X (1) , X (2) ,.., x (m) If the data set is normal, we want to know the new data X (test) p (x)

After density estimation, it is a common method to select a probability threshold to determine whether it is an anomaly, which is often used in anomaly detection. Such as:

  1. Gaussian distribution

    The Gaussian kernel function is the kernel function commonly used in kernel density estimation. The one-element Gaussian probability density function is:

    You can use the data you already have to predict the overall μ and the σ2 The calculation method is as follows:

    The probability density function of the multivariate Gaussian distribution is:

    Note: For variance in machine learning we usually divide by m rather than statistically ( m-1 ).

  2. Anomaly Detection

    in a general Gaussian distribution model, for a given data set x (1), X (2),..., x (m) , we want to calculate for each feature μ and the σ2 estimates, based on the model calculation p (x) :

    As shown in the following:

    for the multivariate Gaussian distribution model, First we calculate the average of all the features, then we calculate the covariance matrix, and finally we calculate the p (x)of the multivariate Gaussian distribution:

(b) Referral system

Based on content

Based on user

Http://www.ccf.org.cn/resources/1190201776262/2010/05/12/h049617016.pdf

Coursera Machine Learning Notes (vii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.