Professional Documents
Culture Documents
Probability
The t-distribution
The t-distribution
The t-distribution
Probability
Review
Suppose X ∼ N(µ, σ 2 ) with known σ and unknown µ. The
b = x.
maximum likelihood estimator for µ is the sample mean µ
By CLT, we know that the sample mean x ∼ N(µ, σ 2 /n). Then,
x−µ
Z= √ ∼ N(0, 1)
σ/ n
Z (standard normal)
(1 − α)100%
−zα/2 0 zα/2
x−µ
Then, −zα/2 ≤ √ ≤ zα/2
σ/ n
We solve µ : ⇒ µ = x ± zα/2 √σn
The t-distribution
The t-distribution
Probability
The 100(1 − α)% confidence interval for µ
σ σ
x − zα/2 √ ≤ µ ≤ x + zα/2 √
n n
Suppose X ∼ N(µ, σ 2 ) with unknown σ and unknown µ.
An unbiased estimator for the population variance σ 2 , called sample
variance:
n
(Xi − x)2
P
2 i=1
s =
n−1
However, the distribution
x−µ
Tn−1 = √
s/ n
is NOT the standard normal distribution.
This distribution Tn−1 is called the (Student’s) t-distribution with
n − 1 degrees of freedom (df)
The t-distribution
The t-distribution
The t-distribution
Probability
Probability
100(1 − α)% confidence interval for µ
Probability Example 1
The grades in a test are known to follow a normal distribution, but
the mean and variance are unknown. A random sample of 6 students
produced the following scores: 68, 93, 82, 72, 65, 70. Use the
t-distribution to find a 90% two-sided confidence interval for the
mean score.
Solution
The Sample size n = 6. tα/2,n−1 = t0.05,5 = invT(0.95, 5) ≈ 2.015.
68 + 93 + 82 + 72 + 65 + 70
The sample mean x̄ = = 75.
6
7 + 18 + 7 + 3 + 10 + 52
2 2 2 2 2
The sample variance s 2 = = 111.2.
5
s
90% CI for µ is x ± tα/2,n−1 √
n
66.321 ≤ µ ≤ 83.679.
The Confidence Interval
The confidence interval
Probability
100(1 − α)% confidence interval for µ
Another way to calculate the confidence interval is by
Example: Practice
The grades in a test are known to follow a normal distribution, but
the mean and variance are unknown. A random sample of 6 students
produced the scores with mean 75 and standard deviation 10.55. Use
the t-distribution to find a 90% two-sided confidence interval for the
mean score.
The Confidence Interval
Probability
Hypothesis Tests
Hypothesis Tests
Hypothesis Tests
Probability
Hypothesis Tests
Hypothesis Tests
Probability
Decision
Right-sided: H0 : µ = µ0 versus H1 : µ > µ0 .
Decision Rule: Reject H0 if t > tα,n−1 .
Left-sided: H0 : µ = µ0 versus H1 : µ < µ0 .
tα,n−1 = invT(1 − α, n − 1)
Hypothesis Tests
Hypothesis Tests
Probability
Example 1
Suppose you want to test H0 : µ = 12 versus H1 : µ > 12 at the level
of significance 0.05. The data is ȳ = 13.2 and s = 2.5 from a sample
of 25.
Solution
Degree of freedom df = n − 1 = 24
tα,n−1 = invT(0.95, 24) ≈ 1.71
13.2 − 12
The test statistics t = √ = 2.4 > tα,n−1 . So, reject H0 .
2.5/ 25
We can also do this by Calculator:
Hypothesis Tests
Hypothesis Tests
Probability
Example (Practice)
The grades in a test are known to follow a normal distribution, but
the mean and variance are unknown. A random sample of 6 students
produced the following scores: 68, 93, 82, 72, 65, 70. Suppose we
want to test H0 : µ = 67 versus H1 : µ > 67 at the level of
significance 0.05.
Solution
We can do this by Calculator:
Hypothesis Tests