Hypothesis Test for Mean Difference using StatCrunch
I see a lot of students struggle with recognizing what a problem statement is asking them to do. Consider this problem:
What do you get from that reading? I get:
- The phrase “Can the engineer support the claim…” tells me this is to be a hypothesis test.
- The second part of that sentence, “have different mean braking distances” indicates it is a test of the difference in means, µ d = µ 1 – µ 2 .
- That phrase also tells me the claim is “the means are different” which says the population means are not equal, µ 1 ≠ µ 2 .
- Since the null hypothesis always is a form of equality, ≤, =, ≥, the null cannot be the claim, which makes the alternative the claim.
- The alternative hypothesis is the complement of the null, so the two hypotheses are: Ho: µ 1 = µ 2 and Ha: µ 1 ≠ µ 2
- The math operator in the alternative always indicates the “tail” of the test. Here, it tells me the test is a two-tailed test.
- The fact that the standard deviations are σ’s, the population standard deviations, and not the sample standard deviations, s, tells me to run a z-test.[Note: some textbook authors say you can run the z-test without the population σ if n is > 30; other authors state you should always run the t-test if you do not have σ. As n increases beyond 30, the difference between the two tests becomes negligible but may be enough to trip you up if you are required to report answers in four decimal places. So, check with your textbook/instructor for the preference on this.]
I like to solve these types of problems using StatCrunch ® .
First, find the critical values of z using the StatCrunch normal calculator: Stat > Calculators > Normal . I prefer to use the “Between” option for two-tailed tests and enter the confidence level, c = 1- alpha, in the probability box. Here, I entered 0.9 and clicked Compute.
The resulting graph shows a red area under the curve which represents 0.9, which puts alpha/2 = 0.05 in each tail. The critical values of z are -1.645 and +1.645 and the rejection regions are z < -1.645 and z > +1.645.
Although you could solve for the test statistic manually using
and then use tables to find the p-value,
I prefer to use StatCrunch to do the entire test. Use the command sequence Stat > Z Stats > 2 Sample > With Summary .
In the dialog box that opens, enter the data for the two samples. Note: enter the population σ’s for the two samples and do not convert them to the sample standard error (standard deviation of the sampling distribution). Although you would do this if running the test “manually,” StatCrunch is set up to do this conversion for you.
Click Compute!
The test statistic is -0.900, rounding to three decimals, and the p-value is 0.368. The test statistics does not fall in the rejection regions of <-1.645 or >+1.645, therefore the decision is to not reject the null hypothesis. That is the same result the p-value tells us since it is > alpha = 0.1.
Since the alternative is the claim, I would state my conclusion as:
At the 10% significance level, there is not enough evidence to support the claim that the mean braking distance for Type 1 tires is different than Type 2 tires.
Remember, you can quickly get the confidence interval around the mean difference by clicking on the Options button at the top left of the Output window, and click on Edit. Options > Edit. Then change select Confidence Interval for µ 1 – µ 2 and enter the confidence level desired. Then, click Compute!
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed .
IMAGES
VIDEO
COMMENTS
Under Perform, the Hypothesis test for μ is selected by default. Enter 64.05 for the null value of the population mean, μ. For this example, change the alternative hypothesis to < to test if the mean amount of apple juice in a bottle is actually lower than the 64.05 ounce standard. Click Compute! to view the hypothesis test results. The ...
Hypothesis Testing
Instructions. Specify the Sample size, the true proportion in the population with characteristic of interest (True p), the null value being tested for the proportion (Null p), and the alternative for the test (Alternative).; Select Update applet to reload the applet with these parameters.; Select 1 test to compute the hypothesis test results based on a single sample of the specified size.
Under Perform, the Hypothesis test for μ 1 - μ 2 is selected by default. Leave the null value at 0 to directly compare the two means. The alternative hypothesis can be changed to > or <, but for this scenario leave the alternative hypothesis at ≠ since the goal is to detect any type of difference. Click Compute! to view the hypothesis test ...
Use a 1% significance level to test the claim that such polygraph results are correct less than 80 percent of the time. Identify the null hypothesis, alternative hypothesis, test statistic, P-value, conclusion about the null hypothesis, and final conclusion that addresses the original claim. Use the P-value method.
and a hypothesis test is performed in example 7.10, page 232 you can do that test in statcrunch as follows click on stat / t statistics / one sample / with summary enter the data in the various boxes, the click on next (not calculate) click on the hypothesis test and fill in the null mean (the population mean) make sure that the alternative box ...
17. Hypothesis Testing (1 proportion) 1. Stat > Proportion Stats > One Sample > With Summary 2. Type in the values for number of successes, number of observations (this is the sample size) 3. Check on Perform hypothesis test for p 4. Enter the value for the null hypothesis and select the correct symbol in the alternative hypothesis 5.
Since the null hypothesis always is a form of equality, ≤, =, ≥, the null cannot be the claim, which makes the alternative the claim. The alternative hypothesis is the complement of the null, so the two hypotheses are: Ho: µ 1 = µ 2 and Ha: µ 1 ≠ µ 2; The math operator in the alternative always indicates the "tail" of the test.
AP Statistics. About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features NFL Sunday Ticket
The table above the graph shows the cumulative proportion of the hypothesis tests where the null hypothesis was rejected. Try Generate at least 1000 0.05 level tests using samples of size 100 from a normal distribution with Mean= 50, Std. Dev. = 1, Null mean = 50 and the not equal alternative.