Student’s t-distribution
Introduction to t-distribution
The Student’s t-distribution is a crucial probability distribution used in inferential statistics, particularly when dealing with small sample sizes or when the population standard deviation is unknown. It is named after William Sealy Gosset, who published under the pseudonym “Student”.
Definition: The Student’s t-distribution is a probability distribution that arises when estimating the mean of a normally distributed population in situations where the sample size is small and the population standard deviation is unknown. It is symmetric and bell-shaped, similar to the normal distribution, but with heavier tails, indicating more probability in the tails and thus greater uncertainty compared to the normal distribution. The shape of the t-distribution is determined by its degrees of freedom (ν).
Derivation of its Probability Density Function (p.d.f.)
The t-distribution is derived from the ratio of a standard normal variate and the square root of a chi-squared variate, divided by its degrees of freedom. Specifically, if Z is a standard normal random variable (Z ~ N(0, 1)) and χ2 is a chi-squared random variable with ν degrees of freedom (χ2 ~ χ2(ν)), and Z and χ2 are independent, then the random variable T defined as:
T = Z / √(χ2 / ν)
follows a t-distribution with ν degrees of freedom. The p.d.f. of a t-distribution with ν degrees of freedom is given by:
f(t; ν) = (Γ((ν+1)/2) / (√νπ Γ(ν/2))) × (1 + t2/ν)-(ν+1)/2
where Γ is the Gamma function and ν > 0.
Mean, Variance, and Moments
Mean
- For ν > 1, the mean of the t-distribution is:
E(T) = 0
- For ν = 1, the mean is undefined.
Variance
- For ν > 2, the variance of the t-distribution is:
Var(T) = ν / (ν - 2)
- For 1 < ν ≤ 2, the variance is undefined.
Moments
- Due to its symmetry, all odd moments about the mean (if they exist) are zero. For instance, E(T2k+1) = 0 for k = 0, 1, 2, ... if ν > 2k+1.
- Even moments exist if the degrees of freedom are greater than the order of the moment. For example, E(T2k) exists if ν > 2k.
Limiting Form of t-distribution
An important property of the t-distribution is its limiting behavior. As the degrees of freedom (ν) approach infinity, the t-distribution approaches the standard normal distribution (Z ~ N(0, 1)).
This means that for large sample sizes, the t-distribution and the normal distribution are practically indistinguishable. The concept highlights that as sample size increases, the sample standard deviation becomes a more reliable estimate of the population standard deviation, reducing the uncertainty that the t-distribution accounts for.
Test of Significance based on t-distribution
The t-distribution is widely used for hypothesis testing, especially when dealing with population means and when the population standard deviation is unknown, typically with small to moderate sample sizes.
One-Sample t-test
This test determines if the mean of a single sample is significantly different from a known or hypothesized population mean (μ0).
Test statistic: t = (x̄ - μ0) / (s / √n)
where x̄ is the sample mean, μ0 is the hypothesized population mean, s is the sample standard deviation, and n is the sample size. The degrees of freedom (ν) for this test are n - 1.
Two-Sample t-test (Independent Samples)
This test determines if there is a significant difference between the means of two independent populations.
- Pooled t-test (assuming equal population variances): This version assumes that the variances of the two populations are equal and pools the sample variances to estimate the common population variance.
Test statistic: t = (x̄1 - x̄2) / (sp√(1/n1 + 1/n2))
where x̄1 and x̄2 are the sample means, n1 and n2 are the sample sizes, and sp is the pooled standard deviation. The pooled variance is calculated as: sp2 = (((n1-1)s12) + ((n2-1)s22)) / (n1+n2-2). The degrees of freedom (ν) are n1 + n2 - 2. - Welch's t-test (assuming unequal population variances): This version is more robust when the population variances are not assumed to be equal.
Test statistic: t = (x̄1 - x̄2) / √(s12/n1 + s22/n2)
where s12 and s22 are the sample variances. The degrees of freedom are calculated using a complex Satterthwaite's approximation, which often results in a non-integer value.
Paired Sample t-test
This test is used when samples are dependent or paired (e.g., measurements taken before and after a treatment on the same subjects). It analyzes the mean of the differences between paired observations.
- Calculate the difference (di) for each pair.
- Calculate the mean of these differences (d̄) and their standard deviation (sd).
Test statistic: t = d̄ / (sd / √n)
where n is the number of pairs. The degrees of freedom (ν) are n - 1.
Confidence Intervals based on t-distribution
Confidence intervals provide a range of values within which the true population parameter (e.g., mean or difference in means) is estimated to lie with a certain level of confidence.
For a single population mean (μ):
CI = x̄ ± tα/2, ν × (s / √n)
For the difference between two population means (μ1 - μ2) for independent samples with equal variances:
CI = (x̄1 - x̄2) ± tα/2, ν × sp√(1/n1 + 1/n2)
For the mean difference of paired samples (μd):
CI = d̄ ± tα/2, ν × (sd / √n)
In these formulas, tα/2, ν is the critical t-value obtained from the t-distribution table for a specified confidence level (1-α) and degrees of freedom (ν).
Snedecore's F-distribution
Introduction to F-distribution
The F-distribution, also known as Snedecore's F-distribution or the Fisher-Snedecore distribution, is another fundamental continuous probability distribution in inferential statistics. It is primarily used when comparing variances of two populations or when comparing means of three or more populations (Analysis of Variance - ANOVA).
Definition: The F-distribution is a probability distribution that arises in the testing of hypotheses concerning the equality of two population variances, and is fundamental to analysis of variance (ANOVA). It is a skewed distribution, defined only for non-negative values (F ≥ 0), and its shape is determined by two parameters: the numerator degrees of freedom (ν1) and the denominator degrees of freedom (ν2).
Derivation of p.d.f.
The F-distribution is derived from the ratio of two independent chi-squared variates, each divided by its respective degrees of freedom. Specifically, if χ12 is a chi-squared random variable with ν1 degrees of freedom (χ12 ~ χ2(ν1)) and χ22 is an independent chi-squared random variable with ν2 degrees of freedom (χ22 ~ χ2(ν2)), then the random variable F defined as:
F = (χ12 / ν1) / (χ22 / ν2)
follows an F-distribution with ν1 and ν2 degrees of freedom, denoted as F ~ F(ν1, ν2).
The p.d.f. of an F-distribution with ν1 and ν2 degrees of freedom is given by:
f(F; ν1, ν2) = (√( (ν1ν2)ν1 (ν2)ν2 ) / ( (ν1F + ν2)(ν1+ν2) )) × (Γ((ν1+ν2)/2) / (Γ(ν1/2) Γ(ν2/2))) × F(ν1/2)-1
for F > 0, where Γ is the Gamma function. A more commonly encountered form using the Beta function is:
f(F; ν1, ν2) = ( (ν1/ν2)ν1/2 / B(ν1/2, ν2/2) ) × F(ν1/2)-1 × (1 + (ν1/ν2)F)-(ν1+ν2)/2
where B is the Beta function.
Mean, Variance, and Mode
Mean
- For ν2 > 2, the mean of the F-distribution is:
E(F) = ν2 / (ν2 - 2)
- For ν2 ≤ 2, the mean is undefined.
Variance
- For ν2 > 4, the variance of the F-distribution is:
Var(F) = (2ν22(ν1 + ν2 - 2)) / (ν1(ν2 - 2)2(ν2 - 4))
- For ν2 ≤ 4, the variance is undefined.
Mode
- For ν1 > 2, the mode of the F-distribution is:
Mode(F) = ((ν1 - 2)ν2) / (ν1(ν2 + 2))
- If ν1 ≤ 2, the mode is typically considered to be at F=0, though the p.d.f. might be decreasing from F=0.
Distribution of 1/F(n1, n2)
An important property of the F-distribution relates to the reciprocal of an F-variate:
If F follows an F-distribution with ν1 (numerator) and ν2 (denominator) degrees of freedom, i.e., F ~ F(ν1, ν2), then its reciprocal, 1/F, follows an F-distribution with the degrees of freedom reversed, i.e., 1/F ~ F(ν2, ν1).
This property is particularly useful in hypothesis testing, especially for two-tailed F-tests, as it allows for the use of a single F-table by transforming the critical value for the lower tail.
Test of Significance based on F-distribution
The F-distribution is used for various tests of significance, primarily involving comparisons of variances or means of multiple groups.
Comparing two population variances (F-test for variances)
This test assesses whether the variances of two independent populations (σ12 and σ22) are equal.
Test statistic: F = s12 / s22
where s12 and s22 are the sample variances from two independent samples. The numerator has ν1 = n1 - 1 degrees of freedom, and the denominator has ν2 = n2 - 1 degrees of freedom. It is common practice to place the larger sample variance in the numerator to ensure F ≥ 1, converting a two-tailed test into a one-tailed test.
Analysis of Variance (ANOVA)
ANOVA is a statistical technique that uses the F-distribution to test for significant differences between the means of three or more groups. It does this by comparing the variability between group means to the variability within the groups.
Test statistic: F = MSBetween / MSWithin
where MSBetween (Mean Square Between groups) represents the variance explained by the differences among group means, and MSWithin (Mean Square Within groups or Mean Square Error) represents the unexplained variance or error variance. The degrees of freedom are (k-1) for the numerator (MSBetween) and (N-k) for the denominator (MSWithin), where k is the number of groups and N is the total sample size across all groups.
Confidence Intervals based on F-distribution
Confidence intervals for the ratio of two population variances (σ12 / σ22) can be constructed using the F-distribution.
CI for σ12 / σ22:
(s12 / s22) × (1 / Fα/2, ν1, ν2) < σ12 / σ22 < (s12 / s22) × Fα/2, ν2, ν1
Alternatively, using notation for lower and upper critical values directly:
(s12 / s22) / FU < σ12 / σ22 < (s12 / s22) / FL
where FL = F1-α/2, ν1, ν2 (the lower critical value) and FU = Fα/2, ν1, ν2 (the upper critical value). Note that F1-α/2, ν1, ν2 = 1 / Fα/2, ν2, ν1.
Relationship between t, F and χ2 distributions
The t-distribution, F-distribution, and Chi-squared (χ2) distribution are closely related, as they are all derived from the standard normal distribution and often arise in the context of statistical inference for normally distributed data.
Relationship between t-distribution and Chi-squared (χ2) distribution
As previously mentioned in its derivation, a t-distributed random variable can be expressed in terms of a standard normal variate and a chi-squared variate:
T = Z / √(χ2 / ν)
where Z ~ N(0, 1) is a standard normal random variable, χ2 ~ χ2(ν) is a chi-squared random variable with ν degrees of freedom, and Z and χ2 are independent.
Relationship between F-distribution and Chi-squared (χ2) distribution
Similarly, an F-distributed random variable is defined as a ratio of two independent chi-squared variates:
F = (χ12 / ν1) / (χ22 / ν2)
where χ12 ~ χ2(ν1) and χ22 ~ χ2(ν2) are two independent chi-squared random variables with ν1 and ν2 degrees of freedom, respectively.
Relationship between t-distribution and F-distribution
There is a direct and fundamental relationship between the t-distribution and the F-distribution:
If T follows a t-distribution with ν degrees of freedom (T ~ t(ν)), then its square, T2, follows an F-distribution with 1 and ν degrees of freedom (T2 ~ F(1, ν)).
This relationship implies that a two-tailed t-test with α significance level is equivalent to a one-tailed F-test with the same α significance level, where the numerator degrees of freedom for the F-test is 1. Both tests will yield the same p-value and conclusion regarding the null hypothesis concerning the equality of two population means (or a single population mean against a hypothesized value).