SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Hypothesis Testing
 Testing a Claim: Companies often make claims about
products. For example, a frozen yogurt company may
claim that its product has no more than 90 calories per
cup. This claim is about a parameter – i.e., the population
mean number of calories per cup (μ).
 The claim is tested is by taking a sample - say, 100 cups -
and determining the sample mean. If the sample mean is
90 calories or less we have no evidence that the company
has lied. Even if the sample mean is greater than 90
calories, it is possible the company is still telling the truth
(sampling error). However, at some point – perhaps, say, a
sample average of 500 calories per cup – it will be clear
that the company has not been completely truthful about
its product.
Hypothesis Testing 2
 A hypothesis is made about the value of a parameter, but
the only facts available to estimate the true parameter are
those provided by the sample. If the statistic differs (and
of course it will) from the hypothesis stated about the
parameter, a decision must be made as to whether or not
this difference is significant. If it is, the hypothesis is
rejected. If not, it cannot be rejected.
 H0: The null hypothesis. This contains the hypothesized
parameter value which will be compared with the sample
value.
 H1: The alternative hypothesis. This will be “accepted”
only if H0 is rejected.
Technically speaking, we never accept H0 What we actually say is that we
do not have the evidence to reject it.
Hypothesis Testing 3
 Two types of errors may occur: α (alpha) and β
(beta). The α error is often referred to as a Type I
error and β error as a Type II error.
◦ You are guilty of an alpha error if you reject H0 when it
really is true.
◦ You commit a beta error if you “accept” H0 when it is false.
Hypothesis Testing 4
 This alpha error is related to the (1- α) we just
learned about when constructing confidence
intervals. We will soon see that an  error of .05 in
testing a hypothesis (two-tail test) is equivalent to
a confidence of 95% in constructing a two-sided
interval estimator.
Hypothesis Testing 5
-Z/2 Z/2
/2 /2
TRADEOFF!
 There is a tradeoff between the alpha and beta errors. We
cannot simply reduce both types of error. As one goes down,
the other rises.
 As we lower the  error, the β error goes up: reducing the
error of rejecting H0 (the error of rejection) increases the error
of “Accepting” H0 when it is false (the error of acceptance).
 This is similar (in fact exactly the same) to the problem we
had earlier with confidence intervals. Ideally, we would love a
very narrow interval, with a lot of confidence. But, practically,
we can never have both: there is a tradeoff.
Hypothesis Testing 6
 Our legal system understands this tradeoff very well.
◦ If we make it extremely difficult to convict criminals
because we do not want to incarcerate any innocent people
we will probably have a legal system in which no one gets
convicted.
◦ On the other hand, if we make it very easy to convict, then
we will have a legal system in which many innocent people
end up behind bars.
◦ This is why our legal system does not require a guilty
verdict to be “beyond a shadow of a doubt” (i.e., complete
certainty) but “beyond reasonable doubt.” (95
Hypothesis Testing 7
 Quality Control.
◦ A company purchases chips for its smart phones, in
batches of 50,000. The company is willing to live with a
few defects per 50,000 chips. How many defects?
◦ If the firm randomly samples 100 chips from each batch of
50,000 and rejects the entire shipment if there are ANY
defects, it may end up rejecting too many shipments (error
of rejection). If the firm is too liberal in what it accepts and
assumes everything is “sampling error,” it is likely to make
the error of acceptance.
◦ This is why government and industry generally work with
an alpha error of .05
Hypothesis Testing 8
1. Formulate H0 and H1. H0 is the null hypothesis, a hypothesis about the value
of a parameter, and H1 is an alternative hypothesis.
◦ e.g., H0: µ=12.7 years; H1: µ≠12.7 years
2. Specify the level of significance (α) to be used. This level of significance tells
you the probability of rejecting H0 when it is, in fact, true. (Normally,
significance level of 0.05 or 0.01 are used)
3. Select the test statistic: e.g., Z, t, F, etc. So far, we have been using the Z
distribution. We will be learning about the t-distribution (used for small
samples) later on.
4. Establish the critical value or values of the test statistic needed to reject H0.
DRAW A PICTURE!
5. Determine the actual value (computed value) of the test statistic.
6. Make a decision: Reject H0 or Do Not Reject H0.
Hypothesis Testing 9
 When we Formulate H0 and H1, we have to decide
whether to use a one-tail or two-tail test.
 With a “two-tail” hypothesis test, α is split into two
and put in both tails. H1 then includes two
possibilities: μ = # OR μ ≠ #. This is why the
region of rejection is divided into two tails. Note
that the region of rejection always corresponds to
H1.
 With a “one-tail” hypothesis test, the α is entirely
in one of the tails.
Hypothesis Testing 10
 For example, if the company claims that a certain product has
exactly 1 mg of aspirin, that would result in a two-tail test.
Note words like “exactly” suggest two tail tests. There are
problems with too much aspirin and too little aspirin in a
drug.
 On the other hand, if a firm claims that a box of its raisin
bran cereal contains at least 100 raisins, a one-tail test has to
be used. If the sample mean is more than 100, everything is
ok. The problems arise only if the sample mean is less than
100. The question will be whether we are looking at
sampling error or perhaps the company is lying and the true
(population) mean is less than 100 raisins.
Hypothesis Testing 11
 A company claims that its soda vending machines deliver exactly 8 ounces of
soda. Clearly, You do not want the vending machines to deliver too much or
too little soda. How would you formulate this?
Answer:
H0: µ = 8 ounces
H1: µ ≠ 8 ounces
If you are testing at α=.01, The .01 is split into two: .005 in the left tail and
.005 in the right tail The critical values are ±2.575
Hypothesis Testing 12
-2.575 2.575
.005 .005
 A company claims that its bolts have a circumference of
exactly 12.50 inches. (If the bolts are too wide or narrow,
they will not fit properly):
Answer:
H0: µ = 12.50 inches
H1: µ ≠ 12.50 inches
 A company claims that a slice of its bread has exactly 2
grams of fiber. Formulate this:
Answer:
H0: µ = 2 grams
H1: µ ≠ 2 grams
Hypothesis Testing 13
 A company claims that its batteries have an average life of at least 500
hours. How would you formulate this?
Answer:
H0: µ ≧ 500 hours
H1: µ < 500 hours
If you are testing at an α = .05, The entire .05 is in the left tail (hint: H1 points
to where the rejection region should be.) The critical value is -1.645.
Hypothesis Testing 14
A company claims that its overpriced, bottled spring water has no more than 1
mcg of benzene (poison). How would you formulate this:
Answer:
H0: µ ≦ 1 mcg. benzene
H1: µ > 1 mcg. benzene
If you are testing at an α = .05, The entire .05 is in the right tail (hint: H1 points
to where the rejection region should be.) The critical value is +1.645.
Hypothesis Testing 15
.05
1.645
A pharmaceutical company claims that each of its pills contains exactly 20.00
milligrams of Cumidin (a blood thinner). You sample 64 pills and find that the
sample mean X̅ =20.50 mg and s = .80 mg. Should the company’s claim be
rejected? Test at α = 0.05.
 Formulate the hypotheses
H0: µ =20.00 mg
H1: µ  20.00 mg
 Choose the test statistic and find the critical values; draw region of rejection
Test statistic: Z
At α = 0.05, the critical values are ±1.96.
 Use the data to get the calculated value of the test statistic
Z = = = 5 [ .80/√.64 = .10 This is the standard error of the mean. ]
 Come to a Conclusion: Reject H0 or Do Not Reject H0
The computed Z value of 5 is deep in the region of rejection.
Thus, Reject H0 at p < .05
Hypothesis Testing 16
 Suppose we took the above data, ignored the hypothesis, and
constructed a 95% confidence interval estimator.
20.50  1.96(.10)
95%, CIE: 20.304 mg  20.696 mg
 We note that 20.00 mg is not in this interval.
 As you can see, hypothesis testing and CIE are virtually the same
exercise; they are merely two sides of the same coin. Both rely on
the sample evidence.
 If a claim is made about a parameter, do a hypothesis test. If no
claim is made and a company wants to use sample evidence to
estimate a parameter (perhaps to determine what claims may be
made in the future about a parameter), construct a confidence
interval estimator.
Hypothesis Testing 17
 A company claims that its LED bulbs will last at least 8,000
hours. You sample 100 bulbs and find that X̅ =7,800 hours
and s=800 hours. Should the company’s claim be rejected?
Test at α = 0.05.
 H0: µ ≧ 8,000 hours
H1: µ < 8,000 hours
 Z = 7,800 – 8,000 / (800/√100) = -200/80 = -2.50
 [800/√100 = 80, the standard error of the mean]
 The computed Z value of -2.50 is in the region of rejection.
Thus, reject H0 at p < .05
◦ Note: When testing a hypothesis, we often have to perform a one-tail test if the claim
requires it. However, we will always use only two-sided confidence interval estimators
when using sample statistics to estimate population parameters.
Hypothesis Testing 18
5%
-1.645
 Practice, practice, practice.
◦ Do lots and lots of problems. You can find these in
the online lecture notes.
Hypothesis Testing 19

Weitere ähnliche Inhalte

Ähnlich wie HypothesisTesting.pptx

Tests of significance
Tests of significanceTests of significance
Tests of significance
Tanay Tandon
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
bmcfad01
 
STA101 presentations.pdf
STA101 presentations.pdfSTA101 presentations.pdf
STA101 presentations.pdf
LabibHossain6
 
Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.ppt
Solomonkiplimo
 
Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013
calculistictt
 
Topic 8 Hypothesis Testing One Sample Test (Z ).pptx
Topic  8  Hypothesis Testing One Sample Test (Z ).pptxTopic  8  Hypothesis Testing One Sample Test (Z ).pptx
Topic 8 Hypothesis Testing One Sample Test (Z ).pptx
CallplanetsDeveloper
 
Lesson05_new
Lesson05_newLesson05_new
Lesson05_new
shengvn
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introduction
Geetika Gulyani
 

Ähnlich wie HypothesisTesting.pptx (20)

1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Hypothesis Testing with ease
Hypothesis Testing with easeHypothesis Testing with ease
Hypothesis Testing with ease
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
12주차
12주차12주차
12주차
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
STA101 presentations.pdf
STA101 presentations.pdfSTA101 presentations.pdf
STA101 presentations.pdf
 
Chapter11 (1)
Chapter11 (1)Chapter11 (1)
Chapter11 (1)
 
Statistical Inference /Hypothesis Testing
Statistical Inference /Hypothesis Testing Statistical Inference /Hypothesis Testing
Statistical Inference /Hypothesis Testing
 
Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.ppt
 
Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013Chapter 20 and 21 combined testing hypotheses about proportions 2013
Chapter 20 and 21 combined testing hypotheses about proportions 2013
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Topic 8 Hypothesis Testing One Sample Test (Z ).pptx
Topic  8  Hypothesis Testing One Sample Test (Z ).pptxTopic  8  Hypothesis Testing One Sample Test (Z ).pptx
Topic 8 Hypothesis Testing One Sample Test (Z ).pptx
 
Lesson05_new
Lesson05_newLesson05_new
Lesson05_new
 
Math3010 week 4
Math3010 week 4Math3010 week 4
Math3010 week 4
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introduction
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsis
 
Hypothesis
HypothesisHypothesis
Hypothesis
 

Kürzlich hochgeladen

Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
mahaiklolahd
 
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Sheetaleventcompany
 
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
Sheetaleventcompany
 
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
Sheetaleventcompany
 
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetsurat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh
 
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call GirlsPunjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetKottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Sheetaleventcompany
 
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
Sheetaleventcompany
 
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
Sheetaleventcompany
 

Kürzlich hochgeladen (20)

Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
 
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
 
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
(Deeksha) 💓 9920725232 💓High Profile Call Girls Navi Mumbai You Can Get The S...
 
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlKolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
 
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
Indore Call Girl Service 📞9235973566📞Just Call Inaaya📲 Call Girls In Indore N...
 
❤️Ludhiana Call Girls ☎️98157-77685☎️ Call Girl service in Ludhiana☎️Ludhiana...
❤️Ludhiana Call Girls ☎️98157-77685☎️ Call Girl service in Ludhiana☎️Ludhiana...❤️Ludhiana Call Girls ☎️98157-77685☎️ Call Girl service in Ludhiana☎️Ludhiana...
❤️Ludhiana Call Girls ☎️98157-77685☎️ Call Girl service in Ludhiana☎️Ludhiana...
 
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
Call Girls In Indore 📞9235973566📞Just Call Inaaya📲 Call Girls Service In Indo...
 
Independent Call Girls Service Chandigarh Sector 17 | 8868886958 | Call Girl ...
Independent Call Girls Service Chandigarh Sector 17 | 8868886958 | Call Girl ...Independent Call Girls Service Chandigarh Sector 17 | 8868886958 | Call Girl ...
Independent Call Girls Service Chandigarh Sector 17 | 8868886958 | Call Girl ...
 
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetsurat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
surat Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort ServiceSexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
 
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real MeetVip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
 
Gorgeous Call Girls Mohali {7435815124} ❤️VVIP ANGEL Call Girls in Mohali Punjab
Gorgeous Call Girls Mohali {7435815124} ❤️VVIP ANGEL Call Girls in Mohali PunjabGorgeous Call Girls Mohali {7435815124} ❤️VVIP ANGEL Call Girls in Mohali Punjab
Gorgeous Call Girls Mohali {7435815124} ❤️VVIP ANGEL Call Girls in Mohali Punjab
 
💞 Safe And Secure Call Girls Coimbatore 🧿 9332606886 🧿 High Class Call Girl S...
💞 Safe And Secure Call Girls Coimbatore 🧿 9332606886 🧿 High Class Call Girl S...💞 Safe And Secure Call Girls Coimbatore 🧿 9332606886 🧿 High Class Call Girl S...
💞 Safe And Secure Call Girls Coimbatore 🧿 9332606886 🧿 High Class Call Girl S...
 
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call GirlsPunjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
 
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetKottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Kottayam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
Premium Call Girls Bangalore {7304373326} ❤️VVIP POOJA Call Girls in Bangalor...
 
Budhwar Peth ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Budhwar Peth ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Budhwar Peth ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Budhwar Peth ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
👉Bangalore Call Girl Service👉📞 7304373326 👉📞 Just📲 Call Rajveer Call Girls Se...
 
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
 
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
Call Girls Service Chandigarh Sexy Video ❤️🍑 8511114078 👄🫦 Independent Escort...
 

HypothesisTesting.pptx

  • 2.  Testing a Claim: Companies often make claims about products. For example, a frozen yogurt company may claim that its product has no more than 90 calories per cup. This claim is about a parameter – i.e., the population mean number of calories per cup (μ).  The claim is tested is by taking a sample - say, 100 cups - and determining the sample mean. If the sample mean is 90 calories or less we have no evidence that the company has lied. Even if the sample mean is greater than 90 calories, it is possible the company is still telling the truth (sampling error). However, at some point – perhaps, say, a sample average of 500 calories per cup – it will be clear that the company has not been completely truthful about its product. Hypothesis Testing 2
  • 3.  A hypothesis is made about the value of a parameter, but the only facts available to estimate the true parameter are those provided by the sample. If the statistic differs (and of course it will) from the hypothesis stated about the parameter, a decision must be made as to whether or not this difference is significant. If it is, the hypothesis is rejected. If not, it cannot be rejected.  H0: The null hypothesis. This contains the hypothesized parameter value which will be compared with the sample value.  H1: The alternative hypothesis. This will be “accepted” only if H0 is rejected. Technically speaking, we never accept H0 What we actually say is that we do not have the evidence to reject it. Hypothesis Testing 3
  • 4.  Two types of errors may occur: α (alpha) and β (beta). The α error is often referred to as a Type I error and β error as a Type II error. ◦ You are guilty of an alpha error if you reject H0 when it really is true. ◦ You commit a beta error if you “accept” H0 when it is false. Hypothesis Testing 4
  • 5.  This alpha error is related to the (1- α) we just learned about when constructing confidence intervals. We will soon see that an  error of .05 in testing a hypothesis (two-tail test) is equivalent to a confidence of 95% in constructing a two-sided interval estimator. Hypothesis Testing 5 -Z/2 Z/2 /2 /2
  • 6. TRADEOFF!  There is a tradeoff between the alpha and beta errors. We cannot simply reduce both types of error. As one goes down, the other rises.  As we lower the  error, the β error goes up: reducing the error of rejecting H0 (the error of rejection) increases the error of “Accepting” H0 when it is false (the error of acceptance).  This is similar (in fact exactly the same) to the problem we had earlier with confidence intervals. Ideally, we would love a very narrow interval, with a lot of confidence. But, practically, we can never have both: there is a tradeoff. Hypothesis Testing 6
  • 7.  Our legal system understands this tradeoff very well. ◦ If we make it extremely difficult to convict criminals because we do not want to incarcerate any innocent people we will probably have a legal system in which no one gets convicted. ◦ On the other hand, if we make it very easy to convict, then we will have a legal system in which many innocent people end up behind bars. ◦ This is why our legal system does not require a guilty verdict to be “beyond a shadow of a doubt” (i.e., complete certainty) but “beyond reasonable doubt.” (95 Hypothesis Testing 7
  • 8.  Quality Control. ◦ A company purchases chips for its smart phones, in batches of 50,000. The company is willing to live with a few defects per 50,000 chips. How many defects? ◦ If the firm randomly samples 100 chips from each batch of 50,000 and rejects the entire shipment if there are ANY defects, it may end up rejecting too many shipments (error of rejection). If the firm is too liberal in what it accepts and assumes everything is “sampling error,” it is likely to make the error of acceptance. ◦ This is why government and industry generally work with an alpha error of .05 Hypothesis Testing 8
  • 9. 1. Formulate H0 and H1. H0 is the null hypothesis, a hypothesis about the value of a parameter, and H1 is an alternative hypothesis. ◦ e.g., H0: µ=12.7 years; H1: µ≠12.7 years 2. Specify the level of significance (α) to be used. This level of significance tells you the probability of rejecting H0 when it is, in fact, true. (Normally, significance level of 0.05 or 0.01 are used) 3. Select the test statistic: e.g., Z, t, F, etc. So far, we have been using the Z distribution. We will be learning about the t-distribution (used for small samples) later on. 4. Establish the critical value or values of the test statistic needed to reject H0. DRAW A PICTURE! 5. Determine the actual value (computed value) of the test statistic. 6. Make a decision: Reject H0 or Do Not Reject H0. Hypothesis Testing 9
  • 10.  When we Formulate H0 and H1, we have to decide whether to use a one-tail or two-tail test.  With a “two-tail” hypothesis test, α is split into two and put in both tails. H1 then includes two possibilities: μ = # OR μ ≠ #. This is why the region of rejection is divided into two tails. Note that the region of rejection always corresponds to H1.  With a “one-tail” hypothesis test, the α is entirely in one of the tails. Hypothesis Testing 10
  • 11.  For example, if the company claims that a certain product has exactly 1 mg of aspirin, that would result in a two-tail test. Note words like “exactly” suggest two tail tests. There are problems with too much aspirin and too little aspirin in a drug.  On the other hand, if a firm claims that a box of its raisin bran cereal contains at least 100 raisins, a one-tail test has to be used. If the sample mean is more than 100, everything is ok. The problems arise only if the sample mean is less than 100. The question will be whether we are looking at sampling error or perhaps the company is lying and the true (population) mean is less than 100 raisins. Hypothesis Testing 11
  • 12.  A company claims that its soda vending machines deliver exactly 8 ounces of soda. Clearly, You do not want the vending machines to deliver too much or too little soda. How would you formulate this? Answer: H0: µ = 8 ounces H1: µ ≠ 8 ounces If you are testing at α=.01, The .01 is split into two: .005 in the left tail and .005 in the right tail The critical values are ±2.575 Hypothesis Testing 12 -2.575 2.575 .005 .005
  • 13.  A company claims that its bolts have a circumference of exactly 12.50 inches. (If the bolts are too wide or narrow, they will not fit properly): Answer: H0: µ = 12.50 inches H1: µ ≠ 12.50 inches  A company claims that a slice of its bread has exactly 2 grams of fiber. Formulate this: Answer: H0: µ = 2 grams H1: µ ≠ 2 grams Hypothesis Testing 13
  • 14.  A company claims that its batteries have an average life of at least 500 hours. How would you formulate this? Answer: H0: µ ≧ 500 hours H1: µ < 500 hours If you are testing at an α = .05, The entire .05 is in the left tail (hint: H1 points to where the rejection region should be.) The critical value is -1.645. Hypothesis Testing 14
  • 15. A company claims that its overpriced, bottled spring water has no more than 1 mcg of benzene (poison). How would you formulate this: Answer: H0: µ ≦ 1 mcg. benzene H1: µ > 1 mcg. benzene If you are testing at an α = .05, The entire .05 is in the right tail (hint: H1 points to where the rejection region should be.) The critical value is +1.645. Hypothesis Testing 15 .05 1.645
  • 16. A pharmaceutical company claims that each of its pills contains exactly 20.00 milligrams of Cumidin (a blood thinner). You sample 64 pills and find that the sample mean X̅ =20.50 mg and s = .80 mg. Should the company’s claim be rejected? Test at α = 0.05.  Formulate the hypotheses H0: µ =20.00 mg H1: µ  20.00 mg  Choose the test statistic and find the critical values; draw region of rejection Test statistic: Z At α = 0.05, the critical values are ±1.96.  Use the data to get the calculated value of the test statistic Z = = = 5 [ .80/√.64 = .10 This is the standard error of the mean. ]  Come to a Conclusion: Reject H0 or Do Not Reject H0 The computed Z value of 5 is deep in the region of rejection. Thus, Reject H0 at p < .05 Hypothesis Testing 16
  • 17.  Suppose we took the above data, ignored the hypothesis, and constructed a 95% confidence interval estimator. 20.50  1.96(.10) 95%, CIE: 20.304 mg  20.696 mg  We note that 20.00 mg is not in this interval.  As you can see, hypothesis testing and CIE are virtually the same exercise; they are merely two sides of the same coin. Both rely on the sample evidence.  If a claim is made about a parameter, do a hypothesis test. If no claim is made and a company wants to use sample evidence to estimate a parameter (perhaps to determine what claims may be made in the future about a parameter), construct a confidence interval estimator. Hypothesis Testing 17
  • 18.  A company claims that its LED bulbs will last at least 8,000 hours. You sample 100 bulbs and find that X̅ =7,800 hours and s=800 hours. Should the company’s claim be rejected? Test at α = 0.05.  H0: µ ≧ 8,000 hours H1: µ < 8,000 hours  Z = 7,800 – 8,000 / (800/√100) = -200/80 = -2.50  [800/√100 = 80, the standard error of the mean]  The computed Z value of -2.50 is in the region of rejection. Thus, reject H0 at p < .05 ◦ Note: When testing a hypothesis, we often have to perform a one-tail test if the claim requires it. However, we will always use only two-sided confidence interval estimators when using sample statistics to estimate population parameters. Hypothesis Testing 18 5% -1.645
  • 19.  Practice, practice, practice. ◦ Do lots and lots of problems. You can find these in the online lecture notes. Hypothesis Testing 19

Hinweis der Redaktion

  1. incarcerateDictionary result for incarcerate /ɪnˈkɑːsəreɪt imprison, put in prison, send to prison, jail, lock up, take into custody, put under lock and key, put away, intern, confine, detain, hold, put into detention, immure, put in chains, clap in irons, hold prisoner, hold captive; Mo
  2. COUMADIN (warfarin sodium) tablets and COUMADIN