One- and two-variable statistics: linear regression
Course · Mathematics (Grade 12 Sociology and Economics, Lebanon), chapter 8 · Lebanon, Grade 12 Sociology and Economics · the beginning of the chapter, the rest on Adloun
Analyzing the distribution of the incomes of a population, summarizing by a few reliable indicators the performance of a group or the consistency of a production, then studying how two economic or demographic quantities vary together in order to predict one from the other: these are the two main objectives of descriptive statistics in the final year of secondary school.
This chapter is devoted to the study of bivariate statistical series: scatter plot, mean point , covariance, linear correlation coefficient and linear fitting by the least squares method (regression lines and , predictions and changes of variable). It opens with the measures of position and of dispersion of a one-variable series (mean, variance, standard deviation), which are used to compute the marginal series.
Curriculum: LB-SE
Required skills
- Represent the scatter plot of a bivariate statistical series and determine the coordinates of the mean point .
- Calculate the covariance and the linear correlation coefficient , and interpret the strength of the linear relationship between and .
- Determine the equations of the regression lines and by the least squares method, use them to make estimates, and handle fits that reduce to the affine case by a change of variable.
8.1 Measures of position of a statistical series
Consider a quantitative statistical series on a population with total frequency . When the variable is discrete, it takes the values with respective frequencies (and relative frequencies ). When it is continuous, the observations are grouped into adjacent classes with width , midpoint and frequency .
8.1.1 The mode – the modal class
- For a discrete series, a mode (denoted ) is any value of the variable whose frequency (or relative frequency ) is maximal.
- For a continuous series grouped into classes of equal width, a modal class is any class whose frequency is maximal. The midpoint of this class is often taken as an approximate value of the mode.
- If the classes have unequal widths , the modal class is the one whose frequency density is maximal.
8.1.2 The mean
- For a discrete series with total frequency , the arithmetic mean is the real number defined by:
- For a continuous series grouped into classes with midpoints , the arithmetic mean is evaluated by assigning to each class its midpoint :
If each value of a statistical series is replaced by (where ), the new mean is:
In particular, the weighted sum of the deviations from the mean is always zero: .
8.1.3 Median and median class
The median of a statistical series (denoted ) is a real number that divides the population, ordered by increasing values, into two subsets of the same size: at least of the individuals have a value less than or equal to , and at least have a value greater than or equal to .
- Case of an ordered discrete series ( values arranged as ):
- if is odd, the median is the central value of rank : ;
- if is even, by convention we take half the sum of the two central values of ranks and : .
- Case of a continuous series grouped into classes :
- the median class is the first class for which the increasing cumulative frequency reaches or exceeds (that is, an increasing cumulative relative frequency );
- assuming that the observations are uniformly distributed in the median class , the median is the abscissa of the point with ordinate (or ) on the increasing cumulative frequency (or relative frequency) polygon. By linear interpolation:
8.1.4 Comparison between arithmetic mean, mode and median
- Sensitivity to extreme values: the mean uses all the values of the series; it is very sensitive to exceptionally large or small values (outliers). By contrast, the median depends only on the central rank: it is a robust indicator, preferred in economics and sociology for studying skewed distributions such as wages or wealth.
- Symmetry of the distribution: for a symmetric unimodal distribution, the three indicators coincide (). If the series is spread out toward high values (right skew), the mean is pulled upward and we generally observe .
8.2 Measures of dispersion of a statistical series
Two statistical series can have exactly the same mean and the same median while showing very different profiles: one concentrated around the mean (homogeneous series), the other very spread out (heterogeneous series). The measures of dispersion measure this spread.
Exercises of the chapter
- Least squares affine fit and economic forecast solved
- Using the two regression lines and together solved
- Finding a missing parameter in a bivariate series solved
- Combining two subpopulations: overall mean and variance solved
- Problem: Comparing an affine model and an exponential model solved
- Time series, linear correlation and least squares line solved