Docsity

Introduction to Inference - Data Analysis I | STAT 528, Study notes of Statistics

Partial preview of the text

Download Introduction to Inference - Data Analysis I | STAT 528 and more Study notes Statistics in PDF only on Docsity!

Stat 528 (Autumn 2008) – Elly Kaizar Introduction to Inference

Reading: Sections 6.1, 6.2, 6.

  • Large Sample Confidence Intervals
    • Constructing a confidence interval
    • Confidence intervals in MINITAB
  • Hypothesis testing
    • The logic of testing
    • The components of a test ∗ Formulating hypotheses ∗ Defining test statistics ∗ Calculating p-values ∗ Drawing conclusions
    • Tests in MINITAB
  • The relationship between tests and confidence intervals

Inference Revisited

  • Build a model for the world
  • Confidence Intervals: Find values for aspects (parame- ters) of that model that are consistent with data.
  • Tests: Test if particular values for aspects (parameters) of that model are consistent with data.

Building a two-sided confidence interval for μ

  • The situation: Let X 1 , X 2 ,... Xn be the random variables (RVs) associ- ated with a simple random sample (SRS) of size n drawn from a population with mean μ and stdev σ. (We assume that the mean and variance are finite numbers).
  • What is the approximate sampling distribution of X¯?
  • What range of values of X¯ might you expect if you repeated the data collection many times?

Choosing a confidence limit

  • Now need to set our confidence limits – how likely are we to trap the value of the population parameter, μ, based on confidence intervals constructed from many random samples?
  • Suppose we want a confidence level of C = 95%.
  • We know Z is (approximately) a standard normal, N(0,1).
  • What z values of the N(0,1) distribution capture the central 95% of the data?

Interpreting a confidence interval

“If I took repeated random samples from the population, in the long run, C% of the time the true population mean, μ, is captured by the limits of the calculated confidence limits”

Runners example

You measure the weights (in kilograms) of 24 male runners. You do not actually choose a SRS but are willing to assume that these runners are a random sample from the population of male runners in your town or city. Here is the summary.

Variable N N* Mean SE Mean StDev runner weights 24 0 61.792 0.981 4.

Variable Minimum Q1 Median Q3 Maximum runner weights 53.100 58.075 62.100 65.450 69.

Suppose that the standard deviation of the population is known to be σ = 4.5 kg.

(a) What is σX , the standard deviation of X? (b) Calculate a 95% confidence interval for μ, the mean of the population from which the sample is drawn. (c) Calculate a 99.7% confidence interval for μ.

One sided confidence intervals

  • A lower confidence interval: x − zα^ √^ σn < μ,
  • An upper confidence interval μ < x + zα^ √^ σn.
  • We proceed as with the two-sided interval, but calculate the area under the standard normal curve differently. Instead of an area of, α/2% at either side of the curve we put all α% on the left (lower interval) or α% on the right (upper interval).

The analysis in MINITAB

  1. Load the dataset into MINITAB.
  2. Examine the data with graphs and summary statistics.
  3. Select Stat → Basic Statistics → 1-Sample Z.
    • Variable: C
    • Standard deviation: Enter the popul. value of 0.15.
    • Under Options:
      • If you want either a lower confidence limit for μ change the Alternative to greater than.
      • If you want either a upper confidence limit for μ change the Alternative to less than.
      • You can also change the confidence level of the intervals.

Hypotheses

  • A hypothesis is a claim or statement about the value of a population characteristic (parameter) or characteristics. Examples: 1. Let μ = mean ball bearing weight on a production line. Hypothesis: μ = 100 grams. 2. Let p = proportion of OSU researchers who use statistics in their research. Hypothesis: p = 0.5.
  • Hypotheses should not depend on the sample data. These are not hypotheses: 1. x = 95. 2. ˆp = 0.32.

The null and alternative hypotheses

  • The null hypothesis, H 0 , is the claim about one or more populations or population characteristics that is initially as- sumed to be true. We will assume the null hypothesis is of the form: H 0 : population parameter = some value
  • The alternative (or alternate) hypothesis denoted by Ha is the claim to which wish we compare H 0 (some people use H 1 instead of Ha). We will assume that Ha has one of three forms: 1. Ha : population parameter 6 = some value. 2. Ha : population parameter < some value. 3. Ha : population parameter > some value. These alternative hypotheses are one or two sided.

Pollution example

  • Thirty samples were taken from a stream, and the pollution level in parts per million (ppm) was recorded for each sam- ple. The average pollution level for the data was ¯x = 10. 1 ppm. Suppose that the population standard deviation is 2. ppm. The investigator who collected the samples is inter- ested in determining whether or not there is evidence that the population mean pollution level is greater than 9.5 ppm.

The testing procedure

  • We see how well the sample data supports the null hy- pothesis.
  • As a conclusion, we either
    • reject H 0 , or
    • fail to reject H 0.
  • Although you may hear people say it, we never accept Ha!

The probabilities of making each error

  • The significance level or size of the test is α = P (making a type I error) = P (reject H 0 given that H 0 is true).

e.g. For an α = 0.05 test, if H 0 is true and the test was repeatedly run on different random samples from the same population, in the long run H 0 would be rejected 5% of the time.

  • The other probability of error is β = P (make a type II error) = P (fail to reject H 0 given that H 0 is false).

A compromise in errors

  • In practice α increases as β decreases and vice versa.
  • Common strategy:
    1. Select a test statistic that allows you to distinguish be- tween the null and alternative hypotheses.
    2. Choose the significance level, α, for your test (e.g. people often use α = .05 or α = .01).
    3. Find a testing procedure that leads to a small β given this choice of α.
  • The tests in this course were constructed in this way.