Workbook.hypothesis testing
Workbook.hypothesis testing
2. A research study on people who quit smoking wants to show that the
average number of attempts to quit before a smoker is successful is less
than 3.5 attempts. How should they set up their hypothesis statements?
3. A factory creates a small metal cylindrical part that later becomes part
of a car engine. Because of variations in the process of manufacturing, the
diameters are not always identical. The machine was calibrated to create
cylinders with an average diameter of 1/16 of an inch. During a periodic
inspection, it became clear that further investigation was needed to
determine whether or not the machine responsible for making the part
needed recalibration. Write statistical hypothesis statements.
1
clothing line that focused on lime green and polka dots. Which hypothesis
statements do they need to write in order to test their theory?
5. A food company wants to ensure that less than 0.0001 % of its product
is contaminated. Which hypothesis statements will it write if it wants to
test for this?
2
SIGNIFICANCE LEVEL AND TYPE I AND II ERRORS
3
particular amusement park is 12 years old. When they take a sample of his
guests, they find x̄ = 16 years. What kind of error might they be in danger
of making?
6. A coffee shop owner believes that he sells 500 cups of coffee each
day, on average, and he wants to test this assumption. The truth is, he
actually sells fewer than 500 cups each day. He takes a random sample of
10 days and records the number of cups he sells each of those days. What
kind of error is the coffee shop owner in danger of making?
Day 1 2 3 4 5 6 7 8 9 10
Cups sold 488 502 496 506 492 489 510 511 506 500
4
TEST STATISTICS FOR ONE- AND TWO-TAILED TESTS
1. A local high school states that its students perform much better than
average on a state exam. The average score for all high school students in
the state is 106 points. A sample of 256 students at this particular school
had an average test score of 129 points with a sample standard deviation
of 26.8. Choose and calculate the appropriate test statistic.
3. In a recent survey, 567 out of a 768 randomly selected dog owners said
they used a kennel that was run by their veterinary office to board their
dogs while they were away on vacation. The study would like to make a
conclusion that the majority (more than 50 % ) of dog owners use a kennel
run by their veterinary office when the owners go on vacation. Choose and
calculate the appropriate test statistic.
5
4. We want to open a day care center, so we take a random sample of
500 households in our town with children under preschool age, and find
that 243 of them were using a family member to care for those children.
We want to determine if, at a statistically significant level, fewer than half
of households in our town are using a family member to care for the kids.
6
6. A farmer reads a study that states: The average weight of a day-old
chick upon hatching is μ0 = 38.60 grams with a population standard
deviation of σ = 5.7 grams. The farmer wants to see if her day-old chicks
have the same average. She takes a simple random sample of 60 of her
day-old chicks and finds their average weight is x̄ = 39.1 grams.
7
THE P-VALUE AND REJECTING THE NULL
8
4. A paint company produces glow in the dark paint with an advertised
glow time of 15 min. A painter is interested in finding out if the product
behaves worse than advertised. She sets up her hypothesis statements as
H0 : μ ≥ 15 and Ha : μ < 15, then calculates a test statistic of z = − 2.30. What
would be the conclusions of her hypothesis test at significance levels of
α = 0.05, α = 0.01, and α = 0.001?
2. Check that the conditions for performing the statistical test are
met.
9
7. Compare the p-value to the significance level and draw a
conclusion.
10
HYPOTHESIS TESTING FOR THE POPULATION PROPORTION
11
random sample of 40 of his recent hands, and finds the proportion of
winning hands in the sample to be p̂ = 0.45 with σp̂ = 0.00624. What can he
conclude with 90 % confidence?
6. A recent study reported that the 15.3 % of patients who are admitted
to the hospital with a heart attack die within 30 days of admission. The
same study reported that 16.7 % of the 3,153 patients who went to the
hospital with a heart attack died within 30 days of admission when the lead
cardiologist was away.
2. Check that the conditions for performing the statistical test are
met.
12
4. State the type of test: upper-tailed, lower-tailed, or two-tailed.
13
CONFIDENCE INTERVAL FOR THE DIFFERENCE OF MEANS
14
fitness program. After a month, the mean systolic blood pressure in the
group of exercisers was 123 with standard deviation of 4, and the mean
systolic pressure in the group of non-exercisers was 131 with a standard
deviation of 5.5. Calculate the margin of error at 99 % confidence.
15
HYPOTHESIS TESTING FOR THE DIFFERENCE OF MEANS
1. An ice cream shop owner believes his average daily revenue is higher
in August than it is in September. He calculated average daily revenue of
$496 in August and $456 in September, with standard deviations of $14 and
$21.5, respectively. What can he conclude at a 0.05 significance level using
a p-value approach.
3. Test the claim that, in 2006, the mean weight of men in the US was not
significantly different from the mean weight of women. Previous research
showed population standard deviations were 10.25 pounds for men and
8.58 pounds for women. A random sample of 1,500 men has a mean weight
of 193.5 pounds and a random sample of 1,500 women has a mean weight
of 185.3 pounds. Assuming the population variances are unequal, use a p
-value approach to formulate a decision at the 0.05 significance level.
16
4. A research team wants to determine whether men and women drink a
different amount of water each day. They randomly sample 25 men and 25
women and find that the men consumed 1.48 liters of water with a
standard deviation of 0.13 liters, and that the women consumed 1.62 liters
of water with a standard deviation of 0.20 liters. Using a critical value
approach, what can the research team conclude at a 0.10 level of
significance?
5. Given x̄1 = 23.55 and x̄2 = 20.12 with s1 = 2.3, s2 = 2.9, n1 = 10, and n2 = 15,
determine whether the two population means differ significantly. Using a
critical value approach, and assuming population standard deviations are
unequal, what can we conclude at a 0.01 level of significance?
17
MATCHED-PAIR HYPOTHESIS TESTING
1. A golf club manufacturer claims that their new driver delivers 15 yards
of extra driving distance. They record the before and after driving
distances of 10 top professional players.
Player 1 2 3 4 5 6 7 8 9 10
Before x1 303 308 295 305 301 312 287 294 300 301
After x2 307 320 297 315 305 316 299 302 307 315
Difference, d 4 12 2 10 4 4 12 8 7 14
2. A car company believes that the changes they’ve made to their hybrid
engine will increase miles per gallon by 4. They send out one car with the
old engine and one car with the new engine to drive the same route, and
record the miles per gallon of each pair of cars.
Route 1 2 3 4 5 6 7 8 9 10
Old engine 39 39 38 42 44 43 42 47 47 47
New engine 50 49 45 46 46 41 42 43 43 49
Difference, d 11 10 7 4 2 -2 0 -4 -4 2
d2 121 100 49 16 4 4 0 16 16 4
18
Can the car company conclude at a 1 % significance level that the changes
they’ve made to the hybrid engine deliver 4 extra miles per gallon?
Student 1 2 3 4 5 6 7 8 9 10
In silence 14 13 16 21 15 19 11 20 19 16
With music 12 13 15 22 16 19 8 17 18 17
Difference, d -2 0 -1 1 1 0 -3 -3 -1 1
d2 4 0 1 1 1 0 9 9 1 1
4. A clothing store wants to test the claim that customers who join their
VIP program return less merchandise. They track the mean monthly
merchandise returns of 10 customers for one year before and after joining
the VIP program, then record the mean returns per month.
19
Customer 1 2 3 4 5 6 7 8 9 10
Can they conclude at a 5 % significance level that joining the VIP program
reduces the amount of merchandise returns?
20
CONFIDENCE INTERVAL FOR THE DIFFERENCE OF PROPORTIONS
2. A light bulb manufacturer wants to know whether their own bulbs last
longer than a competitor’s bulb. They randomly sampled 150 people who
bought their bulb, and 72 of them reported that it lasted longer than 250
days. They randomly sampled 150 people who bought the competitor’s
bulb, and 69 of them reported that it lasted for more than 250 days. Find a
90 % confidence interval around the difference of proportions.
4. A researcher randomly chose 900 smokers, 450 men and 450 women.
He found that 357 of the male smokers have been diagnosed with coronary
21
artery disease, while 295 of the female smokers have been diagnosed with
coronary artery disease. Construct a 95 % confidence interval to estimate
the difference between the proportions of male and female smokers who
have been diagnosed with coronary artery disease.
22
HYPOTHESIS TESTING FOR THE DIFFERENCE OF PROPORTIONS
H0 : p1 − p2 ≤ 0
Ha : p1 − p2 > 0
H0 : p1 − p2 = 0
Ha : p1 − p2 ≠ 0
23
4. A store owner believes that women spend at least 22 % more in his
store than men. He randomly chooses 64 visitors, 32 men and 32 women,
and finds that 14 men spent more than $100, while 23 women spent more
than $100. Using a p-value approach, what can he conclude at a 90 %
confidence level?
6. John and Steven are two fitness trainers who want to compare their
client satisfaction rate. John chose a random sample of 85 clients and
Steven chose a random sample of 72 clients. John found that 89 % of his
clients were satisfied and Steve found that 91 % of his clients were
satisfied. Using a critical value approach at a 95 % confidence level, is there
a significant difference between proportions?
24
25