Interval Estimation, Hypothesis Testing and ANOVA
Why a single estimate is not enough, how the t distribution turns b2 and its standard error into a confidence interval, and how the same ingredients test claims about beta2: two-sided and one-sided tests, the confidence-interval approach, p-values, the two types of error, and the ANOVA split TSS = ESS + RSS with R-squared and the F test, all on the EViews consumption example.
- Explain what a 95% confidence interval does and does not say
- Build a confidence interval for beta1 and beta2 from regression output and a t table
- Run a two-sided or one-sided t test in five steps and state the decision correctly
- Read t-statistics and p-values in EViews output and connect them to the interval
- Decompose TSS into ESS and RSS, compute R-squared and the F statistic, and link F to t
How the exam asks it: four core exam templates
Midterm exams on interval estimation and hypothesis testing consistently feature four question types: building confidence intervals, conducting t-tests of significance, applying the confidence interval decision rule, and constructing ANOVA tables for F-tests.
Exam template 1: Constructing a 95% confidence interval for beta2 and beta1
Question: Using the consumption regression output (), () and (). From the t table, .
a) Compute the margin of error and the 95% confidence interval for the true slope .
b) Compute the margin of error and the 95% confidence interval for the true intercept .
c) State the precise textbook statistical interpretation of the 95% confidence interval for .
Exam template 2: Two-sided hypothesis test (Test of significance approach)
Question: For the same model ():
a) State the null and alternative hypotheses to test whether weekly income has a statistically significant effect on consumption ().
b) Calculate the sample t-statistic and state the test decision.
c) Test someone’s claim that the true MPC is 0.30 ( vs ) at the 5% level.
Exam template 3: Confidence interval approach to hypothesis testing
Question: The board’s 95% confidence interval for the marginal propensity to consume is (or rounded as ).
a) State the decision rule for testing against using the confidence interval approach.
b) Test against at .
c) Test against at .
Exam template 4: ANOVA decomposition and F-test
Question: An EViews regression output for reports and . The 5% critical value of the F-distribution is .
a) Compute and .
b) Build the ANOVA table and compute the sample F-statistic .
c) Test using the F-statistic and verify that .
Cheat-sheet & the 4-step method
Why one number is not enough
The EViews regression of weekly consumption on weekly income (Gujarati Table 2.4, ) gave the slope . That is a point estimate: our single best guess of the true marginal propensity to consume .
But comes from one sample of ten families. A different sample would give a different number, maybe 0.47, maybe 0.55. The point estimate alone tells us nothing about how close it is likely to be to .
So instead of relying on the point estimate alone, we construct an interval around it that has a known probability, say 95 percent, of containing the true parameter value.
The confidence interval idea
- confidence coefficient (e.g. 0.95)
- level of significance (e.g. 0.05)
Use it when you need to state formally what a confidence interval promises.
- is the confidence coefficient. With it is 0.95, a 95% interval.
- is the level of significance: the probability that the procedure produces an interval that misses .
- The probability of constructing an interval that contains is .
Building the interval with the t distribution
From the previous lessons, under the classical assumptions (with normally distributed disturbances) the standardised estimate follows a t distribution with degrees of freedom:
- sample estimate of the slope
- true population slope
- standard error of b_2
- degrees of freedom
Use it when you need to turn an estimate and its standard error into a quantity with a known distribution, the starting point for both intervals and tests.
The t table gives a critical value that leaves in each tail. Then:
- sample value of the slope
- two-sided critical value from the t table with n-2 df
- standard error of b_2
Use it when a question asks for an interval estimate of the slope, or 'in which interval will Y change when X rises by one unit'.
- sample value of the intercept
- standard error of b_1
Use it when a question asks for an interval estimate of the intercept; the recipe is identical, only the coefficient and its standard error change.
Worked example: the EViews consumption function
The output from the OLS lesson:
| Variable | Coefficient | Std. Error | t-Statistic | Prob. |
|---|---|---|---|---|
| C | 24.45455 | 6.413817 | 3.812791 | 0.0051 |
| X | 0.509091 | 0.035743 | 14.24317 | 0.0000 |
The question from the board: if income increases by one unit, in which interval will consumption increase? That is a 95% confidence interval for .
The second board question: when income is equal to zero, in which range will average consumption be? That is a 95% confidence interval for the intercept .
Hypothesis testing: the setup
A hypothesis test asks whether a specific claimed value of is compatible with the data.
- Null hypothesis : the claim being tested, written with an equals sign: .
- Alternative hypothesis : what we conclude if is rejected. Its form decides the type of test:
| Alternative | Type of test | Rejection region |
|---|---|---|
| two-sided | both tails, in each | |
| one-sided (right) | right tail, all of | |
| one-sided (left) | left tail, all of |
The most common case is : “X has no effect on Y”. Rejecting means the coefficient is statistically significant.
Approach 1: the test of significance (t test)
- hypothesised slope under H0
- sample estimate
- its standard error
Use it when you test any claimed value of a coefficient. With c = 0 it reduces to coefficient / standard error, the t-Statistic column in EViews.
Decision rules:
- Two-sided: reject if .
- One-sided, : reject if .
- One-sided, : reject if .
Approach 2: the confidence-interval approach
The interval and the two-sided test are two views of the same calculation:
With the 95% interval :
- is outside → reject: income is significant.
- is outside → reject, the same answer as the t test ().
- is inside → do not reject, the same answer as the t test ().
Try it: move the null, watch the decision
Slide and watch both views. In the two-sided test, the computed t enters the red rejection region exactly when leaves the confidence interval. Switch to a one-sided alternative to see the rejection region move into a single tail.
The one-sided test: Keynes’s claim
Keynes argued that the MPC is less than 1: people spend part, not all, of an extra unit of income. That is a one-sided claim.
p-values: what Prob. means in EViews
The p-value is the probability, if were true, of getting a t statistic at least as extreme as the one observed. It is the smallest significance level at which would be rejected.
- Rule: reject when p-value .
- EViews’ Prob. column is the two-sided p-value for : coefficient .
- In the consumption output: X has Prob. , so income is significant at any usual level. C has Prob. , so the intercept is significant at 5% and at 1%.
Type I and Type II errors
Any test can go wrong in two ways:
| true | false | |
|---|---|---|
| Reject | Type I error (probability ) | correct decision |
| Do not reject | correct decision | Type II error |
- , the level of significance, is the probability of a Type I error, chosen in advance.
- Lowering (say from 5% to 1%) makes Type I errors rarer but Type II errors more likely: the two trade off for a given sample size.
ANOVA: splitting the total variation
Analysis of variance (ANOVA) looks at the regression as a whole: how much of the movement of around its own mean does the line explain?
- TSS (total sum of squares) : the total change around ‘s own mean.
- ESS (explained sum of squares) : the part of that change explained by the regression.
- RSS (residual sum of squares) : the part that cannot be explained by the regression.
- coefficient of determination: the share of the total change in Y explained by the regression
Use it when you need to say how well the regression explains Y as a whole.
| Source of variation | Sum of squares | df | Mean square |
|---|---|---|---|
| Regression (ESS) | 8552.73 | 1 | 8552.73 |
| Residual (RSS) | 337.27 | 8 | 42.16 |
| Total (TSS) | 8890.00 | 9 |
- mean square of the regression
- mean square of the residuals, the estimated error variance
- F distribution with 1 and n-2 df
Use it when you test whether the regression explains Y at all (H0: beta2 = 0) from the ANOVA table.
Decision rule: reject if exceeds the critical value from the F table, or if Prob(F-statistic) . Here and (EViews: Prob(F-statistic) ), so we reject: income explains consumption.
Switch the lab below to TSS = ESS + RSS and drag the last family’s consumption: a point far from the line inflates RSS, shrinks ESS’s share, and pulls and F down.
Normality: histogram and Jarque–Bera
Classical normal linear regression assumes the disturbance term is normally distributed: . Why does this matter? The OLS estimators and are linear combinations of the disturbances. If is normal, then and are strictly normally distributed in any sample size, which makes the and tests exact. If is not normal, and tests are only large-sample approximations.
Histogram of residuals
A histogram of residuals is a simple graphical check of the shape of the probability density function (PDF). We divide the range of OLS residuals into equal intervals and plot their frequencies. Mentally superimposing a normal bell curve on the histogram gives an immediate visual check for:
- Skewness (symmetry): does one tail stretch out much further than the other?
- Kurtosis (peakedness): are values too clustered at the centre (tall peak, heavy tails) or too flat?
Jarque–Bera (JB) test of normality
The Jarque–Bera (JB) test is an asymptotic (large-sample) test based directly on the OLS residuals. It computes the skewness coefficient and the kurtosis coefficient :
- Jarque-Bera test statistic
- sample size
- skewness coefficient
- kurtosis coefficient
Use it when you need to test whether the regression residuals follow a normal distribution.
For a normally distributed variable:
- Skewness: (symmetric around the mean).
- Kurtosis: (mesokurtic).
Therefore, the JB test is a joint test of the null hypothesis:
Under , as sample size grows, the JB statistic asymptotically follows a chi-square distribution with 2 degrees of freedom: Degrees of freedom is 2 because there are two restrictions ( and ).
Prediction: mean prediction and its interval
Once we estimate a regression line, we often want to forecast the dependent variable for a chosen value of the explanatory variable, denoted . Econometrics distinguishes between two prediction tasks:
- Mean prediction: predicting the conditional average .
- Individual prediction: predicting an actual individual outcome .
Here we focus on the mean prediction.
Point prediction
The point estimator of the mean value is obtained directly from the sample regression function (SRF): For example, from Gujarati Table 2.4 consumption regression: To predict average weekly consumption for families with weekly income :
Variance and standard error of mean prediction
Because and vary from sample to sample, is an estimator with its own sampling distribution. It is normally distributed with mean and variance:
- variance of predicted mean Y
- disturbance variance
- sample size
- chosen regressor value
- sample mean of X
- sum of squared deviations of X
Use it when you need the sampling variance of the estimated conditional mean E(Y|X0).
Replacing the unknown with the unbiased residual variance :
Confidence interval for E(Y | X0)
A confidence interval for the true mean value is:
Exam practice
Summary and review
- A point estimate says nothing about precision; an interval estimate adds a margin of error.
- : is the confidence coefficient, the level of significance.
- The interval is random, is fixed: 95% of intervals built this way contain .
- follows a t distribution with df; this gives the interval , and likewise .
- Consumption example: 95% interval for the MPC about ; for the intercept .
- Higher confidence or larger SE → wider interval; more data → narrower.
- t test: . Two-sided: reject if . One-sided: reject if (right) or (left).
- Two-sided test at level and the interval always agree: reject exactly when is outside the interval.
- p-value → reject. EViews’ Prob. tests coefficient .
- The confidence-interval approach works only for two-sided tests. Board answers: the MPC is different from 0.60 (outside ) and not significantly different from 0.55 (inside).
- “Individually significant” means coefficient is rejected: here both the constant (Prob. 0.0051) and the slope (Prob. 0.0000) are.
- Type I error = rejecting a true (probability ); Type II = not rejecting a false . Say “do not reject”, never “accept”.
- ANOVA: ; (coefficient of determination). Example: , .
- ; with one regressor (), the same verdict as the two-sided t test.
Step-by-step examples
Work through the ladder one level at a time: at every step, try to say what comes next before you reveal it.