Docsity

Statistical inference - Elementary Statistical Methods | STAT 30100, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Lecture 7, Chapter 6
Statistical inference is the next topic we will cover in this course. We have
been preparing for this by describing and analyzing data (graphs and plots,
descriptive statistics); discussing the means to find and/or generate data
(studies, samples, experiments); and we have defined sampling distributions.
We are now ready for statistical inference.
The purpose of statistical inference is to draw conclusions from data. It adds
to the graphing and analyzing because we substantiate our conclusions by
probability calculations. Formal inference is based on the long-run regular
behavior that probability describes. When you use statistical inference, the
data should come from a random sample or a randomized experiment.
We will learn in this chapter the two most prominent types of formal
statistical inference, confidence intervals for estimating the value of a
population parameter and tests of significance which assess the evidence for
a claim.
Section 6.1
Estimating with confidence:
A confidence interval for a population parameter includes a point estimate
and a margin of error. The point estimate is single statistic calculated from
a random sample of units. For example,
x
, the sample mean, is a point
estimate of
, the population mean. Point estimates give us very little
information. So we add to our point estimate a margin of error making up a
confidence interval.
Lecture 7, Chapter 6
Page 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Statistical inference - Elementary Statistical Methods | STAT 30100 and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

Lecture 7, Chapter 6

Statistical inference is the next topic we will cover in this course. We have been preparing for this by describing and analyzing data (graphs and plots, descriptive statistics); discussing the means to find and/or generate data (studies, samples, experiments); and we have defined sampling distributions. We are now ready for statistical inference. The purpose of statistical inference is to draw conclusions from data. It adds to the graphing and analyzing because we substantiate our conclusions by probability calculations. Formal inference is based on the long-run regular behavior that probability describes. When you use statistical inference, the data should come from a random sample or a randomized experiment. We will learn in this chapter the two most prominent types of formal statistical inference, confidence intervals for estimating the value of a population parameter and tests of significance which assess the evidence for a claim. Section 6. Estimating with confidence: A confidence interval for a population parameter includes a point estimate and a margin of error. The point estimate is single statistic calculated from

a random sample of units. For example, x , the sample mean, is a point

estimate of^ ^ , the population mean. Point estimates give us very little

information. So we add to our point estimate a margin of error making up a confidence interval. Lecture 7, Chapter 6

Example:

  1. You want to estimate the mean SAT Math score for high school seniors in California. At considerable effort and expense, you give the test to a simple random sample of 500 high school seniors. The mean score for

your sample is x = 461 points. The standard deviation of the SAT Math

test is a known ^ ^100 points.

Questions:

  1. Can we include a measure of the precision associated with the point estimate?
  2. Can we include a measure of our confidence in our results? Answer:

 Yes, we can construct a confidence interval for^ ^.

A confidence interval is calculated from the sample data and it represents an interval estimate of the population parameter. A confidence interval includes:

  1. an interval computed from the sample. (The interval is a measure of the variability of our point estimate).
  2. a confidence level. (This confidence level measures the confidence that our inference is correct).

In this lesson we want to find a confidence interval for a population mean,^ 

Given a SRS of n units from the population, we can calculate the sample

mean x. This single, calculated value, x , represents an outcome in the

sampling distribution of x.

Lecture 7, Chapter 6

mean is x 1 = 1.10 hours (the first sample taken, the sample mean

calculated). Let’s assume that we know the standard deviation of X is

  0.5 hours.

Let x denote the distribution of the sample mean.

The standard deviation of x is

 x  =0.

Then x^ ~^ N (^ ,0.1)

Remember, our first observed sample mean is x 1 =1.10 hours.

An (approximate) 95% confidence interval for^ ^ can be constructed as

follows:  The lower endpoint is:

x 1.

n

 The upper endpoint is:

x 1.

n

 = 1.10 + (1.96*0.1) = 1.

 So our (approximate) 95% confidence interval for^ ^ is:

 Note: We are not guaranteed that the true value of^ ^ is in the

above interval. Suppose we conducted another trial of our random phenomenon and

obtained an x 2 = 1.00 hours (the second sample taken, sample mean

calculated). If we calculate an approximate 95% confidence interval for^ 

based on x 2 we get (0.804, 1.196) which is a different interval estimate.

If we repeatedly selected SRS of 25 drivers, and for each SRS, we calculated

the approximate 95% confidence interval for^ ^ , the population mean, in the

long-run, 95% of the intervals will contain the true value of^ 

Formal definitions: Confidence Interval Lecture 7, Chapter 6

A level C confidence interval for a parameter is an interval computed from sample data by a method that has probability C of producing an interval containing the true value of the parameter. Confidence Interval for a Population Mean

Choose a SRS of size n from a population having unknown mean^ ^ and

known standard deviation^ ^. A level C confidence interval for^ ^ is

x z^ *

n

Here z* is the value on the standard normal curve with area C between – z* and z*. This interval is exact when the population distribution is normal and approximately correct for large n in other cases. Margin of error =

z *

n

So the confidence interval for a population mean can also be written as:

x margin of error

Example:

  1. Suppose X, Bob’s golf scores, has a normal distribution with unknown

mean and standard deviation^ ^ = 3. A SRS of n=16 units is selected and

a sample mean of x = 77 is observed.

a. Calculate a 90% confidence interval for^ ^.

b. Calculate a 95% confidence interval for^ ^.

c. Calculate a 99% confidence interval for^ ^.

There is a trade-off between the precision with which we estimate the unknown parameter and the confidence we have in the result. Higher confidence (larger C level) requires a wider interval. Lecture 7, Chapter 6

 The above interval estimation method applies only to SRS. Slightly different methods are required when the data are obtained from more complicated surveys and experiments.  The above formulas do not correct the data for any unknown bias. Consequently, if the data are biased, then ANY inferences based on those data are also biased. This includes biases arising from nonresponse, undercoverage and response error or hidden bias in experiments.  Because the sample mean is not resistant, confidence intervals are not resistant to outliers.  If the sample size is small (eg: n<15) and the sampling distribution of X is not well approximated by the normal density curve, then the above formulas should not be used.

 Typically we do not know the population standard deviation,^ ^.

Section 6. A Confidence interval is one of the two common types of statistical inference; it is used to estimate a population parameter from a sample Lecture 7, Chapter 6

statistic with certain confidence. The second common type is a significance test which assesses evidence provided by gathered data in favor of some claim about the population, an hypothesis about the population. Tests of Significance: Often we have specific questions regarding a particular value of a population parameter. Example 1: Bob golf scores are historically normally distributed with μ = 77 strokes and σ = 3 strokes. Bob has recently made two “improvements” to his game; he has taken a lesson from a local Professional and he has read a book on the mental approach to putting. With these improvements, Bob thinks his game is better. Let’s examine the truth of Bob’s thinking using a test of significance. Bob has played several rounds after these improvements. His scores after the improvements were: 77 73 74 78 78 75 75 74 71 We now ask if Bob’s average score, μ = 77, is still a reasonable value or has he improved so his average would be less? We ask: Question 1: Is μ = 77 Question 2: Is μ < 77 Example 2: Bob has a driver’s license that gives his weight as 190 pounds. Bob did not change this information the last two times he renewed his license but has Lecture 7, Chapter 6

H 0 :   77

Ha :   77

Note: This is a one-sided significance test. Example 2:

H 0 :   190

Ha :   190

Note: This is a two-sided significance test. The goal of a significance test is the following: Based on a random sample from the population, we want to determine if a “change” has resulted in a shift in the mean. Because the null hypotheses represents the established or accepted mean value, and we believe a change has occurred as specified in the alternative hypothesis, we want to use the data to determine, statistically, if we can Reject the null hypothesis in favor of the alternative. Let’s look at the first example based upon the statistical techniques we already know. X = Bob’s golf score We use the scores Bob has recorded after his lesson and book read as a sample of X. We know that Bob’s golf scores are normally distributed hence any sampling distribution of his scores is also normally distributed. If his scores were not normally distributed, we would need to assume that our sample size is large enough so that the Central Limit theorem applies and the

sampling distribution of x can be approximated by the normal density

curve.

The standard deviation of x is ^ x 3/^9 = 1 stroke.

Lecture 7, Chapter 6

Now let us consider our mean of the sampling distribution in context of our two hypotheses. If the null hypothesis is true, then the mean of the sampling distribution is

 x  77

If H 0^ is true, then X ~ N (77,1)

If the null hypothesis is false (and H^ a is true), then the mean is some value

< 77 strokes.

If H 0^ is false and H^ a is true, then X ~ N ( ,1)

for some value^ ^ ^77.

 Values of x close to 77 would tend to support H^ 0 and values that are

less than 77 would provide evidence against H 0

 With the sample of Bob’s last 9 scores we get a sample mean of

x  75. Can we conclude that we should reject H^ 0 in favor of H^ a?

 To figure this out we calculate a p-value. For example we calculate the

P X P Z P Z

       

 Note that to calculate this probability we assumed H^ 0 was true and

X ~ N (77,1)

 Because the probability of obtaining a sample x  75 is small, we

would reject H 0^.

 Let’s say Bob wanted quicker feedback on his golf improvements and wanted it after his first 5 scores. In this case, the sample size is

smaller and as a result, we get a sample mean of x  76 and

 x 3/ 5 1.342, then

P X P Z

       

which is not very small.

 This suggests that it is reasonable that x  76 as an observed outcome

from N(77,1.342). So we would fail to reject H 0^.

 As you can see, the sample size often affects whether we reject H 0^.

That is why we never accept H^ 0 , but rather fail to reject H^ 0. This

failure to reject H^ 0 may be because we did not select a large enough

sample. Lecture 7, Chapter 6

Example:

  1. A shipment of machined parts has a critical dimension that is normally distributed with mean 12 centimeters and standard deviation 0. centimeters. The acceptance sampling team believes that the measurements are less than 12 centimeters. Consequently they take a random sample of 25 of these parts and obtain a mean of 11.99. Is the acceptance sampling team correct in their assertions? Use an α level of 0.01. Lecture 7, Chapter 6

Confidence Intervals and Two-Sided Tests:

A level α two-sided significance test rejects a hypothesis H 0 :^ ^ ^0 exactly

when the value  0 falls outside a level 1-α confidence interval for^ ^.

Examples:

  1. Bob has a driver’s license that gives his weight as 190 pounds. Bob did not change this information the last two times he renewed his license but has been eating too well in the interim. Recently, Bob decided to go on a diet and feels he has changed his eating habits. Let’s test the truth of the weight on Bob’s license using a test of significance. We know, over time, Bob’s weight is approximately normally distributed with a standard deviation of 3 pounds. Bob has weighed himself during the last month and his weights are: 193 194 192 191 Lecture 7, Chapter 6