Probability and Statistics
\[ \text{Population} \longrightarrow \text{Random sample} \longrightarrow \text{Estimator} \longrightarrow \text{Uncertainty} \longrightarrow \text{Inference} \]
Probability describes what data could be generated.
Statistics uses generated data to learn about the process.
By the end of this session, you should be able to:
Preview: all four statements are generally false.
For a binary employment outcome,
\[ \Omega=\{0,1\}, \qquad A=\{\text{employed}\}=\{1\}. \]
For events in \(\Omega\):
\[ P\left(\bigcup_j A_j\right)=\sum_jP(A_j). \]
These axioms generate the other probability rules we use.
For any two events,
\[ P(A\cup B) =P(A)+P(B)-P(A\cap B). \]
Why subtract?
The intersection \(A\cap B\) was counted once inside \(P(A)\) and once inside \(P(B)\).
If \(A\) and \(B\) are mutually exclusive, then \(P(A\cap B)=0\).
For \(P(B)>0\),
\[ P(A\mid B)=\frac{P(A\cap B)}{P(B)}. \]
The denominator says: restrict attention to cases where \(B\) occurred.
The numerator says: among those cases, count where \(A\) also occurred.
In general,
\[ P(A\mid B)\neq P(B\mid A). \]
Events \(A\) and \(B\) are independent if
\[ P(A\cap B)=P(A)P(B). \]
Equivalently, when probabilities are positive,
\[ P(A\mid B)=P(A). \]
Nontrivial mutually exclusive events are therefore not independent.
If \(B_1,\ldots,B_K\) form a partition of \(\Omega\), then
\[ P(A)=\sum_{k=1}^K P(A\mid B_k)P(B_k). \]
For a treatment indicator \(D\in\{0,1\}\),
\[ P(Y=1) =P(Y=1\mid D=1)P(D=1) +P(Y=1\mid D=0)P(D=0). \]
Overall probability is a weighted average of group-specific probabilities.
\[ P(B\mid A) = \frac{P(A\mid B)P(B)}{P(A)}. \]
Using the total probability rule,
\[ P(B\mid A) = \frac{P(A\mid B)P(B)} {P(A\mid B)P(B)+P(A\mid B^c)P(B^c)}. \]
Bayes’ rule updates a prior probability after observing evidence.
Suppose:
\[ P(D=1)=0.20, \]
\[ P(\text{high motivation}\mid D=1)=0.70, \]
\[ P(\text{high motivation}\mid D=0)=0.25. \]
What is
\[ P(D=1\mid \text{high motivation})? \]
First compute the probability of high motivation using the total probability rule.
\[ P(H)=0.70(0.20)+0.25(0.80)=0.34. \]
Therefore,
\[ P(D=1\mid H) = \frac{0.70(0.20)}{0.34} \approx0.412. \]
Observing high motivation raises the probability of training participation from 20% to about 41%.
This is also a warning: program participation may be statistically related to unobserved motivation.
In a population, 10% receive a policy treatment. Among treated units, 60% have outcome \(Y=1\); among untreated units, 20% have \(Y=1\).
Answer:
\[ P(Y=1)=0.6(0.1)+0.2(0.9)=0.24, \]
\[ P(D=1\mid Y=1)=0.06/0.24=0.25. \]
A random variable is a function
\[ X:\Omega\rightarrow\mathbb R. \]
The randomness comes from the outcome; the mapping itself is fixed.
\[p(x)=P(X=x).\]
\[P(a<X\le b)=\int_a^b f(x)\,dx.\]
\[F(x)=P(X\le x).\]
A density value is not itself a probability; probability is area under the density.
For a discrete random variable,
\[ E[X]=\sum_x xP(X=x). \]
For a continuous random variable,
\[ E[X]=\int x f(x)\,dx. \]
Expectation is a feature of the distribution, not necessarily a value that will ever be observed.
Linearity:
\[ E[a+bX+cY]=a+bE[X]+cE[Y]. \]
Let \(\mu=E[X]\). Then
\[ \operatorname{Var}(X) =E[(X-\mu)^2] =E[X^2]-\mu^2. \]
The standard deviation is
\[ \operatorname{SD}(X)=\sqrt{\operatorname{Var}(X)}. \]
Standard deviation uses the same units as \(X\); variance uses squared units.
Bernoulli: \(X\in\{0,1\}\) and \(P(X=1)=p\).
\[E[X]=p,\qquad \operatorname{Var}(X)=p(1-p).\]
Binomial: number of successes in \(n\) independent Bernoulli trials.
Normal: continuous, symmetric, and described by mean \(\mu\) and variance \(\sigma^2\).
Student \(t\), \(\chi^2\), and \(F\) distributions enter classical inference.
Figure 1
For two random variables \(X\) and \(Y\), the joint distribution describes
\[ P(X\in A,\ Y\in B). \]
\[ \operatorname{Cov}(X,Y) =E[(X-E[X])(Y-E[Y])]. \]
\[ \operatorname{Corr}(X,Y) = \frac{\operatorname{Cov}(X,Y)} {\operatorname{SD}(X)\operatorname{SD}(Y)}. \]
\[ m(x)=E[Y\mid X=x]. \]
\(m(x)\) is the mean of the conditional distribution of \(Y\) given \(X=x\).
The decomposition
\[ Y=E[Y\mid X]+\varepsilon \]
implies
\[ E[\varepsilon\mid X]=0. \]
Regression methods approximate or estimate conditional expectations.
\[ E[Y]=E\left[E[Y\mid X]\right]. \]
Interpretation:
This is the expectation analogue of the law of total probability.
If \(u\) is concave, then
\[ E[u(X)]\le u(E[X]). \]
A risk-averse decision maker prefers the utility of a certain mean payoff to the expected utility of a risky payoff with that mean.
Curvature, not merely variance, determines how uncertainty affects welfare.
Suppose \(X_1,\ldots,X_n\) are a random sample from a population.
\[ \bar X=\frac{1}{n}\sum_{i=1}^nX_i. \]
Imagine repeatedly drawing samples of size \(n\) and computing \(\bar X\).
The distribution of those values is the sampling distribution of \(\bar X\).
Under IID sampling with finite variance,
\[ E[\bar X]=\mu, \qquad \operatorname{Var}(\bar X)=\frac{\sigma^2}{n}. \]
More data reduces variance, but the estimate remains random.
Standard deviation: how dispersed are individual observations?
\[ \operatorname{SD}(X)=\sigma. \]
Standard error: how dispersed is an estimator across repeated samples?
\[ \operatorname{SE}(\bar X)=\frac{\sigma}{\sqrt n}. \]
If sample size quadruples, the standard error is approximately halved.
Figure 2
Bias:
\[ \operatorname{Bias}(\hat\theta) =E[\hat\theta]-\theta. \]
Mean squared error:
\[ \operatorname{MSE}(\hat\theta) =E[(\hat\theta-\theta)^2] =\operatorname{Var}(\hat\theta) +\operatorname{Bias}(\hat\theta)^2. \]
An estimator can trade a small amount of bias for a large reduction in variance.
Under suitable conditions,
\[ \bar X_n\xrightarrow{p}\mu. \]
For every \(\varepsilon>0\),
\[ P(|\bar X_n-\mu|>\varepsilon)\rightarrow0. \]
The LLN says the sample mean becomes close to the population mean in probability.
It does not describe the shape of the remaining error.
Figure 3
Under suitable conditions,
\[ \sqrt n(\bar X_n-\mu) \xrightarrow{d} N(0,\sigma^2). \]
Equivalently, for large \(n\),
\[ \bar X_n \approx N\left(\mu,\frac{\sigma^2}{n}\right). \]
This approximation is the bridge from estimation to standard errors, confidence intervals, and tests.
Figure 4
| Result | Main question | Main conclusion |
|---|---|---|
| LLN | Does the estimator approach the target? | \(\bar X_n\to_p\mu\) |
| CLT | What is the approximate distribution of its error? | \(\sqrt n(\bar X_n-\mu)\to_d N(0,\sigma^2)\) |
Both rely on assumptions; neither is a license to ignore dependence, heavy tails, or poor sampling design.
Suppose a model implies
\[ E[g(X,\theta_0)]=0. \]
The method of moments chooses \(\hat\theta\) so that
\[ \frac{1}{n}\sum_{i=1}^n g(X_i,\hat\theta)=0. \]
For \(E[X]=\mu\), the sample analogue gives
\[ \hat\mu=\bar X. \]
For IID observations with density or mass function \(f(x;\theta)\),
\[ L(\theta)=\prod_{i=1}^n f(X_i;\theta). \]
The maximum likelihood estimator is
\[ \hat\theta_{MLE}=\arg\max_\theta L(\theta). \]
We usually maximize the log-likelihood:
\[ \ell(\theta)=\sum_{i=1}^n\log f(X_i;\theta). \]
If \(X_i\sim\text{Bernoulli}(p)\), then
\[ \ell(p) = \sum_{i=1}^n \left[X_i\log p+(1-X_i)\log(1-p)\right]. \]
The first-order condition yields
\[ \hat p=\frac{1}{n}\sum_{i=1}^nX_i=\bar X. \]
The MLE is simply the observed fraction of successes.
If
\[ \frac{\hat\theta-\theta}{\operatorname{SE}(\hat\theta)} \approx N(0,1), \]
an approximate 95% confidence interval is
\[ \boxed{ \hat\theta \pm 1.96\operatorname{SE}(\hat\theta) }. \]
Across repeated samples, approximately 95% of intervals constructed by this procedure contain the true parameter.
Figure 5
Example:
\[ H_0:\theta=\theta_0 \qquad\text{versus}\qquad H_1:\theta\neq\theta_0. \]
The standardized test statistic is
\[ t=\frac{\hat\theta-\theta_0}{\operatorname{SE}(\hat\theta)}. \]
Under \(H_0\), a large absolute value of \(t\) is evidence against the null.
At the 5% level in a two-sided large-sample test, reject when \(|t|>1.96\).
| Decision | \(H_0\) true | \(H_0\) false |
|---|---|---|
| Reject \(H_0\) | Type I error | Correct rejection |
| Do not reject \(H_0\) | Correct non-rejection | Type II error |
Reducing one error probability can increase the other unless information increases.
The p-value is the probability, assuming the null is true, of observing a test statistic at least as extreme as the one observed.
For a two-sided asymptotic normal test,
\[ p\text{-value} =2\left[1-\Phi(|t_{obs}|)\right]. \]
It is not \(P(H_0\text{ is true}\mid\text{data})\).
A small p-value is evidence against \(H_0\) relative to the assumed model.
Figure 6
Suppose an estimated policy effect is
\[ \hat\theta=0.002, \qquad \operatorname{SE}(\hat\theta)=0.0005. \]
Then \(t=4\), so the estimate is statistically distinguishable from zero.
But whether an effect of \(0.002\) matters depends on units, costs, baseline risk, and the decision context.
Always report and interpret the estimate, its uncertainty, and its substantive magnitude.
Larger \(n\) often reduces sampling variance, but it does not automatically fix:
In a regression model,
\[ Y_i=X_i'\beta+u_i, \]
we use the same sequence:
Probability is not separate from econometrics; it is its foundation.
A sample of \(n=400\) workers gives
\[ \bar X=52.0, \qquad s=12.0, \]
where \(X\) is weekly hours worked.
Point estimate:
\[ \hat\mu=52.0. \]
Standard error:
\[ SE(\bar X)=\frac{12}{\sqrt{400}}=0.6. \]
Approximate 95% confidence interval:
\[ 52\pm1.96(0.6) =52\pm1.176 =[50.824,53.176]. \]
\[ t=\frac{52-50}{0.6}=3.33. \]
The two-sided p-value is approximately
\[ 2[1-\Phi(3.33)]\approx0.0009. \]
We reject \(H_0:\mu=50\) at conventional significance levels.
The sample provides evidence that the population mean differs from 50 hours; the estimate is about 2 hours higher.
Each statement confuses sampling uncertainty with a different inferential question.
\[ \boxed{ \begin{array}{c} \text{Probability}=\text{model of uncertainty}\\[3pt] \text{Estimator}=\text{random rule based on a sample}\\[3pt] \text{LLN}=\text{closeness to the target}\\[3pt] \text{CLT}=\text{shape of estimation error}\\[3pt] \text{SE}=\text{sampling uncertainty}\\[3pt] \text{Inference}=\text{estimate + uncertainty + assumptions} \end{array}} \]
Questions?
Primary reference: Hansen, Probability and Statistics for Economists, Chapters 1-8, 10-11, and 13-14.
