13.1 One-Sample: Hypothesis Testing on the Mean

We will consider testing:


H0:μ=μ0 H1:μμ0


Let x1,x2,,xn be a random sample for a normal distribution with unknown mean μ and unknown variance σ2.

If the null hypothesis H0:μ=μ0 is true, the random variable

T=ˉxμ0ˆs/n

has a t distribution n1 degrees of freedom.


13.1.1 Example

A company wants to improve sales. Previous sales data indicate that the mean sale was 220 euros per transaction. After training the sales force, recent sales data were taken from a sample of 9 salesmen. The company needs to know if the training had worked.


Solution


  • Data

x={203,229,215,220,223,233,208,228,209}

n=9;ˉx=218.67;s=10.52.

  • Hypothesis

H0:μ=220 H1:μ220

  • Test statistic

T=ˉxμS/n=218.6722010.52/9=0.38

  • Decision


  • Critical Value

We would reject H0 if T were less than tα or greater than tα (determined used a t-table)

α=0.05;df=8


The test statistic T=±0.38 is not less than tα=2.31 nor greater than tα=±2.31. Then, we fail to reject the null hypothesis. That is, the test statistic does not fall in the critical region.
  • p-value

We would determine the area under a tdf curve, to the right of T and to the left of T

T=±0.38;df=8


The p-value of the test is 0.71, which is greater than the significance level α=0.05. Then, we fail to reject the null hypothesis. The conclusion is the same regardless of the approach use.


  • Interpretation

There is insufficient evidence, at the α=0.05 level, to conclude that the mean sale is not different from 220 euros (per transaction).


  • Reporting

A one-sample t-test was computed to determine whether the mean sales was different to the population normal mean sales (220).


Your turn

  • The company thinks that there is a difference (that the mean sales increased after the training). Test this hypothesis.