Presentation is loading. Please wait.

Presentation is loading. Please wait.

The process for setting up a hypothesis test: State the statistical model State your NULL HYPOTHESIS, H 0 State your ALTERNATE HYPOTHESIS, H 1 State the.

Similar presentations


Presentation on theme: "The process for setting up a hypothesis test: State the statistical model State your NULL HYPOTHESIS, H 0 State your ALTERNATE HYPOTHESIS, H 1 State the."— Presentation transcript:

1

2 The process for setting up a hypothesis test: State the statistical model State your NULL HYPOTHESIS, H 0 State your ALTERNATE HYPOTHESIS, H 1 State the significance level Test your statistic against the significance level State your conclusion in context e.g. X ~ B(10, 0.2) or X ~ Po(4) e.g. H o : p = 0.2 or H 0 : λ = 4 e.g. H 1 : p > 0.2 or H 1 : λ ≠ 4 e.g. S.L. = 5% (one or two tailed) e.g. P(X > 5) e.g. Whether you accept H 0 or not and what this means in context

3 State your NULL HYPOTHESIS (H 0 ) H 0 : p = 0.25 Michelle said she was telepathic. She constructed a simple experiment to confirm this. She placed four different coloured discs in a bag, selected one, ensuring her friend could not see it, concentrated on the colour and then asked her friend to guess the colour. She repeated the process 20 times and her friend managed to guess correctly 9 times. Michelle felt this result indicated that she was telepathic. Would you agree? Test her claim at the 5% significance level.

4 State your ALTERNATE HYPOTHESIS (H 1 ) H 0 : p = 0.25 H 1 : p > 0.25 Michelle said she was telepathic. She constructed a simple experiment to confirm this. She placed four different coloured discs in a bag, selected one, ensuring her friend could not see it, concentrated on the colour and then asked her friend to guess the colour. She repeated the process 20 times and her friend managed to guess correctly 9 times. Michelle felt this result indicated that she was telepathic. Would you agree? Test her claim at the 5% significance level.

5 State your SIGNIFICANCE LEVEL H 0 : p = 0.25 H 1 : p > 0.25 S.L. : 5% (one tailed)

6 Michelle said she was telepathic. She constructed a simple experiment to confirm this. She placed four different coloured discs in a bag, selected one, ensuring her friend could not see it, concentrated on the colour and then asked her friend to guess the colour. She repeated the process 20 times and her friend managed to guess correctly 9 times. Michelle felt this result indicated that she was telepathic. Would you agree? Test her claim at the 5% significance level. State the statistical model H 0 : p = 0.25 H 1 : p > 0.25 S.L. : 5% (one tailed) X ~ B(20, 0.25)

7 Michelle said she was telepathic. She constructed a simple experiment to confirm this. She placed four different coloured discs in a bag, selected one, ensuring her friend could not see it, concentrated on the colour and then asked her friend to guess the colour. She repeated the process 20 times and her friend managed to guess correctly 9 times. Michelle felt this result indicated that she was telepathic. Would you agree? Test her claim at the 5% significance level. Test your statistic H 0 : p = 0.25 H 1 : p > 0.25 S.L. : 5% (one tailed) X ~ B(20, 0.25) P(X ≥ 9) = 1 – P(X ≤ 8) = 1 – 0.9591 = 0.0409 = 4.09%

8 Michelle said she was telepathic. She constructed a simple experiment to confirm this. She placed four different coloured discs in a bag, selected one, ensuring her friend could not see it, concentrated on the colour and then asked her friend to guess the colour. She repeated the process 20 times and her friend managed to guess correctly 9 times. Michelle felt this result indicated that she was telepathic. Would you agree? Test her claim at the 5% significance level. Make a conclusion in context H 0 : p = 0.25 H 1 : p > 0.25 S.L. : 5% (one tailed) X ~ B(20, 0.25) P(X ≥ 9) = 1 – P(X ≤ 8) = 1 – 0.9591 = 0.0409 = 4.09% 4.09% is below the 5% significance level Reject H 0 and accept H 1, p > 0.25 Evidence to suggest she may be telepathic

9 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. State your NULL HYPOTHESIS (H 0 ) H 0 : λ = 7.5

10 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. State your ALTERNATE HYPOTHESIS (H 1 ) H 0 : λ = 7.5 H 1 : λ < 7.5

11 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. State the significance level H 0 : λ = 7.5 H 1 : λ < 7.5 S.L. : 5% (one tailed)

12 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. State the statistical model H 0 : λ = 7.5 H 1 : λ < 7.5 S.L. : 5% (one tailed) X ~ Po(7.5)

13 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. Test your statistic H 0 : λ = 7.5 H 1 : λ < 7.5 S.L. : 5% (one tailed) X ~ Po(7.5) P(X ≤ 4) = 0.1321 = 13.21%

14 Every year a statistics teacher takes her class out to observe the traffic passing the school gates during a Tuesday lunch hour. Over the years she has established that the average number of lorries passing the gates in a lunch hour is 7.5. During the course of the last 12 months, a new bypass has been built and the number of lorries passing the school gates in this year’s experiment was 4. Test, at the 5% level, whether or not the mean number of lorries passing the school gates during a Tuesday lunch hour has reduced. Make a conclusion H 0 : λ = 7.5 H 1 : λ < 7.5 S.L. : 5% (one tailed) X ~ Po(7.5) P(X ≤ 4) = 0.1321 = 13.21% 13.21% is above the 5% significance level Insufficient evidence to reject H 0 Mean number of lorries hasn’t reduced

15 In a sack containing a large number of beads ¼ are coloured gold and the remainder are of different colours. A group of children use some of the beads in a craft lesson and do not replace them. Afterwards the teacher wishes to know whether or not the proportion of gold beads left in the sack has changed. He selects a random sample of 20 beads and finds that 2 of them are coloured gold. Stating your hypotheses clearly test, at the 10% level of significance, whether or not there is evidence that the proportion of gold beads has changed. X ~ B(20, 0.25) S.L. : 5% each side H 0 : p = 0.25 H 1 : p ≠ 0.25 5 5% 5% 2 P(X ≤ 2) = 0.0913 = 9.13% 9.13% is above the 5% significance level Insufficient evidence to reject H 0 Proportion of gold beads hasn’t changed Two tailed test

16 In a sack containing a large number of beads ¼ are coloured gold and the remainder are of different colours. A group of children use some of the beads in a craft lesson and do not replace them. Afterwards the teacher wishes to know whether or not the proportion of gold beads left in the sack has changed. He selects a random sample of 20 beads and finds that 2 of them are coloured gold. Stating your hypotheses clearly test, at the 10% level of significance, whether or not there is evidence that the proportion of gold beads has changed. X ~ B(20, 0.25) S.L. : 5% each side H 0 : p = 0.25 H 1 : p ≠ 0.25 5 5% 5% CRITICAL REGION The region where H 0 would be rejected

17 X ~ B(20, 0.25) S.L. : 5% each side H 0 : p = 0.25 H 1 : p ≠ 0.25 5 5% 5% a b P(X ≤ a) = 0.05 P(X ≤ 1) = 0.0243 P(X ≤ 2) = 0.0913 P(X ≥ b) = 0.05 P(X ≤ b-1) = 0.95 P(X ≤ 7) = 0.8982 P(X ≤ 8) = 0.9591 CriticalRegion X ≤ 1 and X ≥ 9 ACTUAL significance level 0.0243 + (1 – 0.9591) = 0.0652 or 6.52%

18 Past records show that 20% of customers who buy crisps from a large supermarket buy them in single packets. During a particular day a random sample of 25 customers who had bought crisps was taken and 2 of them had bought them in single packets. (a) Use these data to test, at the 5% level of significance, whether or not the percentage of customers who bought crisps in single packets that day was lower than usual. State your hypotheses clearly. At the same supermarket, the manager thinks that the probability of a customer buying a bumper pack of crisps is 0.03. To test whether or not this hypothesis is true the manager decides to take a random sample of 300 customers. (b) Stating your hypotheses clearly, find the critical region to enable the manager to test whether or not there is evidence that the probability is different from 0.03. The significance level should be 5%. (c) Write down the significance level of this test.

19 Past records show that 20% of customers who buy crisps from a large supermarket buy them in single packets. During a particular day a random sample of 25 customers who had bought crisps was taken and 2 of them had bought them in single packets. (a) Use these data to test, at the 5% level of significance, whether or not the percentage of customers who bought crisps in single packets that day was lower than usual. State your hypotheses clearly. S.L. : 5% (one tailed) X ~ B(25, 0.2) H 0 : p = 0.2 H 1 : p < 0.2 P(X ≤ 2) = 0.0982 = 9.82% 9.82% is above the 5% significance level Insufficient evidence to reject H 0 % of people who bought single packets of crisps has not dropped

20 At the same supermarket, the manager thinks that the probability of a customer buying a bumper pack of crisps is 0.03. To test whether or not this hypothesis is true the manager decides to take a random sample of 300 customers. (b)Stating your hypotheses clearly, find the critical region to enable the manager to test whether or not there is evidence that the probability is different from 0.03. The significance level should be 5%. X ~ B(300, 0.03) np = 9 Y ~ Po(9) S.L. = 2.5% each side H 0 : λ = 9 H 1 : λ ≠ 9 9 2.5% 2.5% a b P(Y ≤ a) = 0.025 P(Y ≥ b) = 0.025 P(Y ≤ 3) = 0.0212 P(Y ≤ 4) = 0.0550 P(Y ≤ b-1) = 0.975 P(Y ≤ 14) = 0.9585 P(Y ≤ 15) = 0.9780 Critical Region Y ≤ 3 and Y ≥ 16

21 (c) Write down the significance level of this test. 9 2.5% 2.5% a b P(Y ≤ a) = 0.025 P(Y ≥ b) = 0.025 P(Y ≤ 3) = 0.0212 P(Y ≤ 4) = 0.0550 P(Y ≤ b-1) = 0.975 P(Y ≤ 14) = 0.9585 P(Y ≤ 15) = 0.9780 Critical Region X ≤ 3 and X ≥ 16 SIGNIFICANCE LEVEL = 0.0212 + (1 – 0.9780) = 0.0432 = 4.32%

22 A standard treatment for a drug has a probability of success of 0.3. A doctor has done some research and has modified the drug and tested it on 20 patients. He wants to see whether the modified drug has changed the success rate. (a) Find the critical region where the significance level needs to be as close to 5% as possible. (b) What is the significance level? (c) 9 patients had success with the modified drug. At the 5% level of significance, does this give evidence that the drug has improved the success rate? (d) On a larger trial using 500 patients, 162 patients had success with the modified drug. Test at the 2.5% significance level as to whether there evidence to suggest the drug has improved the success rate?

23 A standard treatment for a drug has a probability of success of 0.3. A doctor has done some research and has modified the drug and tested it on 20 patients. He wants to see whether the modified drug has changed the success rate. (a) Find the critical region where the significance level needs to be as close to 5% as possible. X ~ B(20, 0.3) H 0 : p = 0.3 H 1 : p ≠ 0.3 S.L.: 2.5% each side P(X ≤ a) = 0.025 P(X ≤ 2) = 0.0355 P(X ≤ b-1) = 0.975 P(X ≤ 10) = 0.9829 Critical Region: X ≤ 2 and X ≥ 11 (b) What is the significance level? Significance Level = 0.0355 + (1 – 0.9829) = 0.0526 = 5.26%

24 (c) 9 patients had success with the modified drug. At the 5% level of significance, does this give evidence that the drug has improved the success rate? Critical Region: X ≤ 2 and X ≥ 11 9 is OUTSIDE the critical region Insufficient evidence to reject H 0 Drug has not improved success rate (d) On a larger trial using 500 patients, 162 patients had success with the modified drug. Test at the 2.5% significance level as to whether there evidence to suggest the drug has improved the success rate? X ~ B(500, 0.3) np = 150 Y ~ N(150, 105) S.L. = 2.5% one tailed np(1 – p) = 105 P(X ≥ 162) ≈ P(Y > 161.5) 13.14% is greater than 2.5%, insufficient evidence to reject H 0. The drug has not improved the success rate H 0 : p = 0.3 H 1 : p > 0.3


Download ppt "The process for setting up a hypothesis test: State the statistical model State your NULL HYPOTHESIS, H 0 State your ALTERNATE HYPOTHESIS, H 1 State the."

Similar presentations


Ads by Google