






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
If we want a confidence level of C, we choose the critical value z∗ so that. THE PROBABILITY. P(Z > z∗) = C/2 and then the level C confidence interval is ...
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Statistical inference is inferring information about the distribution of a population from information about a sample. We’re generally talking about one of two things:
A confidence interval is the interval within which a population parameter is believed to lie with a mea- surable level of confidence.
We want to be able to fill in the blanks in a statement like the following:
We estimate the parameter to be between and and this interval will contain the true value of the parameter approximately % of the times we use this method.
Where do confidence intervals come from? Let’s think about a generic example. Suppose that we take an SRS of size n from a population with mean μ and standard deviation σ. We know that the sampling
deviations of the true population mean μ. That is, about 95% of samples will produce a value for ¯x that
Distribution Table.)
ple, but it will be true of 95% of samples.
that the 95% CI for μ is ¯x ± 1.96 √σn
Example. A sample of 25 Valencia oranges weighed an average (mean) of 10 oz per orange. The standard deviation of the population of weights of Valencia oranges is 2 oz. Find a 95% confidence interval (CI) for the population mean.
5
Of course, we are free to choose any level of confidence we like. The only thing that will change is the critical value 1.96. We denote the critical value by z∗. If we want a confidence level of C, we choose the critical value z∗^ so that
and then
z∗^
σ √ n
is called THE MARGIN OF ERROR
Example. Now compute a 99% CI for the mean weight of the Valencia oranges based on our previous sample of size 25. (n = 25, ¯x = 10, σ = 2)
Example. Now compute a 90% CI for the mean weight of the Valencia oranges based on our previous sample of size 25. (n = 25, ¯x = 10, σ = 2)
Example. A random sample of 100 batteries has a mean lifetime of 15 hours. Suppose the standard deviation for battery life in the population of all batteries is 2 hours. Give a 95% CI for the mean battery life.
Here are some additional examples. In these examples we will give the sample standard deviation (s) rather than the population standard deviation σ which would probably be unavailable in most cases. For now we will just proceed using s in place of σ and a normal distribution. In several of the cases below, this simplification is unwarranted because the sample sizes are too small , but we will learn how to deal appropriately with these small sample sizes when we learn more about t-distributions. In these cases, our confidence intervals will be smaller using a normal distribution than they should be.
For each of these examples compute a 95% confidence interval and a confidence interval at some other confidence level.
We will return to these examples and do them right once we know how to deal with such small samples.
Sometimes we are only interested in bounding our estimate for a parameter in one direction. That is, we want to be able to say with some level of confidence that we believe the parameter θ is greater than some value (or less than some value).
Example. Let’s return to our battery example. A producer of batteries would like to make a claim that on average the batteries last at least some length of time. (No one will complain, after all, if they happen to last longer than expected.) A random sample of 100 batteries has a mean lifetime of 15 hours. Suppose the standard deviation for battery life in the population of all batteries is known to be 2 hours. Give a 95% confidence lower bound for the mean battery life.
For more practice, go back to the previous confidence interval examples and compute one-sided intervals instead.
For random samples from a normal population with mean μ and standard deviation σ,
While the family of normal distributions is defined by the mean and standard deviation, the family of t-distributions is defined by degrees of freedom , usually abbreviated df.
In many ways the t-distributions are a lot like the standard normal distribution. For example, all t- distributions are UNIMODAL and SYMMETRIC with a mean and median both equal to ZERO But the density curve for the t distributions is FLATTER and MORE SPREAD OUT than the density curve for the normal distribution. Statisticians like to say that the t distributions have HEAVIER TAILS , which means more of the values are farther from the center (0).
As df increases, the t-distribution becomes more and more like the standard normal distribution:
We can compute probabilities based on t-distributions just as easily as we can for normal distributions, but we need to use a computer or a different table.
Examples. Suppose the random variable t has a t-distribution with d f = 11. Use the t-distribution table to determine the following:
Prediction intervals are similar to confidence intervals, but they are estimating something different. The confidence intervals we have been looking at give an estimate for the mean of the population. But there is another type of estimate that is commonly done. For a prediction interval, we want to give a range in which we expect one randomly selected individual’s value to be.
Once again, the key to figuring out prediction intervals is understanding the sampling distribution in- volved. We consider our sample x 1 , x 2 ,... , xn to be n randomly selected values from a population dis- tribution, and we consider x to be one additional random seletion from this distribution. The idea is to make a prediction for x (in the form of a confidence interval) based on the results of the sample.
The obvious point estimate to use is ¯x, the sample mean. But what can we say about the quality of this estimate? Let’s look at the sampling distribution of ¯x − x (the differences between the sample mean and the value of an additional random selection). If the population has mean μ and standard deviation σ, then
E( x¯ − x) = E( x¯) − E(x) = μ − μ = 0
and
V( x¯ − x) = V( x¯) + V(x) =
σ^2 n
n
so the standard deviation of the sampling distribution is σ
1 + (^) n^1.
From this we see that a prediction interval would be
x¯ ± z∗σ
n
if we knew σ. As you might guess, when we do not know sigma, we will use instead
x¯ ± t∗s
n
using the sample standard deviation s in place of the population standard deviation σ and using a t- critical value (with n − 1 degrees of freedom) instead of a critical value from the normal distribution.
Our goal with tests of significance (hypothesis testing) is to ASSESS THE EVIDENCE PROVIDED BY DATA
A hypothesis test is a formal procedure for comparing observed (sample) data with a hypothesis whose truth we want to ascertain.
The hypothesis is a STATEMENT about the PARAMETERS in a POPULATION or MODEL. The results of a test are expressed in terms of a probability that measures how well the data and the hypothesis agree. In other words, it helps us decide if a hypothesis is reasonable or unreasonable based on the likelihood of getting sample data similar to our data.
Step 1: Identify parameters and state the null and alternate hypotheses.
State the hypothesis to be tested. It is called the null hypothesis , designated H 0.
The alternate hypothesis describes what you will believe if you reject the null hypothesis. It is designated Ha. This is the statement that we hope or suspect is true instead of H 0.
Example. The average LDL of healthy middle-aged women is 108.4. We suspect that smokers have a
Example. The average Beck Depression Index (BDI) of women at their first post-menopausal visit is 5.1. We wonder if women who have quit smoking between their baseline and post visits have a BDI different
Step 2: Compute the test statistic
When we are testing a hypothesis about the mean of a population, the test statistic has the form
For our HWS examples (LDL: 159 smokers, ¯x = 115.7, sd=29.8; BDI: 27 quitters, ¯x = 5.6, sd=5.1):
LDL: t = x s¯/−√μn^0 = 115.729.8/−√108.4 159 = 3.
BDI: t = x s¯/−√μn^0 = (^) 5.15.6/−√5.1 27 = 0.
Step 4: State a conclusion
A decision rule is simply a statement of the conditions under which the null hypothesis is or is not rejected. This condition generally means choosing a significance level α. If p is less than the significance level α , we reject the null hypothesis , and decide that the sample data do not support our null hypothesis and the results of our study are then called statistically significant at significance level α.
If p > α , then we do not reject the null hypothesis. This doesn’t necessarily mean that the null hypoth- esis is true, only that our data do not give strong enough evidence to reject it. It is rather like a criminal trial. If there is strong enough evidence, we convict (guilty), but if there is reasonable doubt, we find the defendant “not guilty”. This doesn’t mean the defendant is innocent, only that we don’t have enough evidence to claim with confidence that he or she is guilty.
Looking back at our previous examples, if we select a significance level of α = 0.05, what do we conclude?
It’s good to report the actual p-value, rather than just the level of significance at which it was or was not significant. This is because:
Example. Suppose that it costs $60 for an insurance company to investigate accident claims. This cost was deemed exorbitant compared to other insurance companies, and cost-cutting measures were instituted. In order to evaluate the impact of these new measures, a sample of 26 recent claims was selected at random. The sample mean and sd were $57 and $10, respectively. At the 0.01 level, is there a reduction in the average cost? Or, can the difference of three dollars ($60-$57) be attributed to the sample we happened to pick?
Example. The amount of lead in a certain type of soil, when released by a standard extraction method, averages 86 parts per million (ppm). Developers of a new extraction method wondered if their method would extract a significantly different amount of lead. 41 specimens were obtained, with a mean of 83 ppm lead and a sd of 10 ppm.
Example. The final stage of a chemical process is sampled and the level of impurities determined. The final stage is recycled if there are too many impurities, and the controls are readjusted if there are too few impurities (which is an indication that too much catalyst is being added). If it is concluded that the mean impurity level=.01 gram/liter, the process is continued without interruption. A sample of n = 100 specimens is measured, with a mean of 0.0112 and a sd of 0.005 g/l. Should the process be interrupted? Use a level of significance of .05.