Summary

Some basics of statistical learning; least squares and k nearest neighbors; statistical decision theory; local methods in high dimensions

**Skeleton notes**

Abbreviations

- MSE: mean squared error
- EPE: expected prediction error
- RSS: sum of squares

Notations

Fonts:

- Vectors or scalars are denoted by italic math font .
- Components of vectors are denoted by subscripts .
- Matrix is denoted by math bold font .

Symbols

- for input variables;
- for quantitative output;
- for qualitative output;
- for prediction.

Least square model:

Residual sum of squares (RSS):

The parameters we need is the set that minimizes RSS, which requires

So we can solve the parameters easily.

For input data , calculate the Euclidean distance between and other input data .

Choose the nearest neighbors based on the distance.

Output prediction is determined by average of the corresponding outputs of the selected inputs.

Metric of Distance

For the calculation of distance, metric must be implemented. The book used examples of Euclidean metric. Another metric that can be inspiring is the hyperbolic space. I talked about this in Popularity vs Similarity in Growing Networks.

- Least squares: Gaussian-like data set;
- Nearest-Neighbor: mixture of Gaussians.

Mixture of Gaussian

Mixture of Gaussians can be described by generative model. I am not really sure what that is. It seems to me that the final data is basically generated from Gaussians of different parameters which are generated randomly.

Given input and output ;

Following a joint distribution ;

Based on input and output, we look for a function that predicts the behavior, i.e., ;

How well the prediction is defined by squared error loss .

With the distribution, we predict the expected prediction error (EPE) as

The book derived that the best prediction is .

Different loss functions lead to different EPE’s.

About Probability Distribution

Question: Can we simply solve the probability distribution and find out the function of prediction? The conclusion says the best prediction of is the conditional mean. Is it effectively solving from the probability distribution?

- The best prediction based on EPE is conditional mean, Eq. 2.13;
- Both nearest neighbor and linear regression fits into this framework;
- Additive models: basically turn the linear into a function of . The summation still holds.
- The best prediction based on expectation only is conditional median.
- Categorical variable also follows the same paradigm but with different loss function.
- A choice of loss function for categorical case is a matrix. It has to be a matrix because we have to specify penalties a given prediction class compared to the output class. The dimension of this matrix should be the number of categories. It is rank 2.

Some comments on this section

- 0 neighbor indicates an exact classification for the sample data but without the implementation of expectation values at each point since there is only one value at that point in one set of sample data;
- nearest neighbor assumed that expectation around a small patch of a point is identical to expectation at the exact point with the corresponding distribution.
- In
**Monte Carlo method**, calculation of volume in high dimension converges very slowly. The reason is that we need a very large number of sampling points since the dimension is high. The procedure is multiplicative. The same thing might happen here. nearest neighbor is basically some kind of averaging procedure of the volume density. It requires a large number of sample data points to perform an fairly accurate average. - The linear regression is basically a first order Taylor expansion of the approximator , .

Curse of high dimensions: edge length of a cube of volume is . An extreme example: .

Small volume leads to high variance.

Homogeneous sampling doesn’t work in high dimensions. Since most points will fall near the edges.

Requires huge number of sample points in high dimensions.

Weird SubSection

I didn’t not get the point of this subsection. It seems that the authors are talking about whether it is proper to assume the relation between input and output is deterministic.

- learn by example.

- Linear model;
- Function as basis (Eq. 2.30): .
- Examples of function bases are Fourier expansions, sigmoid, etc.
- Learning through minimizing sum of squares (RSS), or maximum likelihood estimation, etc.
- Maximum likelihood estimation: 1. Likelihood: ; 2. Maximized it (“probability of the observed sample is largest”) 3. Minimizing RSS is equivalent to maximum likelihood estimation. Eq. 2.35.

© 2018, Lei Ma| GitHub| Statistical Mechanics Notebook | Index | Page Source| changelog| Created with Sphinx