Upcoming SlideShare
×

# Hypothesis testing

3,161 views

Published on

Published in: Education
1 Comment
5 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• (c)Mrs. Ma. Cristina C. Pegollo

Are you sure you want to  Yes  No
Views
Total views
3,161
On SlideShare
0
From Embeds
0
Number of Embeds
478
Actions
Shares
0
162
1
Likes
5
Embeds 0
No embeds

No notes for slide

### Hypothesis testing

1. 1. Hypothesis Testing The Basics Advanced Statistics SRSTHS Mrs. Ma. Cristina C. Pegollo
2. 2. What is Hypothesis? in statistics, is a claim or statement about a property of a population an educated guess about the population parameter
3. 3. What is hypothesis testing? This is the process of makingan inference or generalization onpopulation parameters based onthe results of the study onsamples.
4. 4. What is statistical hypothesis? It is a guess or predictionmade by the researcherregarding the possible outcomeof the study.
5. 5. Fundamentals ofHypothesis Testing
6. 6. Central Limit Theorem If n (the sample size) is large, thetheoretical sampling distribution ofthe mean can be approximatedclosely with a normal distribution.If researchers increase the samples to a considerablenumber, the shape of the distribution approximates a normal curve.
7. 7. Central Limit TheoremThe Expected Distribution of Sample Means Assuming that  = 98.6 Likely sample means µx = 98.6
8. 8. Figure 7-1 Central Limit Theorem The Expected Distribution of Sample Means Assuming that  = 98.6 Likely sample means µx = 98.6 z = - 1.96 z= 1.96 or or x = 98.48 x = 98.72
9. 9. Components of aFormal HypothesisTest
10. 10. Null Hypothesis: H0 This is the statement that is under investigation or being tested. It is always hoped to be rejected. Usually the null hypothesis represents a statement of “no effect”, “no difference”, or , put another way, “things haven’t changed.” Must contain condition of equality =, , or  Reject H0 or fail to reject H0
11. 11. Alternative Hypothesis: H1 This is the statement you will adopt in the situation in which the evidence (data) is so strong that you reject H0  „opposite‟ of H0  , <, >  generally represents the idea which the researcher wants to prove.
12. 12. Example1: Null and Alternate Hypothesis
13. 13. Example 2
14. 14. Example 3
15. 15. Example 4
16. 16. Example 5
17. 17. Example 6
18. 18. Note about Forming Your Own Claims(Hypotheses) If you are conducting a study and want to use a hypothesis test to support your claim, the claim must be worded so that it becomes the alternative hypothesis.
19. 19. Note about Testing the Validity ofSomeone Else’s Claim Someone else’s claim may become the null hypothesis (because it contains equality), and it sometimes becomes the alternative hypothesis (because it does not contain equality).
20. 20. Exercises:Formulate the null and alternative hypotheses of thefollowing research problems1. A manager wants to know if the average length of time for board meetings is 3 hours.2. The researchers want to know if the proportion of car accidents in Balete Drive has increased from 5% of the total car accidents recorded in Quezon City in a day.3. A teacher wants to know if there is a significant difference in the academic performance between Pasteur and Linnaeus students.4. The registrar wants to know if the average encoding time is lower than 30 minutes.5. The Discipline officer wants to know if the new policy on smoking has reduced the number of smokers this year than the previous year.
21. 21. Test Statistica value computed from the sample data that is used in making the decision about the rejection of the null hypothesis
22. 22. Test Statistica value computed from the sample data that is used in making the decision about the rejection of the null hypothesis For large samples, testing claims about population means x - µx z=  n
23. 23. Critical RegionSet of all values of the test statistic that would cause a rejection of the null hypothesis
24. 24. Critical RegionSet of all values of the test statistic that would cause a rejection of the null hypothesis Critical Region
25. 25. Critical RegionSet of all values of the test statistic that would cause a rejection of the null hypothesis Critical Region
26. 26. Critical RegionSet of all values of the test statistic that would cause a rejection of the null hypothesis Critical Regions
27. 27. Significance Level denoted by  the probability that thetest statistic will fall in thecritical region when the nullhypothesis is actually true.common choices are0.05, 0.01, and 0.10
28. 28. Critical ValueValue or values that separate the critical region (where we reject the null hypothesis) from the values of the test statistics that do not lead to a rejection of the null hypothesis
29. 29. Critical ValueValue or values that separate the critical region (where we reject the null hypothesis) from the values of the test statistics that do not lead to a rejection of the null hypothesis Critical Value ( z score )
30. 30. Critical ValueValue or values that separate the critical region (where we reject the null hypothesis) from the values of the test statistics that do not lead to a rejection of the null hypothesis Reject H0 Fail to reject H0 Critical Value ( z score )
31. 31. Two-tailed,Right-tailed,Left-tailed Tests The tails in a distribution are the extreme regions bounded by critical values.
32. 32. Two-tailed Test H0: µ = 100 H1: µ  100
33. 33. Two-tailed Test H0: µ = 100  is divided equally between H1: µ  100 the two tails of the critical region
34. 34. Two-tailed Test H0: µ = 100  is divided equally between H1: µ  100 the two tails of the critical regionMeans less than or greater than
35. 35. Two-tailed Test H0: µ = 100  is divided equally between H1: µ  100 the two tails of the critical regionMeans less than or greater than Reject H0 Fail to reject H0 Reject H0 100 Values that differ significantly from 100
36. 36. Right-tailed Test H0: µ  100 H1: µ > 100
37. 37. Right-tailed Test H0: µ  100 H1: µ > 100 Points Right
38. 38. Right-tailed Test H0: µ  100 H1: µ > 100 Points Right Fail to reject H0 Reject H0 Values that differ significantly 100 from 100
39. 39. Left-tailed Test H0: µ  100 H1: µ < 100
40. 40. Left-tailed Test H0: µ  100 H1: µ < 100Points Left
41. 41. Left-tailed Test H0: µ  100 H1: µ < 100Points Left Reject H0 Fail to reject H0 Values thatdiffer significantly 100 from 100
42. 42. Conclusions in Hypothesis Testing always test the null hypothesis 1. Reject the H0 2. Fail to reject the H0 need to formulate correct wording of final conclusion See Figure 7-4
43. 43. FIGURE 7-4 Wording of Final Conclusion Start Does the “There is sufficient (This is the original claim contain Yes Do Yes you reject evidence to warrant only case in the condition of (Original claim H0?. (Reject H0) rejection of the claim which the equality that. . . (original claim).” original claim contains equality and becomes H0) No is rejected). (Fail to “There is not sufficient No reject H0) evidence to warrant (Original claim rejection of the claim does not contain that. . . (original claim).” equality and becomes H1) (This is the Do Yes “The sample data only case in you reject supports the claim that which the H0? (Reject H0) . . . (original claim).” original claim No is supported). (Fail to reject H0) “There is not sufficient evidence to support the claim that. . . (original claim).”
44. 44. Accept versus Fail to Reject some texts use “accept the null hypothesis we are not proving the null hypothesis sample evidence is not strong enough to warrant rejection (such as not enough evidence to convict a suspect) If you reject Ho, iit means it is wrong! Ifyou fail to reject Ho , it doesn’t mean it is correct – you simply do not have enough evidence to reject it!
45. 45. Type I Error The mistake of rejecting the null hypothesis when it is true.(alpha) is used to represent the probability of a type I error Example:Rejecting a claim that the mean body temperature is 98.6 degrees when the mean really does equal 98.6
46. 46. Type II Error the mistake of failing to reject the null hypothesis when it is false.ß (beta) is used to represent the probability of a type II error Example: Failing to reject the claim that the mean body temperature is 98.6 degrees when the mean is really different from 98.6
47. 47. Table 7-2 Type I and Type II Errors True State of Nature The null The null hypothesis is hypothesis is true false Type I error We decide to Correct (rejecting a true reject the decision null hypothesis) null hypothesis  Decision Type II error We fail to Correct (rejecting a false reject the decision null hypothesis) null hypothesis 
48. 48. Controlling Type I and Type II Errors Forany fixed , an increase in the sample size n will cause a decrease in  For any fixed sample size n , a decrease in  will cause an increase in . Conversely, an increase in  will cause a decrease in  . Todecrease both  and , increase the sample size.
49. 49. Approaches in Hypothesis Testing 1. Critical Value Approach 2. P-value Approach
50. 50. 5-step solution
51. 51. Example:The average score in the final examinationin College Algebra at ABC University isknown to be 80 with a standard deviationof 10. A random sample of 39 students wastaken from this year’s batch and it wasfound that they have a mean score of 84.Test at 0.05 level of significance.