|
1
|
|
|
2
|
- Inference in practice
- Where did the data come from?
- Cautions about z procedures
- Cautions about confidence intervals
- Cautions about significance tests
- The power of a test
- Type I and II errors
|
|
3
|
- When you use statistical inference, you are acting as if your data are a
probability sample or come from a randomized experiment.
- Statistical confidence intervals and hypothesis tests cannot remedy
basic flaws in producing the data, such as voluntary response samples or
uncontrolled experiments.
|
|
4
|
- Requirements
- The data must be an SRS, simple random sample, of the population.
More complex sampling designs require more complex inference
methods.
- The sampling distribution must be approximately normal. This is not true
in all instances.
- We must know s, the population standard deviation.
This is often an unrealistic requisite.
We'll see what can be done when s is unknown in the next chapter.
|
|
5
|
- We cannot use the z procedure
if the population is not normally
distributed and the sample size
is too small because the central
limit theorem will not work and
the sampling distribution will not
be approximately normal.
- Poorly designed studies often produce
useless results (e.g., agricultural studies
before Fisher). Nothing can overcome
a poor design.
- Outliers influence averages and therefore your conclusions as well.
|
|
6
|
|
|
7
|
- How small a P-value is convincing evidence against H0?
- Factors often considered in choosing the significance level a:
- What are the consequences of rejecting the null hypothesis
(e.g., global warming, convicting a person for life with DNA
evidence)?
- Are you conducting a preliminary study? If so, you may want a larger
alpha so that you will be less likely to miss an interesting result.
|
|
8
|
- Statistical significance only says whether the effect observed is likely
to be due to chance alone because of random sampling.
- Statistical significance may not be practically important. That’s
because statistical significance doesn’t tell you about the magnitude of
the effect, only that there is one.
- An effect could be small enough to be irrelevant. And with a large
enough sample size, a test of significance can detect even very small
differences between two sets of data, as long as it is real.
- Example: Drug to lower temperature, found to reproducibly lower a
patient’s temperature by 0.4° Celsius (P-value < 0.01). But clinical
benefits of temperature reduction, found to appear for 1° decrease or
more.
|
|
9
|
- Because large random samples
have small chance variation, very small population effects can be highly
significant if the sample is large.
- Because small random samples
have a lot of chance variation, even large population effects can fail
to be significant if the sample is small.
|
|
10
|
- There is no consensus on how big an effect has to be in order to be
considered meaningful. In some cases, effects that may appear to be
trivial can in reality be very important.
- Example: Improving the format of a computerized test reduces the
average response time by about 2 seconds. Although this effect is
small, it is important since this is done millions of times a year. The
cumulative time savings of using the better format is gigantic.
- Always think about the context. Try to plot your results, and compare
them with a baseline or results from similar studies.
|
|
11
|
- Confidence intervals vs. hypothesis tests
- It’s a good idea to give a
confidence interval for the parameter in which you are interested. A confidence interval actually
estimates the size of an effect rather than simply asking if it is too
large to reasonably occur by chance alone.
- Beware of multiple analyses
- Running one test and reaching
the 5% level of significance is reasonably good evidence that you have
found something. Running 20 tests
and reaching that level only once is not.
- A single 95% confidence interval has probability 0.95 of capturing the
true parameter each time you use it.
- The probability that all of 20 confidence intervals will capture their
parameters is much less than 95%:
it is (0.95)20 = only 0.358.
- If you think that multiple tests or intervals may have discovered an
important effect, you need to gather new data to do inference about
that specific effect.
|
|
12
|
- The power of a test of hypothesis with fixed significance level α
is the probability that the test will reject the null hypothesis when
the alternative is true.
- In other words, power is the probability that the data gathered in an
experiment will be sufficient to reject a wrong null hypothesis.
- Knowing the power of your test is important:
- When designing your experiment: To select a sample size large enough to
detect an effect of a magnitude you think is meaningful.
- When a test found no significance: Check that your test would have had
enough power to detect an effect of a magnitude you think is
meaningful.
|
|
13
|
- How large a sample do we need for a z test at the 5% significance level
to have a power 90% against various effect sizes?
- When calculating the effect size, think about how large an effect in the
population is important in practice.
|
|
14
|
- In general:
- If you want a smaller
significance level (a) or a
higher power (1 - b),
you need a larger sample.
- A two-sided alternative
hypothesis always requires a larger sample than a one-sided alternative.
- Detecting a small effect
requires a larger sample than detecting a larger effect.
|
|
15
|
|
|
16
|
|
|
17
|
- A Type I error is made when we reject the null hypothesis and the null
hypothesis is actually true (incorrectly reject a true H0).
- The probability of making a Type I error is the significance level a.
- A Type II error is made when we fail to reject the null hypothesis and
the null hypothesis is false (incorrectly keep a false H0).
- The probability of making a Type II error is labeled b.
The power of a test is 1 − b.
|
|
18
|
- H0: The person on
trial is not a thief.
- (In the U.S., people are considered innocent unless proven otherwise.)
- Ha: The person on
trial is a thief.
- (The police believe this person is the main suspect.)
- A Type I error is made if a jury convicts a truly innocent person.
- (They reject the null hypothesis even though the null hypothesis is
actually true.)
- A Type II error is made if a truly guilty person is set free.
- (The jury fails to reject the null hypothesis even though the
null hypothesis is false.)
|
|
19
|
- Running a test of significance is a balancing act between the chance α
of making a Type I error and the chance b of making a Type II error. Reducing α reduces the power
of a test and thus increases b.
|