Student's T Distribution Notes

Student's t-Distribution

Confidence Intervals and the Normal Distribution

  • When constructing a confidence interval for the mean, if the population standard deviation (σ)(\sigma) is known, the normal distribution is used to find the critical value Z<em>α/2\Z<em>{\alpha/2}. The confidence interval is calculated as: Xˉ±Z</em>α/2∗σn\bar{X} \pm Z</em>{\alpha/2} * \frac{\sigma}{\sqrt{n}}
  • It is rare to know (σ)(\sigma) when estimating (μ)(\mu). In practice, (σ)(\sigma) is usually unknown.

The Student's t-Distribution

  • When (σ)(\sigma) is unknown, it is replaced with the sample standard deviation (s)(s).
  • In this case, the critical values are obtained from the Student's t-distribution instead of the normal distribution.
  • There are multiple Student's t-distributions, each distinguished by its degrees of freedom, which is related to the sample size.

Degrees of Freedom

  • When using the Student's t-distribution for constructing a confidence interval for a population mean, the degrees of freedom are calculated as one less than the sample size:
    degrees of freedom=n−1\text{degrees of freedom} = n - 1

Properties of Student's t-Distributions

  • Student's t-distributions are symmetric and unimodal, similar to the normal distribution.
  • However, they are more spread out than the normal distribution because (s)(s) is, on average, a bit smaller than (σ)(\sigma).
  • Replacing (σ)(\sigma) with (s)(s) increases the spread due to the randomness of (s)(s).
  • The smaller the number of degrees of freedom, the more pronounced the spread.
  • When the number of degrees of freedom is large, (s)(s) tends to be close to (σ)(\sigma), making the t-distribution very close to the normal distribution.

Critical Value and Confidence Interval

  • The critical value is denoted as tα/2t_{\alpha/2}.
  • The confidence interval for a population mean when (σ)(\sigma) is unknown is:
    Xˉ±tα/2∗sn\bar{X} \pm t_{\alpha/2} * \frac{s}{\sqrt{n}}
  • To find the critical value, let 1−α1 - \alpha be the confidence level. The critical value is t<em>α/2t<em>{\alpha/2} because the area under the t-distribution between −t</em>α/2-t</em>{\alpha/2} and tα/2t_{\alpha/2} is 1−α1 - \alpha.
  • The critical value tα/2t_{\alpha/2} can be found in a t-table (Table A3) or using technology.

Finding Critical Values Using Different Methods

  • Example: Find the critical value tα/2t_{\alpha/2} needed for a 90% confidence interval when the sample size is 63.
  • Degrees of freedom: n−1=63−1=62n - 1 = 63 - 1 = 62
  • For a 90% confidence interval, the area in each tail is 0.05.
    • TI 84 Plus Calculator:
      • Use the invT command with area to the left as 0.05 and degrees of freedom as 62.
      • invT(0.05, 62) returns -1.6698, so tα/2=1.6698t_{\alpha/2} = 1.6698
    • Excel:
      • Use the T.INV command.
    • Table A3:
      • If the degrees of freedom (62) is not in the table, use the next smaller number (60).
      • The value from the table for a 90% confidence interval with 60 degrees of freedom is 1.671.

Assumptions for Confidence Intervals When Sigma is Unknown

  • Simple random sample.
  • Large sample size (n>30)(n > 30) or the population is approximately normal.
  • If the sample size is small, check if the sample comes from a population that is approximately normal.
    • Create a dot plot or box plot of the sample.
    • If there are no outliers and the sample is not strongly skewed, it is reasonable to assume approximate normality.

Example: Calorie Content of Chocolate Cookies

  • A food chemist analyzes the calorie content of a sample of 8 cookies.
  • Objective: Find a 98% confidence interval for the mean number of calories.
  • Assumptions check:
    • Simple random sample.
    • Small sample size requires the population to be approximately normal. A dot plot shows no strong skewness or outliers.
  • Using Excel:
    • Sample mean: xˉ=115.375\bar{x} = 115.375
    • Sample standard deviation: s=2.8253s = 2.8253
    • Margin of error (using CONFIDENCE.T): CONFIDENCE.T(0.02, 2.8253, 8) = 2.9946
    • Confidence interval: 115.375±2.9946115.375 \pm 2.9946
  • Conclusion: We are 98% confident that the mean number of calories per cookie is between 112.4 and 118.4.

Relationship Between Confidence Level and Margin of Error

  • Increasing the confidence level increases the critical value and the margin of error.
  • There is a trade-off between confidence level and margin of error.
  • Higher confidence is desirable, but so is a smaller margin of error.
  • Examples:
    • 70% confidence intervals have smaller margins of error but cover the population mean only 70% of the time.
    • 99.7% confidence intervals almost always cover the population mean, but have a large margin of error.
    • 95% confidence level is a good compromise between reliability and margin of error for many purposes.

Interpretation of Confidence Intervals

  • A 95% confidence interval is constructed using a method that succeeds 95% of the time.
  • The confidence level describes the success rate of the method, not the success of any particular interval.

Determining Sample Size for a Desired Margin of Error

  • When the margin of error is too large, the confidence interval may be too wide to be useful.
  • Ways to reduce the margin of error:
    • Reduce the level of confidence (undesirable).
    • Increase the sample size.
  • Margin of error formula (when (σ)(\sigma) is known):
    M=Zα/2∗σnM = Z_{\alpha/2} * \frac{\sigma}{\sqrt{n}}
  • Rewriting the equation to solve for nn:
    n=(Zα/2∗σM)2n = (\frac{Z_{\alpha/2} * \sigma}{M})^2
  • This formula gives the minimum value of nn needed. Round up to the next whole number.
  • If (σ)(\sigma) is unknown, use (s)(s) from a sample of size greater than 30:
    n=(Zα/2∗sM)2n = (\frac{Z_{\alpha/2} * s}{M})^2
  • Round the result up to the nearest whole number.

Example: Estimating Mean Weight of Mice

  • Scientists want to estimate the mean weight of mice after a special diet.
  • A sample of 60 mice has s=3s = 3 grams.
  • Objective: Estimate the number of mice needed for a 95% confidence interval to have a margin of error of 0.5 grams.
  • Given:
    • Zα/2=1.96Z_{\alpha/2} = 1.96
    • s=3s = 3
    • M=0.5M = 0.5
  • Calculation:
    n=(1.96∗30.5)2=138.2976n = (\frac{1.96 * 3}{0.5})^2 = 138.2976
  • Round up: n=139n = 139
  • Conclusion: Weigh 139 mice to obtain a 95% confidence interval with a margin of error of 0.5 grams.