Skip to content

MANE 3332.03

Lecture 25, April 24

  • Topics:

    • Chapter 9, Case 3
    • Assignments:
    • New: Chapter 9, Case 2 Upper Quiz (assigned 4/24/2025, due 4/29/2025)
    • New: Chapter 9, Case 2 Lower Quiz (assigned 4/24/2025, due 4/29/2025)
    • New: Chapter 9, Case 2 2-sided Quiz (assigned 4/24/2025, due 4/29/2025)
    • New: Chapter 9, Case 3 Upper Practice Problems (assigned 4/24/2025, due 4/29/2025)
    • New: Chapter 9, Case 3 Lower Practice Problems (assigned 4/24/2025, due 4/29/2025)
    • New: Chapter 9, Case 3 2-sided Practice Problems (assigned 4/24/2025, due 4/29/2025)
    • New: Technical Report Two (assigned 4/17/2025, due 5/15/2025)
    • Attendance
    • Questions?

Handouts


Class Schedule

Tuesday Lecture Thursday Lecture
4/22: Chapter 9, Case 2 4/24: Chapter 9, Case 3
4/29: Chapter 11 5/1: Chapter 11
5/6: Review 5/8: Dead Day (no class)

4 Sessions plus final exam

Final Exam: Tuesday May 13, 2025 10:15 am - 12:00 pm


Case 3. Hypothesis Test on Variance of Normal Population

  • The test statistics is a \(\chi^2\) random variable
\[ \chi^2_0=\frac{(n-1)S^2}{\sigma^2_0} \]

- The table below summarizes the three possible hypothesis tests. The rejection regions are clearly shown in Figure 9-17 on page 222


Figure 9-17


Test Summary

  • See summary in your textbook


Problem 7.108

Problem taken from Ostle, Turner, Hicks and McElrath (1996). Engineering Statistics: The Industrial Experience. Duxbury Press.


Statistics for Problem 7.108


Classical Approach


Problem 7.108 Plots


Problem 7.108 Plots


Problem 7.108 Shapiro-Wilks Test


p-values

  • Very similar to the case for the mean of a normal population with variance unknown

  • Difficult to calculate since the \(\chi^2\)-tables only contain a few quantiles

  • Can use tables to generate bounds on the \(p\)-value

  • Software will provide \(p\)-values


Test on Variance using R (EnvStats)


Power Calculations

  • Can be done with OC curves found in Table VIIi--n

  • Can be done in software such as R


Test on Standard Deviation

  • What about test on standard deviation?

Chapter 9, Case 3 2-sided Practice Problems


Practice Problem Chapter 9, Case 3 Lower


Practice Problem Chapter 9, Case 3 Upper


Case 4. Hypothesis Test on a Population Proportion

  • The test statistics for the hypothesis test is
\[ Z_0=\frac{x-np_0}{\sqrt{np_0(1-p_0)}} \]


Problem 9.5.2


Problem 9.5.2 Classic Approach


Power Calculations

  • For the two-sided alternative hypothesis
\[ \begin{aligned} \beta&=&\Phi\left(\frac{p_0-p+z_{\alpha/2}\sqrt{p_0(1-p_0)/n}}{\sqrt{p(1-p)/n}}\right)\\ &&-\Phi\left(\frac{p_0-p-z_{\alpha/2}\sqrt{p_0(1-p_0)/n}}{\sqrt{p(1-p)/n}}\right) \end{aligned} \]
  • If the alternative is \(H_1:p<p_0\)
\[ \beta=1- \Phi\left(\frac{p_0-p-z_{\alpha}\sqrt{p_0(1-p_0)/n}}{\sqrt{p(1-p)/n}}\right) \]
  • and finally if the alternative hypothesis is \(H_1:p>p_0\)
\[ \beta=\Phi\left(\frac{p_0-p+z_{\alpha}\sqrt{p_0(1-p_0)/n}}{\sqrt{p(1-p)/n}}\right) \]

Sample Size

  • Sample size requirements to satisfy type II(\(\beta\)) error constraints for a two-tailed hypothesis test is given by
\[ n=\left[\frac{z_{\alpha/2}\sqrt{p_0(1-p_0)}+z_\beta\sqrt{p(1-p)}}{p-p_0}\right]^2. \]
  • For a sample size for a one-sided test substitute \(z_\alpha\) for \(z_{\alpha/2}\).

  • Problem 9.95


Testing for Goodness of Fit

  • Material is presented in section 9-7 of your textbook

  • Procedure determines if the sample data is from a specified underlying distribution

  • Procedure uses a \(\chi^2\) distribution

  • Example 9-12 presents a \(\chi^2\) goodness of fit test for a Poisson example

  • Example 9-13 presents a \(\chi^2\) goodness of fit test for a normal example


Procedure

  1. Collect a random sample of size \(n\) from a population with an unknown distribution,

  2. Arrange the \(n\) observations in a frequency distribution containing \(k\) classes

  3. Calculate the observed frequency in each class \(O_i\),

  4. From the hypothesized distribution, calculate the expected frequency in class \(i\), denoted \(E_i\) (if \(E_i\) is small combine classes)

  5. Calculate the test statistic

\[ \chi^2_0=\frac{\sum_{i=1}^k\left(O_i-E_i\right)^2}{E_i} \]
  1. Reject the null hypothesis if the calculated value of the test statistic \(\chi^2_0>\chi^2_{\alpha,k-p-1}\) where \(p\) is the number of parameters in the hypothesized distribution

Example 9.12, part 1


Example 9.12, part 2


Chapter 9 Summary

  • You should be prepared to work any practice problems assigned: Cases 1-3 with three different alternatives
  • All other information is conceptual knowledge that can be questioned with multiple choice
    • Name 3 ways to test if data is from a normal distribution