Professional Documents
Culture Documents
2
WHEN IS A HYPOTHESIS FORMULATED
3
NULL HYPOTHESIS (H0)
• An implied hypothesis. “Null” meaning “nothing.”
• The null hypothesis is a presumption of status quo
or no change.
• It is equal to some claimed value (e.g. H0 = 0.5; H0
= 0)
4
EXAMPLES:
5
EXAMPLES:
6
EXAMPLES:
a) The proportion of drivers who admit to running red
lights is greater than 0.5.
H0: p = 0.5; Ha: p > 0.5
7
HYPOTHESIS TESTING
USE A TEST STATISTIC TO FIND
THE P-VALUE
P-VALUE: probability that the data would have
occurred by random chance. It is the probability
that the null hypothesis is true
8
STEPS FOR HYPOTHESIS TESTING
Formulate H0 and Ha
10
Confidence interval [CI]: a range of values that one is (99%,
95%, 90%) confident that the true population mean lies within
a range of values
11
Z-test: a statistical test to determine whether two
population means are different when the variances are
known, and the sample size is large (n > 30).
One sample Z-test: tests
whether the sample mean is significantly
different (greater than, less than or equal) to some specific
value when the population's standard deviation is known.
12
One sample Z-test formula:
13
EXAMPLES:
1. Suppose the IQ in a population is normally distributed with a mean of μ =
100 and standard deviation of σ = 15. A scientist wants to know if a new
medication affects IQ levels, so she recruits 20 patients to use it for one month
nd found that the mean IQ level of these patients is 103.05
14
Step 4: Determine the p-value associated with the calculated z-test
Since the p-value (0.36318) is not less than the significance level
(.05), the scientist will fail to reject the null hypothesis.
There is not sufficient evidence to say that the new medication
significantly affects IQ level.
15
Aside from the p-value method, you also
compare the computed z with critical z:
Step 4: Compare computed z with critical z
α Left-tail Right-tail Two-tail
0.10 -1.282 1.282 1.282
0.05 -1.645 1.645 1.645
0.025 -1.960 1.960 1.960
0.010 -2.236 2.236 2.576
0.005 -2.576 2.576
0.001 -3.090 3.090 3.291
0.0001 -3.719 3.719 3.819
Result
Since z = 0.9093 < 1.645 (at α =
0.05, two-tailed test), we fail to
reject the null hypothesis
16
• z = (x – μ) / (σ√n)
• z = (9.57 – 9.5) / (0.4/√180)
• z = 2.33 (p-value = 0.0198)
Using zcrit
Since z = 2.33 > 1.645 (at α = 0.05,
two-tailed test), we reject the null
hypothesis
17
• z = (x – μ) / (σ√n)
• z = (461 – 450) / (100/√500)
• z = 2.46 (p-value = 0.00695)
Using zcrit
Since z = 2.46 > 1.645 (at α = 0.05,
right-tailed test), we reject the null
hypothesis
18
T-test: a statistical test that is used to
compare the means of two groups
One sample t-test: used to test whether or
not the mean of a population is equal to
some value. Sample size n < 30
19
One sample t-test formula:
20
EXAMPLES:
1. Suppose we want to know whether or not the mean weight of a certain
species of turtle is equal to 310 pounds. Sd is 18.5 for a sample of 40 and a
sample mean of 300
21
Step 4: Determine the p-value associate with the calculated t-score
Since the p-value (0.00124) is less than the significance level (.05),
reject the null hypothesis.
There is sufficient evidence to say that the mean weight of this
species of turtle is not equal to 310 pounds.
22
EXAMPLES:
2 . imagine a company wants to test the claim that their batteries last more
than 40 hours. Using a simple random sample of 15 batteries yielded a mean of
44.9 hours, with a standard deviation of 8.9 hours. Test this claim using a
significance level of 0.05.
Since the p-value (0.025) is less than the significance level (.05),
reject the null hypothesis.
There is sufficient evidence to conclude the company’s claim that
their batteries last for more than 40 hours.
23
One sample Z-test One sample t-test
formula: formula:
• z = (x – μ) / (σ√n)
• z = (65,700 – 63,000) / (5,250/√35)
• z = 2700/889
• z = 3.04 (p-value = 0.00118)
• p-value < 0.01, then we reject the null hypothesis. We accept the
claim that college deans earn more than 63,000 a month
25
MORE EXAMPLES:
2. A researcher claims that the monthly consumption of coffee per person is
more than 19 cups. In a sample of 60 randomly selected people, the mean
monthly consumption was 20. The sd of the sample was 4 cups. Find the
p-value of the test. On the basis of the p-value, is the researchers claim valid at
α = 0.01? T-TEST (1-tailed test)
26
MORE EXAMPLES:
3. Powder milk is packed in 1-kg bags. An inspector from DTI suspects that the
bags may not contain exactly 1 kg. A sample of 40 bags produces a mean of
0.96 kg and a sd of 0.12 kg. Is there enough evidence to conclude that the bags
are less than 1 kg as stated at 95% confidence? (One-tailed, T-test)
27
MORE EXAMPLES:
4. The average baptismal cost include 50 guests. A random sample of 32
baptismal during the past year in NCR had a mean of 53 guests and a sd of 10.
Is there sufficient evidence at the 0.05 level of significance that the average
number of guests differ from national average? T-TEST (2-tailed test)
28
MORE EXAMPLES:
5. Suppose you start up a company that has developed a drug that is meant to
increase IQ. You know that the standard deviation of IQ in the general
population is 15. You test your drug on 36 patients and obtained a mean IQ of
97.65. At α = 0.05, is this IQ significantly different that the population mean of
100? Z-TEST (2-tailed test)
Type II Error
• Occurs if the null hypothesis is not rejected when it is in fact
false.
• The probability of type II error is denoted by β .
• Unlike α, which is specified by the researcher, the magnitude
of β depends on the actual value of the population
parameter (proportion).
31
TYPE I AND TYPE II ERROR
• A Type II error may be compared to a “false
negative”
• The rate of type II error is denoted by a Greek letter
β and related to the power of a test (1- β)
• The power of a test is the probability (1 - β) of
rejecting the null hypothesis when it is false and
should be rejected.
• Descriptive testing is used to better describe the test
condition and acceptance criteria which can reduce
type II errors.
• However, reducing one type of error may increase
the other type of error.
• Increasing the sample size may help reduce the
possibility of type II error
32