Appendix: Classical Statistical Inference, Hypothesis Testing & Likelihood Theory
Study manual for Exam SRM
1. Parameters, Estimators, and Sampling Distributions
In statistical modeling, we distinguish strictly between the unobservable population reality and sample-based empirical quantities:
- Parameter (): A fixed, constant, but unknown numerical characteristic of the population distribution (e.g., true population mean claim severity , population loss variance , or true proportion of fraudulent claims ).
- Statistic (): Any observable real-valued function of the random sample data that contains no unknown parameters (e.g., , ).
- Estimator (): A statistic regarded as a random rule or mathematical formula applied to a sample to estimate a target parameter .
- Estimate ( or ): The specific realized numerical value evaluated after the sample data are collected and observed.
1.1 The Sampling Distribution of and the CLT
Before data collection, are independent and identically distributed (i.i.d.) random variables with mean and variance . Consequently, any linear combination or non-linear function of these variables is itself a random variable possessing its own probability distribution, known as the sampling distribution.
For the sample mean :
The standard deviation of an estimator is termed its standard error (SE):
- n = 5 (Wide spread, SE = 8.9)
- n = 25 (Concentrated, SE = 4.0)
- True Mean
As sample size increases, the sampling distribution of the sample mean rapidly converges to Gaussian symmetry and its standard error shrinks at rate .
2. Theoretical Properties of Point Estimators
Actuaries evaluate competing point estimators using four fundamental mathematical properties: unbiasedness, variance/efficiency, mean squared error, and consistency.
2.1 Unbiasedness
An estimator is an unbiased estimator of if its expected value equals the true parameter across all possible samples:
- Sample Mean: is always an unbiased estimator of , regardless of population distribution or sample size .
- Sample Variance:
Using Bessel's correction ensures that . The naive divisor yields , producing a downward bias of .
2.2 Mean Squared Error (MSE) and the Bias-Variance Decomposition
When comparing estimators where one or both may be biased, actuaries evaluate the Mean Squared Error (MSE):
Expanding the expectation:
For any unbiased estimator, , so .
2.3 Efficiency and the Cramér-Rao Lower Bound (CRLB)
Given two unbiased estimators and of , is said to be more efficient than if:
The relative efficiency of with respect to is:
Under mild regularity conditions, the variance of any unbiased estimator based on a sample of size is bounded below by the Cramér-Rao Lower Bound (CRLB):
where is the Fisher Information of the sample. An unbiased estimator whose variance achieves the CRLB for all is called an Efficient Estimator or Uniformly Minimum Variance Unbiased Estimator (UMVUE).
2.4 Consistency
Consistency describes asymptotic behavior as sample size tends to infinity:
- Weak Consistency: An estimator is consistent for if converges in probability to :
- Mean-Square Consistency: If , then is consistent. This holds whenever:
3. Estimation Frameworks: MOM vs. Maximum Likelihood Estimation (MLE)
3.1 Method of Moments (MOM)
The Method of Moments equates theoretical population moments to empirical sample moments :
While computationally trivial, MOM estimators frequently fail to achieve asymptotic efficiency and can occasionally yield parameter estimates outside admissible parameter spaces (e.g., negative variances or probabilities outside ).
3.2 Maximum Likelihood Estimation (MLE)
Let be i.i.d. observations with joint density or probability mass function . The Likelihood Function is the joint probability viewed as a function of the parameter :
The Log-Likelihood Function is:
The Score Function is the first derivative of the log-likelihood:
The Maximum Likelihood Estimator is the solution to the score equation:
subject to the second-order concavity condition .
3.3 Fisher Information and Asymptotic Normality
The Fisher Information measures the amount of information that an observable random sample carries about an unknown parameter .
For a single observation :
For an independent sample of size , information is additive:
In practice, we approximate expected Fisher information using the Observed Information Matrix:
Core properties of the MLE
| Property | Mathematical statement |
|---|---|
| 1. Asymptotic normality | , so |
| 2. Asymptotic efficiency | attains the Cramér-Rao lower bound as |
| 3. Consistency | as |
| 4. Invariance principle | If is the MLE of , then for any one-to-one function , the MLE of is |
4. Confidence Intervals: Theory, Construction, and Actuarial Interpretation
4.1 Frequentist Interpretation vs. Common Fallacies
A confidence interval is a pair of random statistics calculated from sample data such that:
4.2 Exact Confidence Intervals for Normal Means
Case A: Single Mean, Known Variance
The standardized pivotal quantity is . The exact two-sided CI is:
Case B: Single Mean, Unknown Variance (Normal Population)
Replacing with the sample standard deviation introduces additional sampling variability, governed by Student's -distribution with degrees of freedom:
The exact two-sided CI is:
Required Sample Size for Target Margin of Error
To achieve a margin of error no larger than at confidence level :
(Always round up to the nearest integer).
4.3 Comparing Two Independent Means ()
| Condition | Standard Error () | Critical Value | Exact Formula |
|---|---|---|---|
| Known Variances | |||
| Equal Variances (Pooled) | |||
| Unequal Variances (Welch) |
Where the Pooled Sample Variance is:
And Welch's approximate degrees of freedom (Welch-Satterthwaite equation) is:
4.4 Paired Samples ()
When observations are matched or drawn from the same subject (e.g., policyholder claim count before vs. after a safety intervention), samples are dependent. We compute differences for :
Paired testing eliminates between-subject variability , drastically improving estimation precision.
4.5 Confidence Interval for Population Variance
For a normal population, the quantity . Because the chi-square distribution is asymmetric:
Inverting the inequality yields the exact CI for :
Taking square roots of both endpoints gives the confidence interval for standard deviation .
4.6 Confidence Interval vs. Prediction Interval
In regression and actuarial forecasting, confusing a Confidence Interval with a Prediction Interval is a major source of exam failure.
- Fitted Regression Mean E[Y|X]
- Upper 95% Confidence Band (Narrow)
- Lower 95% Confidence Band (Narrow)
- Upper 95% Prediction Band (Wide)
- Lower 95% Prediction Band (Wide)
The Confidence Interval quantifies uncertainty in the conditional mean and collapses to zero width as . The Prediction Interval quantifies uncertainty in a single new observation and never collapses to zero due to irreducible noise .
- Confidence Interval: Quantifies estimation uncertainty in the average response . As sample size , the CI converges to zero width.
- Prediction Interval: Quantifies uncertainty in an individual future realization . Even if , the PI never collapses to zero; its width is bounded below by due to irreducible process error .
5. Hypothesis Testing Framework & Power Analysis
Hypothesis testing is an evidentiary decision rule that pits a conservative benchmark against an exploratory research claim.
5.1 The Decision Matrix and Error Types
| Decision Outcome | is Actually True | is Actually False |
|---|---|---|
| Reject (State ) | Type I Error Probability = (Significance Level) | Correct Decision Probability = (Statistical Power) |
| Fail to Reject | Correct Decision Probability = | Type II Error Probability = |
- Type I Error (): Rejecting when is true (False Positive). The probability is chosen a priori (standard: or ).
- Type II Error (): Failing to reject when is false (False Negative).
- Statistical Power (): The probability of correctly rejecting a false null hypothesis under a specified alternative parameter value .
5.2 Determinants of Statistical Power
Statistical power increases when:
- Sample size increases: Standard error shrinks, sharpening test discrimination.
- True effect size increases: The alternative distribution shifts further from the null threshold.
- Significance level increases: Widening the rejection region decreases , raising power (at the expense of more false positives).
- Population noise decreases: Reduces overlap between null and alternative sampling distributions.
5.3 Formal Power Calculation for Normal Mean
For testing versus at level with known :
Under a specific alternative , . The power is:
5.4 The Strict Duality Between Tests and Confidence Intervals
There is an exact, bidirectional mathematical equivalence between two-sided hypothesis tests and confidence intervals:
If a 95% confidence interval for mean claim severity is :
- We immediately reject at because .
- We fail to reject at because .
6. Classical Hypothesis Tests: Formulation and Test Statistics
6.1 Two-Sample Pooled -Test vs. Welch's -Test
To test against :
- Equal Variances Assumed: , compared to .
- Unequal Variances (Welch's Test): , compared to .
6.2 Two-Sample -Test for Equality of Variances
To test versus for two independent normal populations:
By convention, placing the larger sample variance in the numerator () creates an upper-tailed test with critical value .
6.3 Pearson's Chi-Square () Goodness-of-Fit Test
To evaluate whether observed counts conform to hypothesized cell probabilities with expected counts :
where:
- is the number of categorical categories or bins.
- is the number of unknown population parameters estimated from data via maximum likelihood (e.g., estimating for a Poisson fit gives , reducing df to ).
- Rule of Thumb: All expected counts should satisfy to ensure normal approximation accuracy.
6.4 Chi-Square Test of Independence (Contingency Tables)
For an contingency table testing independence between two categorical features:
7. The Asymptotic Likelihood Triad ("The Holy Trinity")
For parameters estimated via Maximum Likelihood (as in Generalized Linear Models), three foundational tests test against :
- Log-likelihood curve
- Tangent at the null (score slope)
1. LRT measures the vertical drop . 2. Wald measures the squared horizontal distance weighted by the peak curvature. 3. Score measures the tangent slope at the null value.
| Test Name | Test Statistic Formula | Geometric Interpretation | Required Computation |
|---|---|---|---|
| Likelihood Ratio Test (LRT) | Vertical drop in the log-likelihood curve from its peak to the null value. | Fits both the unrestricted (full) and restricted (null) models. | |
| Wald Test | Squared horizontal distance from estimate to null, weighted by peak curvature. | Fits only the unrestricted (full) model. | |
| Rao Score Test (Lagrange Multiplier) | Steepness of the tangent slope of the log-likelihood evaluated at the null value . | Fits only the restricted (null) model. |
7.1 Large-Sample Asymptotic Equivalence
Under , as sample size , all three statistics converge in distribution to the same chi-square distribution with degrees of freedom equal to the number of parameter restrictions :
In GLM regression output (Module 3):
- R's
summary.glm()reports Wald tests (). - R's
anova(model1, model2, test = "Chisq")conducts the Likelihood Ratio Test via difference in deviances .
8. R code and output interpretation lab
8.1 Two-Sample Welch vs. Pooled -Test (t.test())
# Simulate claim costs for two regional territories
set.seed(42)
terr_A <- rnorm(35, mean = 1250, sd = 280)
terr_B <- rnorm(40, mean = 1110, sd = 190)
# 1. Default Welch Two-Sample t-test (unequal variances)
t.test(terr_A, terr_B) Welch Two Sample t-test
data: terr_A and terr_B
t = 2.4589, df = 57.818, p-value = 0.01693
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
26.0418 253.9582
sample estimates:
mean of x mean of y
1250 1110Line-by-Line Output Analysis:
t = 2.4589: Test statistic calculated using unpooled standard error .df = 57.818: Welch-Satterthwaite non-integer degrees of freedom due to variance heterogeneity ( vs. ).p-value = 0.01693: Since , reject at the 5% level.95 percent confidence interval: [26.04, 253.96]: Does not contain 0, perfectly corroborating rejection of .
8.2 -Test for Equality of Variances (var.test())
var.test(terr_A, terr_B) F test to compare two variances
data: terr_A and terr_B
F = 2.1717, num df = 34, denom df = 39, p-value = 0.01955
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
1.134298 4.218552
sample estimates:
ratio of variances
2.171744ratio of variances = 2.1717: Territory A displays more than double the sample variance of Territory B.p-value = 0.01955 < 0.05: We reject equal variances, verifying that Welch's -test was the correct modeling choice over the pooled test.
8.3 Contingency Table Independence (chisq.test())
claims_matrix <- matrix(c(120, 30, 80, 70), nrow = 2, byrow = TRUE)
rownames(claims_matrix) <- c("Preferred", "Standard")
colnames(claims_matrix) <- c("No Claim", "Filed Claim")
chisq.test(claims_matrix, correct = FALSE) Pearson's Chi-squared test
data: claims_matrix
X-squared = 20.833, df = 1, p-value = 5.013e-06df = (2-1)*(2-1) = 1.X-squared = 20.833, with . Strong evidence that claim occurrence depends significantly on risk classification tier.
9. Common traps
- The "probability parameter inside the CI" fallacy. Trap: a question states "there is a 95% probability that the true parameter lies in ." Reality: this is false in frequentist statistics; the parameter is fixed.
- is biased for . Trap: assuming that because is unbiased for , must be unbiased for . Reality: by Jensen's inequality applied to the concave .
- Degrees of freedom in goodness-of-fit. Trap: testing whether data fit a Poisson distribution with unknown using categories and . Correction: when is estimated by MLE from the sample, .
- Paired vs. two-sample independence. Trap: treating before-and-after measurements on the same drivers as two independent samples with degrees of freedom. Correction: use the paired -test on the differences , with degrees of freedom.
- Prediction interval vs. confidence interval width. Trap: believing that as a prediction interval shrinks to zero width. Reality: the confidence interval width tends to , but the prediction interval width approaches because of irreducible process variance.
- Invariance of MLE vs. method of moments. Trap: expecting MOM estimators to be invariant under a transformation . Reality: invariance holds for the MLE, ; it generally does not hold for MOM estimators.
- One-sided vs. two-sided -values. Trap: forgetting to double the one-sided tail probability for a symmetric two-sided test: .
- Non-significant does not mean "equal to the null". Trap: concluding that proves . Reality: a high -value means the sample gives insufficient evidence to reject ; it never proves the null hypothesis (absence of evidence is not evidence of absence).
- Sample size rounding. Trap: solving and rounding to . Correction: always round up to the next integer () so the margin of error stays within .
- Pooled variance weights. Trap: averaging and directly, , when . Correction: weight by degrees of freedom: .
- What Wald, LRT and score tests need to fit. Trap: believing the score test requires fitting the full unrestricted model. Reality: the score test evaluates the slope at , so it needs only the null model; Wald needs only the full model; the LRT needs both.
- Chi-square variance interval inversion. Trap: putting the larger critical value in the denominator of the upper bound. Correction: dividing by a larger number gives a smaller value, so the lower bound uses and the upper bound uses .
10. Master Practice Questions
Problem 1: Power Calculation for Claim Auditing
An actuarial auditor tests whether an underwriting team's mean loss processing error rate exceeds standard benchmarks. Let denote claim processing discrepancy in dollars. The auditor tests:
using a sample of audited claims at significance level .
Calculate the statistical power of this test if the true population mean discrepancy is .
- A0.050
- B0.196
- C0.154
- D0.705
- E0.804
Comprehensive Solution:
Step 1: Determine the critical rejection boundary under Under , the sample mean has standard error:
For an upper-tailed test at , the standard normal critical value is . The decision rule rejects if:
Step 2: Evaluate rejection probability under the true alternative Under the alternative , .
Using standard normal tables: , . Interpolating yields .
Correct Answer: (E)
Why the other choices are wrong:
- (A) Gives the significance level , the rejection probability when is true.
- (B) Gives , the Type II error probability.
- (C) Forgets to divide by , using a standard error of 8.
- (D) Uses the two-sided critical value 1.96 for a one-sided test.
Problem 2: Confidence Interval Inversion for Population Variance
A property insurer samples commercial property losses. The sample standard deviation is calculated as . Assuming losses follow a normal distribution, determine the lower limit of a 90% two-sided confidence interval for the true population variance (in millions of dollars squared, i.e., ).
Given chi-square critical values for :
- A91.69
- B101.37
- C265.44
- D144.00
- E96.28
Comprehensive Solution:
Step 1: State the pivotal quantity and interval formula The pivotal statistic is . For a 90% confidence interval, , so tail probabilities are and . The exact confidence interval for is:
Step 2: Calculate the numerator
Step 3: Evaluate the lower limit The lower bound is obtained by dividing by the upper critical value :
Correct Answer: (A)
Why the other choices are wrong:
- (B) Uses , which belongs to an 80% interval.
- (C) Gives the upper confidence limit.
- (D) Gives the point estimate .
- (E) Uses instead of in the numerator.
Problem 3: Asymptotic Likelihood Ratio Test for Mortality Trend
An actuary models policyholder death counts using a Poisson GLM with log link: , where is an indicator for smoking status ( for smokers, for non-smokers). The fitted log-likelihood under the full model (with smoker predictor) is . The fitted log-likelihood under the reduced model (intercept only, ) is .
Using the Likelihood Ratio Test, calculate the test statistic and state the test decision at . (Given: , ).
- A; Reject
- B; Reject
- C; Reject
- D; Fail to reject
- E; Fail to reject
Comprehensive Solution:
Step 1: Compute the Likelihood Ratio Test statistic The LRT test statistic measures twice the difference in maximized log-likelihoods:
Step 2: Determine degrees of freedom and critical value The full model has 2 parameters (); the reduced model has 1 parameter (). The difference in parameters is degree of freedom. At , the critical threshold is .
Step 3: Decision Rule Since , we reject at the 1% significance level (). Smoking status is a highly statistically significant predictor of mortality.
Correct Answer: (C)
Why the other choices are wrong:
- (A) Multiplies the log-likelihood difference by 4 instead of 2.
- (B) Forgets the factor 2; 4.65 is below 6.635, so rejecting does not follow.
- (D) Computes 9.30 correctly but misreads as a failure to reject.
- (E) Forgets the factor 2 and compares 4.65 with 6.635.
Problem 4: Sample Size for Actuarial Premium Equivalence
An insurer plans to estimate the true mean annual health claim severity for a new group insurance policyholder segment. Historical standard deviation is known to be .
Determine the minimum number of policyholders that must be sampled so that the actuary is 98% confident that the sample mean is within of the true mean .
Given standard normal percentiles:
- A346
- B271
- C347
- D425
- E19
Comprehensive Solution:
Step 1: Identify confidence level and critical value Confidence level is . For a two-sided margin of error, each tail contains . The corresponding upper percentile is .
Step 2: Set up the margin of error inequality The actuary requires the margin of error to satisfy:
Step 3: Square and round up
Because sample size must be an integer and the margin of error must not exceed , must be rounded up to the nearest integer:
Correct Answer: (C)
Why the other choices are wrong:
- (A) Rounds 346.26 down, which leaves the margin of error just above 150.
- (B) Uses , the one-sided 98th percentile, for a two-sided 98% interval, so .
- (D) Uses , which gives 99% confidence.
- (E) Stops at and forgets to square it.