liveBook · Manning

Normal distribution

As explained in Ensemble Methods for Machine Learning

The normal distribution, also called the Gaussian distribution, is a continuous probability distribution with a symmetric bell-shaped density determined by a mean and variance.

The normal distribution, also called the Gaussian distribution, describes how continuous-valued quantities spread around a typical value. Its familiar bell-shaped curve makes it a natural model for continuous targets and regression residuals. section 7.1.2

Linear regression assumes that prediction errors follow a normal distribution. Operationally, it chooses a linear model whose residuals fit this continuous distribution rather than treating every target as a count. section 7.1.2

Use the distributional assumption to distinguish related regression settings:

  • Choose a normal-error model for continuous-valued labels such as noisy measurements. section 7.1.2
  • Use squared error when directly corresponding to a Gaussian residual assumption; it penalizes large errors strongly and is sensitive to outliers. section 7.3.1
  • Do not use the normal model automatically for count labels: counts are discrete and often follow a Poisson distribution instead. section 7.1.2

Continuous versus count predictions

A linear regression model can represent a continuous target through normally distributed residuals. The same approach is unsuitable for visits or other counts, where predictions such as 2.41 or −4.7 are problematic and the target distribution differs. section 7.1.2

Figure 7.2 Linear regression (left) fits continuous-valued targets by assuming that the spread of the targets can be modeled by the continuous-valued normal distribution (right). More precisely, linear regression assumes that the predictions f(x) for an example x are distributed according to the normal distribution.
CH07_F02_Kunapuli

Visualize linear regression alongside normal distributions to see how the assumed spread of continuous predictions relates to the fitted line. section 7.1.2

How Ensemble Methods for Machine Learning covers it

How deep it goes
Explains the distribution intuitively through regression, then connects it to squared error and negative log-likelihood.
Examples
Illustrates continuous and count targets with regression diagrams, normal overlays, squared-error curves, and contrasting Poisson examples.
What it assumes
Assumes familiarity with regression and residuals while distinguishing continuous-valued labels from count-valued labels.
What you can do after
Evaluate whether a normal-error assumption and squared-error loss suit a regression target.
How it connects
Connects the normal distribution to linear regression, residuals, squared error, negative log-likelihood, and the Poisson distribution.

Also explained in

Compare how 16 books explain normal distribution →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Ensemble Methods for Machine Learning. The section links point to the parts of the book it draws on.