Title: Assignment
1Assignment
- After this lecture, start Assignment 4.
- Its in the course binder.
2Compared to what?
- Lecture 10
- Hypothesis test for a mean
3Overview
- What is a hypothesis?
- How do you compare a hypothesis to your data
- using confidence intervals
- using sampling distributions
41.
5What is a hypothesis?
- Hypothesis Claim about a parameter
- Today claim about the population mean mY.
- E.g., the average starting salary of all
sociology BAs - Two alternatives
- null hypothesis (H0)
- a neutral claim
- research hypothesis (H1)
- one-tailed or two-tailed
6Two-tailed hypotheses
- Does journaling affect depression
- Effect has two possible directions
- Journaling works through issues?depression lifts
- Journaling dwells on problems?depression deepens
- Let mY be average change in depression after
journaling. - Null hypothesis journaling does not affect
depression - H0 mY 0
- Research hypothesis journaling affects
depression
7One-tailed hypotheses
- Do smokers have lighter babies?
- Expected effect has one direction
- In general population,
- average birthweight is say 7 pounds
- Let mY be average weight of smokers children.
- Research hypothesis smokers have lighter babies
- H1 mY lt 7
- Null hypothesis smokers have average babies (or
even heavy babies) - H0 mY 7 (or H0 mY gt 7)
- both forms are useful
8One tail or two?
- Key Does the research hypothesis specify
direction? - One tail
- H1 mY lt 7
- H0 mY 7 (or H0 mY gt 7)
- Two tails
92.
10Hypothesis test Definition
- Given evidence from a sample,
- we test (decide whether to reject)
- the null hypothesis
- about the population
11Research question
- Should you finish college?
- Should you delay graduation for part-time work?
- UPS offers 9 an hour plus 3000 a year for books
and tuition - 9/hour X 2000 hours/year 3000 21,000 per
year - Will you do better than that when you graduate?
12Null vs. research hypothesisSymbols
- Let Y be the starting salary for a sociology BA
- mY is the average for the population of sociology
BAs - H1 mY gt 21K
- The average is more than what you could make at
UPS. - one tail or two?
- H0 mY lt 21K
- The average is no more than what you could make
at UPS. - (Note Your book would say H0 mY 21K instead
of mY lt 21K)
13Null vs. research hypothesisPicture
- H0 mY lt 21K
- H1 mY gt 21K
H1
H0
mY
21K
14Sample pertinent data
- National Association of Colleges and Employers
- Sample of N92 Sociology BAs, graduating 2000-01
- Variable starting salary in thousands
- Cases 38.0, 28.0, 28.0, 24.6,
- The sample mean is greater than 21K
- But the hypothesis asks about the population mean
- which is probably different (sampling error)
152a.
- Hypothesis testConfidence interval method
16Confidence interval for the meanReview
- Lecture 8, Example 2
- t confidence interval
- We are 95 sure
- that mY is between 27,369 and 30,299
- Confidence intervals like this
- fail to contain mY
- only 5 of the time.
17Confidence interval and hypotheses
- H0 mY lt 21K
- H1 mY gt 21K
H1
H0
mY
CI
21K
30K
27K
CI mY is in 27,369-30,299
18Rejecting H0
- The confidence interval (CI)
- contains plausible values of mY
- One of these plausible values is right
- in 95 of all samples
- None of the values in H0
- are in the CI
- So we reject H0
- as implausible
19Hypothesis testsConfidence interval method
- Draw, on a number line,
- the hypotheses
- the confidence interval
- If the confidence interval overlaps H0
- then H0 is plausible
- you dont reject H0
- If the confidence interval doesnt overlap H0
- then H0 is implausible
- you reject H0
20Interpretation
- We rejected the idea (H0)
- that new sociology BAs
- make no more, on average, than students at UPS
- We accepted the idea (H1)
- that new sociology BAs
- make more, on average, than students at UPS
212b.
- Hypothesis testSampling distribution method
22Hypothesis testSampling distribution method
- Assuming, provisionally, that H0 is true
- Draw what the sampling distribution would look
like - Where is your sample in this distribution?
- If your sample looks extreme (unusual)
- then the sampling distribution is implausible
- so you reject H0
231. Assume, provisionally, that H0 is true
- Suppose H0 mY 21K is true
- Note in this method, we dont say H0 mY lt 21K
242. Draw the sampling distribution
- If H0 were true, then
- across all possible samples
- of size N92
- would have
- mean
- and standard deviation
- a.k.a. standard error
252. Draw the null sampling distribution
- If H0 were true, then this would be the sampling
distribution - called the null sampling distribution
263. Where would our sample fall in the null
distribution?
- Our sample would look
- extreme
- improbable
274. Conclusion
- When we assumed H0 was true
- our sample looked extreme and improbable
- in the null sampling distribution
- Maybe our sample really is extreme and improbable
- But more likely H0 is false
- We reject H0
28Interpretation (again)
- We rejected the idea (H0)
- that new sociology BAs
- earn, on average,
- no more than students at UPS
- We accepted the idea (H1)
- that new sociology BAs
- earn, on average, more than students at UPS
29The t statistic
- We dont really look at the sampling distribution
of - We look at the sampling distribution of t
- t is the standardized sample mean
- The number of standard errors that separate our
sample mean from the population mean under H0
30The t statistic
- In our sample, N92, Ybar28.834, SY7.095
- If H0 mY 21 were true,
- then Ybar would be
- t estimated standard errors from mY
313. Draw the null sampling distribution (again)
- If H0 is true, then
- across all possible samples
- of size N92
- t follows
- a t distribution
- with dfN-191 degrees of freedom
- This is much like the normal distribution
- So any t score greater than 2 will look extreme
323. Where is our sample in the null distribution?
- Our sample looks
- extreme
- improbable
334-5. Conclusion and interpretation(again)
- When we assumed H0 was true
- our sample looked extreme and improbable
- So we reject H0
- We reject the idea (H0)
- that new sociology BAs earn, on average,
- no more, on average, than students at UPS
- We accept the idea (H1)
- that new sociology BAs
- earn more, on average, than students at UPS
34Extreme? Improbable?
- Under H0, its obvious our sample is
- extreme
- improbable
- But how extreme is extreme?
- How improbable is improbable?
35How improbable?The p value
- If H0 were true
- only one out of 10 quintillion samples
- would have a t statistic of at least 10.59
- which we got
- This is the p value p10-16 (1 in 10
quintillion) - the probability of a sample as extreme as ours
- if H0 is true
- Typically we reject H0
- if plt.05 (or plt.01)
- .05 (or .01) is a conventional significance level
(a)
36Estimating a p value
- How do you know if your p value is lt .05 (or
.01)? - SPSS tells you p (sig.)
- Excel can take t and give you p
- TDIST(t,df,tails)
- e.g., TDIST(10.59,91,1) should give you 10-16
- It doesnt, quite. But its close.
- What if youre not using a computer?
- You can estimate p from the zand t table
37Reading a t table
- Remember!
- We have a one-tailed research hypothesis
- So we read the table for a one-tailed test
- We dont see dfN-191, so we use the closest
value - df100
38Reading a t table
- If t2.36 then p.010
- If t2.63 then p.005
- If t3.39 then p.0005
- Our t10.59
- Since larger ts have smaller ps
- we know plt.0005
- We typically reject H0 when p lt .05 (or .01)
- So we reject H0 here
394-5. Conclusion and interpretation(using p value)
- If H0 were true
- if new sociology BAs had an average salary of
21K - then wed see a sample as rich as this one
- in less than 0.05 of all samples
- I.e., plt.0005
- So we reject H0 in favor of H1
- We think new sociology BAs average higher than
21K
40Summary Hypotheses and hypothesis tests
- Hypothesis claim about a parameter
- research hypothesis vs. null hypothesis(H1 vs.
H0) - research hypothesis can be
- one-tailed
- or two-tailed
- Hypothesis test
- using a sample to evaluate H1 and H0
41Summary Confidence interval method
- On a line representing parameter values (mY)
- Draw the hypotheses (H1 vs. H0)
- Draw the confidence interval (CI)
- If CI overlaps H0
- Dont reject H0 (its plausible)
- Otherwise
- Reject H0 (its implausible)
42Summary Sampling distribution method
- Assume H0 is true
- draw the sampling distribution of t
- Calculate t for the sample
- and draw it
- If t is extreme/improbablei.e., if p is small
- Reject H0 (its implausible)
- Otherwise
- Dont reject H0 (its plausible)
43Next topic
- Hypothesis test for a proportion