
Part 1: Statistics and Econometrics. MK68-2024/25
Justus Liebig University Giessen
Institute of Agricultural Policy and Market Research



Mean is heavily affected by influential observations.
Median is more robust.
Show all the data points at once with their contribution to the distribution of the value x
See Ch. 8 Visualizing distributions: Empirical cumulative distribution functions and q-q plots in Fundamentals of Data Visualization (Wilke 2019)
See also prerequisites materials
How to:
Order all observation ascendingly.
Plot cumulative frequency for every existing observation on Y axis.










Measuring income inequality



The Lorenz curve:
Is a cumulative distribution
Arrange all individuals by increasing income
Compute cumulative % of people by income level (0 to 100% of all people).





How has income distribution changed between 1988 and 2011?
What statistical concept underlies the computation of the Lorenz curve?
See also: https://ourworldindata.org/the-history-of-global-economic-inequality

Joe Hasell (2023) - “Measuring inequality: What is the Gini coefficient?” Published online at OurWorldInData.org. Retrieved from: https://ourworldindata.org/what-is-the-gini-coefficient [Online Resource]

Source: (Todaro and Smith 2014)
Variance (\(Var[X]\)) is a measure of the spread of a distribution relative to its expected value (Dowdy et al. 2004)
Standard Deviation (SD) is the squared root of the variance:
\[ \sigma^2 = \frac{\sum_{i=1}^N [x_i - \mu]^2 }{N}, \]
where \(\mu\) is the population mean:
\(\mu = {\sum_{i=1}^N x_i }/{N}\)
Only used with the population
\(\sigma = \sqrt{\sigma^2}\)
\[ s^2 = \frac{\sum_{i=1}^N [x_i - \bar{x}]^2 }{N-1}, \]
where \(\bar{x}\) is the sample mean:
\(\bar{x} = {\sum_{i=1}^N x_i }/{N}\)
Most commonly used in statistics
\(s = \sqrt{s^2}\)
represents the “typical” deviation of observations from the mean.
If the distribution is normal:
The standard deviation is in the same units of measurement as the measured variable.




Note
A good description of distribution should include
Central tendency;
SD (Variance);
Description of the shape;
modes
symmetry / skew
Source: (Diez et al. 2022).
cut points that divide our data into equal chunks with equal probability of being selected (equal number of observations in each chunk).
Quantiles: Quartiles (4), Deciles (10), Percentiles (100)…
Range
IQR - Interquartile range






See more on the Gamma distribution


Let us draw a histogram with frequency by deciles!



Let us plot % share of total income on Y axis.



What does it show?
Where is the global income generated and distributed?

What had changed between 1998 and 2011?



Fiscal policy can redistribute income
Taxes could be ‘collected’ from the ‘rich’:
Subsidies could ‘distribute’ wealth to the ‘poor’:
Data below is produced based on the representative HH surveys.
For each individual income by sources and expenditure by cause are calculated.
Then individuals are aggregated into the deciles of income.
Each individual earns market income, while taxes and subsidies subtract or add to it.
Would the mean or the median best represent the central tendency?
What does this say about the robustness of the two measures?
Would the standard deviation or the IQR best represent the amount of variability in the incomes?
Source: (Diez et al. 2022)
Source: (Diez et al. 2022)
Important
Stunting is the impaired growth and development that children experience from poor nutrition, repeated infection, and inadequate psycho-social stimulation
Source: What is childhood stunting?
WHO has developed:
The Height-for-age standard stipulates:




Random sample of children was followed in each country for several years.
Children were regularly screened and measured.
For every age group:
Mean/median and standard deviation were calculated.
Any child with height-for-age within two standard deviations from the mean is considered non-stunting.
For a regular population, 95% of children are not stunted.





WHO’s data on the healthy population defined
by:
Calculating mean, height at age and its standard deviation
Assuming that the distribution is normal
Stunting was defined as:


Is the symmetric, bell-shaped normal distribution, whit:
\(\mu = 0\),
\(\text{SD} = 1\).


The Z-score of an observation \(x_i\) is the number of standard deviations \(s\) that it (\(x_i\)) falls above or below the mean \(\bar x\).
We can compute a z-score of every observation \(x_i\) in our sample. For that we need:
\[ Z_i = \frac{x_i-\bar x}{s} \]
Please memorize it!
Source: (Diez et al. 2022).
Image source: (Diez et al. 2022).
The process of converting any value \(i\) of any distribution to a standard normal distribution.
\[ Z_i = \frac{x_i - \bar x}{s} \]
where:
Stunting is defined as having height 2 standard deviations lower then the average height of a healthy child of the same gender and age.
We’ve measured that:
Can we consider her suffering from stunting?
According to the Child Growth Standards about height-for-age, the height of a healthy girl at the age of 5 years old:
Computing the z-score of the observation:
\[ Z = \frac{97 - 109}{4.73} = \frac{-12}{4.73} = -2.54 \]
Conclusion:
Observed height of a 5 y.o. girl falls below -2 standard deviations.
Thus she might be suffering from stunting if other causes of growth deprevation (e.g. genetic) are eliminated.
| dataset | mean_x | mean_y |
|---|---|---|
| away | 54.27 | 47.83 |
| bullseye | 54.27 | 47.83 |
| circle | 54.27 | 47.84 |
| dino | 54.26 | 47.83 |
| dots | 54.26 | 47.84 |
| h_lines | 54.26 | 47.83 |
| high_lines | 54.27 | 47.84 |
| slant_down | 54.27 | 47.84 |
| slant_up | 54.27 | 47.83 |
| star | 54.27 | 47.84 |
| v_lines | 54.27 | 47.84 |
| wide_lines | 54.27 | 47.83 |
| x_shape | 54.26 | 47.84 |
Data source: (Cairo 2016) and (Matejka and Fitzmaurice 2017)
Data source: (Cairo 2016) and (Matejka and Fitzmaurice 2017)
Data source: (Cairo 2016) and (Matejka and Fitzmaurice 2017)
Chapter 1 Randomized Trials. In Mastering ’metrics : the path from cause to effect / Joshua D. Angrist and Jörn-Steffen Pischk. Princeton University Press, 2015. https://justfind.hds.hebis.de/Record/HEB35797798X
Available online / library
The boy’s height is 76 cm. He is 1.5 Years old.
The girl’s weight is 13.8 kg. She is 5 years old.
What is variance and how is it different from the standard deviation.
When the mean and the standard deviation are not the best measures of respectively the central tendency and the variance?
Assume that the distribution is normal. What share of observations falls withing two SD of mean?
How the quantiles are constructed?
Is median one of the quantiles or this is the central tendency?
What robust measures of variance do you know?
What is the difference between a normal distribution of age and a standard normal distribution?
What is the z-score?
Univariate data
The Histogram:
The Density plot:
The Cumulative distribution:
The Variance:
The Normal Distribution:

MK-068-EN (TM) WS2024/25. (c) Eduard Bukin