Estimation of the Population Mean
1. Estimation of the Population Mean
a) Key Concepts and Definitions
- Estimator: A function of a sample used to estimate an unknown population parameter (e.g., population mean ). It is a random variable because it depends on the random sample.
- Estimate: The numerical value obtained by applying an estimator to a specific sample.
- Sampling distribution: The probability distribution of an estimator over repeated samples.
b) Desirable Properties of Estimators
| Property | Definition | Mathematical Expression |
|---|---|---|
| Unbiasedness | The estimator's expected value equals the true parameter: no systematic error. | |
| Bias | The difference between the estimator's expected value and the true parameter. | |
| Consistency | The estimator converges in probability to the true parameter as sample size . | |
| Efficiency | Among unbiased estimators, the one with the smallest variance is more efficient. | If |
An estimator should be unbiased, consistent, and efficient to be considered good.
c) The Sample Mean as an Estimator of
-
Given i.i.d. observations from the population, the sample mean is:
-
Unbiasedness: ; thus, is unbiased.
-
Consistency: By the Law of Large Numbers, .
-
Variance:
where is the population variance.
-
Efficiency: Among all unbiased linear estimators (weighted averages of ), has the smallest variance and is thus the Best Linear Unbiased Estimator (BLUE).
d) Comparison with Other Estimators
-
Using only the first observation as an estimator:
- Unbiased:
- Variance:
- Since for , is more efficient than .
-
Weighted averages with unequal weights (e.g., alternating weights and ) have larger variance than and are less efficient.
e) Least Squares Estimator Interpretation
-
The sample mean minimizes the sum of squared deviations from the data:
-
This makes the least squares estimator of .
f) Importance of Random Sampling
- The i.i.d. assumption (independent and identically distributed) is crucial for unbiasedness and consistency.
- Non-random sampling can introduce bias. For example, surveying only unemployed people in parks at work hours overrepresents unemployed individuals, biasing the estimate.
- Proper random sampling ensures the sample is representative of the population.
Key takeaway: The sample mean is the unbiased, consistent, and most efficient linear estimator of the population mean when samples are drawn randomly and independently.
Hypothesis Tests Concerning the Population Mean
1. Hypothesis Tests Concerning the Population Mean
a) Null and Alternative Hypotheses
-
Null hypothesis (): The population mean equals a specified value .
-
Alternative hypothesis (): The population mean differs from .
-
Two-sided alternative:
-
One-sided alternatives are also possible but discussed separately.
-
-
Hypothesis testing decides whether to reject or fail to reject based on sample data.
b) The -Value
-
The -value is the probability, assuming is true, of observing a sample mean at least as extreme as the one actually observed.
-
Formally, if is the observed sample mean,
-
Interpretation:
- Small -value (e.g., 0.1%) → strong evidence against , reject .
- Large -value (e.g., 40%) → weak evidence against , fail to reject .
-
To compute -values, the sampling distribution of under is needed.
c) Sampling Distribution of and Large-Sample Approximation
-
For large sample size , by the Central Limit Theorem, is approximately normally distributed under :
where is the population variance of .
-
The standardized variable:
d) Calculating the -Value When is Known
-
If population variance is known, the -value for a two-sided test is:
where is the standard normal CDF.
e) Sample Variance, Sample Standard Deviation, and Standard Error
| Quantity | Definition | Notes |
|---|---|---|
| Sample variance | $$ | |
| s_Y^2 = \frac{1}{n-1} \sum_{i=1}^n (Y_i - \bar{Y})^2 | ||
| $$ | Unbiased estimator of population variance; divisor corrects bias (degrees of freedom). | |
| Sample standard deviation | $$ | |
| s_Y = \sqrt{s_Y^2} |
SE(\bar{Y}) = \sqrt{\frac{\bar{Y}(1-\bar{Y})}{n}}
#### f) Calculating the $p$-Value When $s_Y$ is Unknown - Replace $s_Y$ by $s_Y$ estimated from the sample:p\text{-value} = 2 \Phi\left(-\left|\frac{Y_{\text{act}} - m_{Y,0}}{SE(\bar{Y})}\right|\right)
- This uses the **standard error** $SE(\bar{Y}) = s_Y / \sqrt{n}$. #### g) The $t$-Statistic - Defined as the standardized sample mean using the estimated standard error:t = \frac{\bar{Y} - m_{Y,0}}{SE(\bar{Y})}
- The $t$-statistic is a **test statistic** used to perform hypothesis tests about the population mean. - For large $n$, by the Central Limit Theorem:t \approx N(0,1) \quad \text{under } H_0
> **Key point:** The $p$-value quantifies the evidence against $H_0$ by measuring how extreme the observed sample mean is relative to its sampling distribution under $H_0$. The $t$-statistic standardizes this difference using the estimated standard error.Confidence Intervals for the Population Mean
1. Standard Error of the Sample Mean
- The standard error (SE) of the sample mean is denoted or .
- When are i.i.d., where is the sample standard deviation.
2. Hypothesis Testing for the Population Mean
- The -statistic for testing is
- For large , approximately follows a standard normal distribution under .
- The two-sided -value is where is the standard normal CDF.
3. Fixed Significance Level Testing
- Choose a significance level (commonly 5%).
- Reject if , where is the critical value from .
- For , .
- This controls the Type I error rate (false positive rate) at .
To reject at 5% significance level, require:
4. One-Sided Alternatives
- Alternative hypothesis can be one-sided, e.g.
- The -value for one-sided test is
- Reject if (e.g., for 5% level).
- For , reject if .
5. Confidence Intervals for the Population Mean
-
A confidence interval (CI) is a range of values that contains the true population mean with a specified probability (confidence level).
-
A two-sided 95% CI for is
-
More generally, for large :
Confidence Level Critical Value () Confidence Interval 90% 1.64 95% 1.96 99% 2.58 -
The coverage probability is the probability that the CI contains the true mean, computed over repeated samples.
6. Interpretation and Construction of Confidence Intervals
- The CI can be seen as the set of all values not rejected by a two-sided hypothesis test at the chosen significance level.
- For example, if and , the 95% CI is
- This means we are 95% confident that the true mean lies within this interval.
Key takeaway:
A 95% confidence interval contains the true population mean in 95% of all possible random samples.
Comparing Means from Different Populations
1. Hypothesis Tests for the Difference Between Two Means
-
Goal: Test if the difference between two population means, (men) and (women), equals a specified value .
-
Hypotheses:
The special case tests equality of means.
-
Estimator: From samples of sizes and , sample means and estimate and . The estimator for the difference is:
-
Sampling distribution: Assuming independence and approximate normality (by CLT),
where and are population variances (usually unknown, replaced by sample variances).
-
Standard error:
-
Test statistic:
For large and , approximately follows a standard normal distribution under .
-
Decision rule:
- Two-sided test at 5% level: reject if .
- One-sided test (e.g., ): reject if .
-
P-value: Computed using the standard normal distribution as in single mean tests.
2. Confidence Intervals for the Difference Between Two Means
- 95% confidence interval for :
- This interval contains all values not rejected by the two-sided test at the 5% level.
3. Differences-of-Means Estimation of Causal Effects Using Experimental Data
-
Randomized controlled experiment: Subjects randomly assigned to treatment () or control () groups.
-
Causal effect (treatment effect):
For binary treatment ( control, treatment):
-
Estimation: Difference in sample means between treatment and control groups estimates the causal effect.
-
Testing: Use the -statistic for difference of means (Equation above).
-
Confidence interval: Use the confidence interval for difference of means as a confidence interval for the causal effect.
-
Note: Randomized experiments provide strong causal inference but may be costly or unethical in some fields; quasi-experiments can mimic randomization.
4. Using the -Statistic When the Sample Size Is Small
-
For small samples, the standard normal approximation for the -statistic may be poor.
-
If the population is normally distributed, the exact distribution of the -statistic for a single mean is the Student distribution with degrees of freedom.
-
Critical values for hypothesis tests and confidence intervals should be taken from the Student distribution in small samples.
5. Summary Table: Comparing Two Means
| Aspect | Formula / Description | Notes |
|---|---|---|
| Hypotheses | vs. | tests equality |
| Estimator | Sample means difference | |
| Standard error | , sample variances | |
| Test statistic | Approx. standard normal if large | |
| Reject (two-sided) | $ | t |
| Confidence interval (95%) | Values of not rejected by test | |
| Causal effect estimation | Difference in means in randomized experiment | Treatment effect estimate |
| Small sample adjustment | Use Student distribution with degrees of freedom | For exact inference when normality holds |
Key point: The difference in sample means is a natural estimator for the difference between population means and for causal effects in randomized experiments; hypothesis testing and confidence intervals rely on the -statistic with appropriate distributional assumptions.
Differences-of-Means Estimation of Causal Effects Using Experimental Data
1. Differences-of-Means Estimation of Causal Effects Using Experimental Data
a) Estimating Treatment Effects by Differences of Means
-
Causal effect of a treatment is estimated by the difference in average outcomes between the treatment and control groups.
-
Let be the potential outcome if unit receives treatment, and if not.
-
The average treatment effect (ATE) is .
-
In randomized experiments, the difference in sample means between treated and control groups is an unbiased estimator of the ATE:
where and are sample means of treated and control groups respectively.
b) Hypothesis Testing Using the -Statistic
-
To test hypotheses about means, the -statistic is used:
where is the standard error of the sample mean.
-
For small samples and normally distributed data, follows a Student distribution with degrees of freedom.
-
For large samples, the -statistic approximates a standard normal distribution.
c) -Statistic for Differences of Means
-
The -statistic for testing difference between two means is:
-
The standard error allowing for unequal variances is:
-
The -statistic does not follow a Student distribution in general when variances differ.
-
If variances are equal and sample sizes are equal or large, the pooled variance estimator can be used:
-
The pooled standard error is:
-
Under equal variances, the pooled -statistic follows a Student distribution with degrees of freedom.
-
Caution: Use pooled variance only if variances are equal; otherwise, it is biased and invalid.
d) Practical Use of the Student Distribution
-
Economic data rarely follow normal distributions exactly; however, for large samples, the normal approximation to the -statistic distribution is valid.
-
For differences in means, always use the unequal variance standard error and rely on the large-sample normal approximation.
-
Differences between Student and normal distributions become negligible as sample size grows (e.g., for , difference in -values is < 0.002).
e) Summary Table: -Statistic for Means
| Scenario | Standard Error Formula | Distribution of -statistic | Notes |
|---|---|---|---|
| Single mean, normal data | Student with degrees of freedom | Exact for normal data, small | |
| Difference of means, unequal variances | Approximate normal (large ) | Always valid, no Student distribution | |
| Difference of means, equal variances | Pooled variance formula | Student with degrees of freedom | Only if variances equal and |
The pooled -statistic should be used only if there is strong evidence that population variances are equal; otherwise, use the unequal variance formula with large-sample normal approximation.
2. Application: Increasing Voter Turnout via Experimental Interventions
-
Experiments using canvassing and telephone calls increased voter turnout significantly compared to control groups.
-
Estimated effects were approximately 6.7% and 7.3% increases in participation.
-
Statistical significance was assessed using differences-of-means estimators and appropriate -tests.
-
This illustrates how randomized experiments and differences-of-means estimation can quantify causal effects in social science.
3. Key Formulas Recap
-
Difference-in-means estimator:
-
Standard error (unequal variances):
-
Pooled variance (equal variances):
-
Pooled standard error:
-
-statistic for difference of means:
Use differences-of-means estimators with appropriate standard errors and -tests to estimate and infer causal effects from experimental data.
Using the t-Statistic When the Sample Size Is Small
When the sample size is small, the t-statistic is used instead of the z-statistic because the sample standard deviation is a less precise estimator of the population standard deviation . The t-statistic accounts for this additional uncertainty.
1. Definition of the t-Statistic
For a sample of size with sample mean and sample standard deviation , testing the null hypothesis uses the statistic:
This statistic follows a t-distribution with degrees of freedom (df).
2. Key Properties of the t-Distribution
| Property | Description |
|---|---|
| Shape | Symmetric, bell-shaped, similar to normal but with heavier tails |
| Degrees of freedom (df) | for a sample of size |
| As | t-distribution approaches the standard normal distribution |
| Use | Accounts for extra variability when is unknown and estimated by |
3. When to Use the t-Statistic
- The population is normally distributed or approximately normal.
- The sample size is small (commonly ).
- The population standard deviation is unknown.
- The sample standard deviation is used as an estimate of .
4. Confidence Intervals Using the t-Distribution
A confidence interval for the population mean is:
where is the critical value from the t-distribution with degrees of freedom.
5. Hypothesis Testing Using the t-Statistic
- Null hypothesis:
- Alternative hypothesis: (two-sided) or / (one-sided)
- Compute the t-statistic as above.
- Compare to the critical value for two-sided tests or for one-sided tests.
- Alternatively, compute the p-value as the probability of observing a t-statistic as extreme as the computed value under .
- Reject if or if the p-value is less than the significance level .
6. Degrees of Freedom and Their Importance
- The degrees of freedom reflect the number of independent pieces of information used to estimate the population variance.
- Using degrees of freedom corrects the bias in the estimation of the population variance from the sample.
7. Summary Table: z-Statistic vs t-Statistic
| Aspect | z-Statistic | t-Statistic |
|---|---|---|
| Population standard deviation | Known | Unknown, estimated by |
| Sample size | Large () | Small () |
| Distribution | Standard normal | t-distribution with df |
| Tail behavior | Thinner tails | Heavier tails (more variability) |
| Use in confidence intervals |
Key point: When the sample size is small and the population standard deviation is unknown, use the t-statistic with degrees of freedom for inference about the population mean.
8. Practical Notes
- The t-distribution is robust to moderate departures from normality, especially as increases.
- For very small samples, normality of the population is a critical assumption.
- Software and statistical tables provide critical values and p-values for the t-distribution.
This approach ensures valid inference on the population mean despite the increased uncertainty from estimating the standard deviation with a small sample.
Scatterplots, the Sample Covariance, and the Sample Correlation
1. Scatterplots
- A scatterplot is a graphical representation of the relationship between two quantitative variables.
- Each point represents an observation with coordinates .
- Scatterplots help visualize patterns, trends, clusters, and outliers.
2. Sample Covariance
-
Measures the direction and strength of linear association between two variables and in a sample.
-
Defined as:
-
Interpretation:
- : positive linear relationship.
- : negative linear relationship.
- : no linear relationship.
-
Units depend on the units of and , so covariance alone is not standardized.
3. Sample Correlation
-
The sample correlation coefficient standardizes covariance to a dimensionless measure between and .
-
Defined as:
where and are the sample standard deviations of and .
-
Properties:
- .
- : perfect positive linear relationship.
- : perfect negative linear relationship.
- : no linear relationship.
-
Measures strength and direction of linear association.
4. Key Formulas Summary
| Quantity | Formula | Interpretation |
|---|---|---|
| Sample mean | Average value of | |
| Sample variance | Variability of | |
| Sample standard dev. | Spread of | |
| Sample covariance | Linear association between and | |
| Sample correlation | Standardized linear association |
5. Important Notes
- Covariance is sensitive to scale; correlation is scale-invariant.
- Both covariance and correlation measure linear relationships only.
- Scatterplots are essential for visualizing the relationship before computing covariance or correlation.
- The sample covariance is an unbiased estimator of the population covariance under i.i.d. assumptions.
- The sample correlation coefficient is a consistent estimator of the population correlation.
The sample correlation coefficient quantifies the strength and direction of the linear relationship between two variables, normalized to lie between and .