209
1.1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. What is Statistics? “Statistics is a way to get information from data” Data Statistics Information Data: Facts, especially numerical facts, collected together for reference or information. Definitions: Oxford English Dictio Information: Knowledge communicated concerning some particular fact. Statistics is a tool for creating new understanding from a set of numbers.

Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

Embed Size (px)

Citation preview

Page 1: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.1Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

What is Statistics?

“Statistics is a way to get information from data”

Data

Statistics

Information

Data: Facts, especially numerical facts, collected together for reference or information.

Definitions: Oxford English Dictionary

Information: Knowledge communicated concerning some particular fact.

Statistics is a tool for creating new understanding from a set of numbers.

Page 2: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.2Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Key Statistical Concepts…

Population— a population is the group of all items of interest to

a statistics practitioner.

— frequently very large; sometimes infinite.

E.g. All 5 million Florida voters, per Example 12.5

Sample— A sample is a set of data drawn from the

population.

— Potentially very large, but less than the population.

E.g. a sample of 765 voters exit polled on election day.

Page 3: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.3Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Key Statistical Concepts…

Parameter— A descriptive measure of a population.

Statistic— A descriptive measure of a sample.

Page 4: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.4Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Key Statistical Concepts…

Populations have Parameters,

Samples have Statistics.

Parameter

Population Sample

Statistic

Subset

Page 5: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.5Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Descriptive Statistics…

…are methods of organizing, summarizing, and presenting data in a convenient and informative way. These methods include:

Graphical Techniques (Chapter 2), and

Numerical Techniques (Chapter 4).

The actual method used depends on what information we would like to extract. Are we interested in…

• measure(s) of central location? and/or

• measure(s) of variability (dispersion)?

Descriptive Statistics helps to answer these questions…

Page 6: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.6Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Statistical Inference…

Statistical inference is the process of making an estimate, prediction, or decision about a population based on a sample.

Parameter

Population

Sample

Statistic

Inference

What can we infer about a Population’s Parametersbased on a Sample’s Statistics?

Page 7: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.7Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Definitions…

A variable is some characteristic of a population or sample.

E.g. student grades.

Typically denoted with a capital letter: X, Y, Z…

The values of the variable are the range of possible values for a variable.

E.g. student marks (0..100)

Data are the observed values of a variable.

E.g. student marks: {67, 74, 71, 83, 93, 55, 48}

Page 8: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.8Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interval Data…

Interval data

• Real numbers, i.e. heights, weights, prices, etc.

• Also referred to as quantitative or numerical.

Arithmetic operations can be performed on Interval Data, thus its meaningful to talk about 2*Height, or Price + $1, and so on.

Page 9: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.9Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nominal Data…

Nominal Data

• The values of nominal data are categories.

E.g. responses to questions about marital status, coded as:

Single = 1, Married = 2, Divorced = 3, Widowed = 4

Because the numbers are arbitrary arithmetic operations don’t make any sense (e.g. does Widowed ÷ 2 = Married?!)

Nominal data are also called qualitative or categorical.

Page 10: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.10Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Ordinal Data…

Ordinal Data appear to be categorical in nature, but their values have an order; a ranking to them:

E.g. College course rating system:

poor = 1, fair = 2, good = 3, very good = 4, excellent = 5

While its still not meaningful to do arithmetic on this data (e.g. does 2*fair = very good?!), we can say things like:

excellent > poor or fair < very good

That is, order is maintained no matter what numeric values are assigned to each category.

Page 11: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.11Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Graphical & Tabular Techniques for Nominal Data…The only allowable calculation on nominal data is to count the frequency of each value of the variable.

We can summarize the data in a table that presents the categories and their counts called a frequency distribution.

A relative frequency distribution lists the categories and the proportion with which each occurs.

Refer to Example 2.1

Page 12: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.12Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nominal Data (Tabular Summary)

Page 13: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.13Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nominal Data (Frequency)

Bar Charts are often used to display frequencies…

Page 14: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.14Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nominal Data

It all the same information,(based on the same data).

Just different presentation.

Page 15: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.15Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Graphical Techniques for Interval DataThere are several graphical methods that are used when the data are interval (i.e. numeric, non-categorical).

The most important of these graphical methods is the histogram.

The histogram is not only a powerful graphical technique used to summarize interval data, but it is also used to help explain probabilities.

Page 16: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.16Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Building a Histogram…1) Collect the Data 2) Create a frequency distribution for the data. 3) Draw the Histogram.

Page 17: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.17Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Histogram and Stem & Leaf…

Page 18: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.18Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Ogive…

Is a graph of a cumulative frequency distribution.

We create an ogive in three steps…1) Calculate relative frequencies. 2) Calculate cumulative relative frequencies by adding the current class’ relative frequency to the previous class’ cumulative relative frequency.

(For the first class, its cumulative relative frequency is just its relative frequency)

Page 19: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.19Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Cumulative Relative Frequencies…

first class…next class: .355+.185=.540

last class: .930+.070=1.00

:

:

Page 20: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.20Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Ogive…

The ogive can be used to answer questions

like:

What telephone bill value is at the 50th

percentile?

(Refer also to Fig. 2.13 in your textbook)“around $35”

Page 21: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.21Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Scatter Diagram…

Example 2.9 A real estate agent wanted to know to what extent the selling price of a home is related to its size…

1) Collect the data 2) Determine the independent variable (X – house size) and

the dependent variable (Y – selling price) 3) Use Excel to create a “scatter diagram”…

Page 22: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.22Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Scatter Diagram…

It appears that in fact there is a relationship, that is, the greater the house size the greater the selling price…

Page 23: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.23Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Patterns of Scatter Diagrams…

Linearity and Direction are two concepts we are interested in

Positive Linear Relationship Negative Linear Relationship

Weak or Non-Linear Relationship

Page 24: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.24Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Time Series Data…

Observations measured at the same point in time are called cross-sectional data.

Observations measured at successive points in time are called time-series data.

Time-series data graphed on a line chart, which plots the value of the variable on the vertical axis against the time periods on the horizontal axis.

Page 25: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.25Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Numerical Descriptive Techniques…

Measures of Central LocationMean, Median, Mode

Measures of VariabilityRange, Standard Deviation, Variance, Coefficient of Variation

Measures of Relative StandingPercentiles, Quartiles

Measures of Linear RelationshipCovariance, Correlation, Least Squares Line

Page 26: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.26Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Measures of Central Location…

The arithmetic mean, a.k.a. average, shortened to mean, is the most popular & useful measure of central location.

It is computed by simply adding up all the observations and dividing by the total number of observations:

Sum of the observationsNumber of observations

Mean =

Page 27: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.27Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Arithmetic Mean…

Population Mean Sample Mean

Page 28: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.28Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Statistics is a pattern language…

Population Sample

Size N n

Mean

Page 29: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.29Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

The Arithmetic Mean…

…is appropriate for describing measurement data, e.g. heights of people, marks of student papers, etc.

…is seriously affected by extreme values called “outliers”. E.g. as soon as a billionaire moves into a neighborhood, the average household income increases beyond what it was previously!

Page 30: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.30Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Measures of Variability…

Measures of central location fail to tell the whole story about the distribution; that is, how much are the observations spread out around the mean value?

For example, two sets of class grades are shown. The mean (=50) is the same in each case…

But, the red class has greater variability than the blue class.

Page 31: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.31Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Range…

The range is the simplest measure of variability, calculated as:

Range = Largest observation – Smallest observation

E.g.

Data: {4, 4, 4, 4, 50} Range = 46

Data: {4, 8, 15, 24, 39, 50} Range = 46

The range is the same in both cases,

but the data sets have very different distributions…

Page 32: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.32Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Statistics is a pattern language…

Population Sample

Size N n

Mean

Variance

Page 33: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.33Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Variance…

The variance of a population is:

The variance of a sample is:

population mean

sample mean

Note! the denominator is sample size (n) minus one !

population size

Page 34: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.34Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Application…

Example 4.7. The following sample consists of the number of jobs six randomly selected students applied for: 17, 15, 23, 7, 9, 13.

Finds its mean and variance.

What are we looking to calculate?

The following sample consists of the number of jobs six randomly selected students applied for: 17, 15, 23, 7, 9, 13.

Finds its mean and variance.

…as opposed to or 2

Page 35: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.35Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sample Mean & Variance…

Sample Mean

Sample Variance

Sample Variance (shortcut method)

Page 36: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.36Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Standard Deviation…

The standard deviation is simply the square root of the variance, thus:

Population standard deviation:

Sample standard deviation:

Page 37: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.37Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Standard Deviation…

Consider Example 4.8 where a golf club manufacturer has designed a new club and wants to determine if it is hit more consistently (i.e. with less variability) than with an old club.

Using Tools > Data Analysis [may need to “add in”… > Descriptive Statistics in Excel, we produce the following tables for interpretation…

You get more consistent distance with the new club.

Page 38: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.38Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

The Empirical Rule… If the histogram is bell shaped

Approximately 68% of all observations fallwithin one standard deviation of the mean.

Approximately 95% of all observations fallwithin two standard deviations of the mean.

Approximately 99.7% of all observations fallwithin three standard deviations of the mean.

Page 39: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.39Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chebysheff’s Theorem…Not often used because interval is very wide.

A more general interpretation of the standard deviation is derived from Chebysheff’s Theorem, which applies to all shapes of histograms (not just bell shaped).

The proportion of observations in any sample that lie

within k standard deviations of the mean is at least:

For k=2 (say), the theorem states that at least 3/4 of all observations lie within 2 standard deviations of the mean. This is a “lower bound” compared to Empirical Rule’s approximation (95%).

Page 40: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.40Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Box Plots…These box plots are based on data in Xm04-15.

Wendy’s service time is shortest and least variable.

Hardee’s has the greatest variability, while Jack-in-the-Box has the longest service times.

Page 41: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.41Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Methods of Collecting Data…

There are many methods used to collect or obtain data for statistical analysis. Three of the most popular methods are:

• Direct Observation

• Experiments, and

• Surveys.

Page 42: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.42Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling…

Recall that statistical inference permits us to draw conclusions about a population based on a sample.

Sampling (i.e. selecting a sub-set of a whole population) is often done for reasons of cost (it’s less expensive to sample 1,000 television viewers than 100 million TV viewers) and practicality (e.g. performing a crash test on every automobile produced is impractical).

In any case, the sampled population and the target population should be similar to one another.

Page 43: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.43Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Plans…

A sampling plan is just a method or procedure for specifying how a sample will be taken from a population.

We will focus our attention on these three methods:

•Simple Random Sampling,•Stratified Random Sampling, and•Cluster Sampling.

Page 44: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.44Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Simple Random Sampling…

A simple random sample is a sample selected in such a way that every possible sample of the same size is equally likely to be chosen.

Drawing three names from a hat containing all the names of the students in the class is an example of a simple random sample: any group of three names is as equally likely as picking any other group of three names.

Page 45: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.45Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Stratified Random Sampling…

After the population has been stratified, we can use simple random sampling to generate the complete sample:

If we only have sufficient resources to sample 400 people total, we would draw 100 of them from the low income group…

…if we are sampling 1000 people, we’d draw50 of them from the high income group.

Page 46: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.46Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Cluster Sampling…

A cluster sample is a simple random sample of groups or clusters of elements (vs. a simple random sample of individual objects).

This method is useful when it is difficult or costly to develop a complete list of the population members or when the population elements are widely dispersed geographically.

Cluster sampling may increase sampling error due to similarities among cluster members.

Page 47: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.47Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Error…

Sampling error refers to differences between the sample and the population that exist only because of the observations that happened to be selected for the sample.

Another way to look at this is: the differences in results for different samples (of the same size) is due to sampling error:

E.g. Two samples of size 10 of 1,000 households. If we happened to get the highest income level data points in our first sample and all the lowest income levels in the second, this delta is due to sampling error.

Page 48: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.48Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonsampling Error…

Nonsampling errors are more serious and are due to mistakes made in the acquisition of data or due to the sample observations being selected improperly. Three types of nonsampling errors:

Errors in data acquisition,

Nonresponse errors, and

Selection bias.

Note: increasing the sample size will not reduce this type of error.

Page 49: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.49Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Approaches to Assigning Probabilities…There are three ways to assign a probability, P(Oi), to an outcome, Oi, namely:

Classical approach: make certain assumptions (such as equally likely, independence) about situation.

Relative frequency: assigning probabilities based on experimentation or historical data.

Subjective approach: Assigning probabilities based on the assignor’s judgment.

Page 50: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.50Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interpreting Probability…

One way to interpret probability is this:

If a random experiment is repeated an infinite number of times, the relative frequency for any given outcome is the probability of this outcome.

For example, the probability of heads in flip of a balanced coin is .5, determined using the classical approach. The probability is interpreted as being the long-term relative frequency of heads if the coin is flipped an infinite number of times.

Page 51: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.51Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Conditional Probability…

Conditional probability is used to determine how two events are related; that is, we can determine the probability of one event given the occurrence of another related event.

Conditional probabilities are written as P(A | B) and read as “the probability of A given B” and is calculated as:

Page 52: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.52Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Independence…One of the objectives of calculating conditional probability is to determine whether two events are related.

In particular, we would like to know whether they are independent, that is, if the probability of one event is not affected by the occurrence of the other event.

Two events A and B are said to be independent ifP(A|B) = P(A)

orP(B|A) = P(B)

Page 53: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.53Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Complement Rule…

The complement of an event A is the event that occurs when A does not occur.

The complement rule gives us the probability of an event NOT occurring. That is:

P(AC) = 1 – P(A)

For example, in the simple roll of a die, the probability of the number “1” being rolled is 1/6. The probability that some number other than “1” will be rolled is 1 – 1/6 = 5/6.

Page 54: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.54Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Multiplication Rule…

The multiplication rule is used to calculate the joint probability of two events. It is based on the formula for conditional probability defined earlier:

If we multiply both sides of the equation by P(B) we have:

P(A and B) = P(A | B)•P(B)

Likewise, P(A and B) = P(B | A) • P(A)

If A and B are independent events, then P(A and B) = P(A)•P(B)

Page 55: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.55Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Addition Rule…

Recall: the addition rule was introduced earlier to provide a way to compute the probability of event A or B or both A and B occurring; i.e. the union of A and B.

P(A or B) = P(A) + P(B) – P(A and B)

Why do we subtract the joint probability P(A and B) from the sum of the probabilities of A and B?

P(A or B) = P(A) + P(B) – P(A and B)

Page 56: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.56Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Addition Rule for Mutually Excusive EventsIf and A and B are mutually exclusive the occurrence of one event makes the other one impossible. This means that

P(A and B) = 0

The addition rule for mutually exclusive events is

P(A or B) = P(A) + P(B)

We often use this form when we add some joint probabilities calculated from a probability tree

Page 57: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.57Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Two Types of Random Variables…

Discrete Random Variable

– one that takes on a countable number of values

– E.g. values on the roll of dice: 2, 3, 4, …, 12

Continuous Random Variable

– one whose values are not discrete, not countable

– E.g. time (30.1 minutes? 30.10000001 minutes?)

Analogy:

Integers are Discrete, while Real Numbers are Continuous

Page 58: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.58Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Laws of Expected Value…

1. E(c) = c• The expected value of a constant (c) is just the value of the constant.

2. E(X + c) = E(X) + c

3. E(cX) = cE(X) • We can “pull” a constant out of the expected value expression (either as part of a sum with a random variable X or as a coefficient of random variable X).

Page 59: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.59Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Laws of Variance…

1. V(c) = 0• The variance of a constant (c) is zero.

2. V(X + c) = V(X)• The variance of a random variable and a constant is just the variance of the random variable (per 1 above).

3. V(cX) = c2V(X) • The variance of a random variable and a constant coefficient is the coefficient squared times the variance of the random variable.

Page 60: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.60Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Binomial Distribution…

The binomial distribution is the probability distribution that results from doing a “binomial experiment”. Binomial experiments have the following properties:

1. Fixed number of trials, represented as n.

2. Each trial has two possible outcomes, a “success” and a “failure”.

3. P(success)=p (and thus: P(failure)=1–p), for all trials.

4. The trials are independent, which means that the outcome of one trial does not affect the outcomes of any other trials.

Page 61: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.61Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Binomial Random Variable…

The binomial random variable counts the number of successes in n trials of the binomial experiment. It can take on values from 0, 1, 2, …, n. Thus, its a discrete random variable.

To calculate the probability associated with each value we use combintorics:

for x=0, 1, 2, …, n

Page 62: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.62Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Binomial Table…

“What is the probability that Pat fails the quiz”?

i.e. what is P(X ≤ 4), given P(success) = .20 and n=10 ?

P(X ≤ 4) = .967

Page 63: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.63Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Binomial Table…

“What is the probability that Pat gets two answers correct?”

i.e. what is P(X = 2), given P(success) = .20 and n=10 ?

P(X = 2) = P(X≤2) – P(X≤1) = .678 – .376 = .302remember, the table shows cumulative probabilities…

Page 64: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.64Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

=BINOMDIST() Excel Function…

There is a binomial distribution function in Excel that can also be used to calculate these probabilities. For example:

What is the probability that Pat gets two answers correct?

# successes

# trials

P(success)

cumulative(i.e. P(X≤x)?)

P(X=2)=.3020

Page 65: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.65Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

=BINOMDIST() Excel Function…

There is a binomial distribution function in Excel that can also be used to calculate these probabilities. For example:

What is the probability that Pat fails the quiz?

# successes

# trials

P(success)

cumulative(i.e. P(X≤x)?)

P(X≤4)=.9672

Page 66: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.66Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Binomial Distribution…

As you might expect, statisticians have developed general formulas for the mean, variance, and standard deviation of a binomial random variable. They are:

Page 67: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.67Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Poisson Distribution…

Named for Simeon Poisson, the Poisson distribution is a discrete probability distribution and refers to the number of events (a.k.a. successes) within a specific time period or region of space. For example:

• The number of cars arriving at a service station in 1 hour. (The interval of time is 1 hour.)

• The number of flaws in a bolt of cloth. (The specific region is a bolt of cloth.)

• The number of accidents in 1 day on a particular stretch of highway. (The interval is defined by both time, 1 day, and space, the particular stretch of highway.)

Page 68: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.68Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

The Poisson Experiment…

Like a binomial experiment, a Poisson experiment has four defining characteristic properties:

1. The number of successes that occur in any interval is independent of the number of successes that occur in any other interval.

2. The probability of a success in an interval is the same for all equal-size intervals

3. The probability of a success is proportional to the size of the interval.

4. The probability of more than one success in an interval approaches 0 as the interval becomes smaller.

Page 69: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.69Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Poisson Distribution…

The Poisson random variable is the number of successes that occur in a period of time or an interval of space in a Poisson experiment.

E.g. On average, 96 trucks arrive at a border crossing

every hour.

E.g. The number of typographic errors in a new textbook edition averages 1.5 per 100 pages.

successes

time period

successes (?!)

interval

Page 70: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.70Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Poisson Probability Distribution…

The probability that a Poisson random variable assumes a value of x is given by:

and e is the natural logarithm base.

FYI:

Page 71: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.71Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 7.12…

The number of typographical errors in new editions of textbooks varies considerably from book to book. After some analysis he concludes that the number of errors is Poisson distributed with a mean of 1.5 per 100 pages. The instructor randomly selects 100 pages of a new book. What is the probability that there are no typos?

That is, what is P(X=0) given that = 1.5?

“There is about a 22% chance of finding zero errors”

Page 72: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.72Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Poisson Distribution…

As mentioned on the Poisson experiment slide:

The probability of a success is proportional to the size of the interval

Thus, knowing an error rate of 1.5 typos per 100 pages, we can determine a mean value for a 400 page book as:

=1.5(4) = 6 typos / 400 pages.

Page 73: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.73Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 7.13…

For a 400 page book, what is the probability that there are

no typos?

P(X=0) =

“there is a very small chance there are no typos”

Page 74: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.74Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 7.13…

…Excel is an even better alternative:

Page 75: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.75Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Probability Density Functions…

Unlike a discrete random variable which we studied in Chapter 7, a continuous random variable is one that can assume an uncountable number of values.

We cannot list the possible values because there is an infinite number of them.

Because there is an infinite number of values, the probability of each individual value is virtually 0.

Page 76: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.76Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Point Probabilities are ZeroBecause there is an infinite number of values, the probability of each individual value is virtually 0.

Thus, we can determine the probability of a range of values only.

E.g. with a discrete random variable like tossing a die, it is meaningful to talk about P(X=5), say.

In a continuous setting (e.g. with time as a random variable), the probability the random variable of interest, say task length, takes exactly 5 minutes is infinitesimally small, hence P(X=5) = 0.

It is meaningful to talk about P(X ≤ 5).

Page 77: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.77Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Probability Density Function…

A function f(x) is called a probability density function (over the range a ≤ x ≤ b if it meets the following requirements:

1) f(x) ≥ 0 for all x between a and b, and

2) The total area under the curve between a and b is 1.0

f(x)

xba

area=1

Page 78: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.78Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

The Normal Distribution…

The normal distribution is the most important of all probability distributions. The probability density function of a normal random variable is given by:

It looks like this:

Bell shaped,

Symmetrical around the mean …

Page 79: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.79Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

The Normal Distribution…

Important things to note:

The normal distribution is fully defined by two parameters:its standard deviation and mean

Unlike the range of the uniform distribution (a ≤ x ≤ b)Normal distributions range from minus infinity to plus infinity

The normal distribution is bell shaped andsymmetrical about the mean

Page 80: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.80Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Standard Normal Distribution…

A normal distribution whose mean is zero and standard deviation is one is called the standard normal distribution.

As we shall see shortly, any normal distribution can be converted to a standard normal distribution with simple algebra. This makes calculations much easier.

0

1

1

Page 81: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.81Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Calculating Normal Probabilities…

We can use the following function to convert any normal random variable to a standard normal random variable…

Some advice: always draw a

picture!

0

Page 82: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.82Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Calculating Normal Probabilities…

Example: The time required to build a computer is normally distributed with a mean of 50 minutes and a standard deviation of 10 minutes:

What is the probability that a computer is assembled in a time between 45 and 60 minutes?

Algebraically speaking, what is P(45 < X < 60) ?

0

Page 83: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.83Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Calculating Normal Probabilities…

P(45 < X < 60) ?

0

…mean of 50 minutes and astandard deviation of 10 minutes…

Page 84: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.84Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Calculating Normal Probabilities…We can use Table 3 inAppendix B to look-upprobabilities P(0 < Z < z)

We can break up P(–.5 < Z < 1) into:P(–.5 < Z < 0) + P(0 < Z < 1)

The distribution is symmetric around zero, so we have:P(–.5 < Z < 0) = P(0 < Z < .5)Hence: P(–.5 < Z < 1) = P(0 < Z < .5) + P(0 < Z < 1)

Page 85: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.85Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Calculating Normal Probabilities…

How to use Table 3…

This table gives probabilities P(0 < Z < z)

First column = integer + first decimal

Top row = second decimal place

P(0 < Z < 0.5)

P(0 < Z < 1)

P(–.5 < Z < 1) = .1915 + .3414 = .5328

Page 86: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.86Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the Normal Table (Table 3)…

What is P(Z > 1.6) ?

0 1.6

P(0 < Z < 1.6) = .4452

P(Z > 1.6) = .5 – P(0 < Z < 1.6)= .5 – .4452

= .0548

z

Page 87: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.87Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the Normal Table (Table 3)…

What is P(Z < -2.23) ?

0 2.23

P(0 < Z < 2.23)

P(Z < -2.23) = P(Z > 2.23)= .5 – P(0 < Z < 2.23)

= .0129

z

-2.23

P(Z > 2.23)P(Z < -2.23)

Page 88: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.88Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the Normal Table (Table 3)…

What is P(Z < 1.52) ?

0 1.52

P(Z < 0) = .5

P(Z < 1.52) = .5 + P(0 < Z < 1.52)= .5 + .4357

= .9357

z

P(0 < Z < 1.52)

Page 89: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.89Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the Normal Table (Table 3)…

What is P(0.9 < Z < 1.9) ?

0 0.9

P(0 < Z < 0.9)

P(0.9 < Z < 1.9) = P(0 < Z < 1.9) – P(0 < Z < 0.9)=.4713 – .3159

= .1554

z

1.9

P(0.9 < Z < 1.9)

Page 90: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.90Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Finding Values of Z…

Other Z values are

Z.05 = 1.645

Z.01 = 2.33

Page 91: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.91Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the values of Z

Because z.025 = 1.96 and - z.025= -1.96, it follows that we can state

P(-1.96 < Z < 1.96) = .95

Similarly

P(-1.645 < Z < 1.645) = .90

Page 92: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.92Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Other Continuous Distributions…

Three other important continuous distributions which will be used extensively in later sections are introduced here:

Student t Distribution,

Chi-Squared Distribution, and

F Distribution.

Page 93: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.93Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Student t Distribution…

Here the letter t is used to represent the random variable, hence the name. The density function for the Student t distribution is as follows…

(nu) is called the degrees of freedom, and

(Gamma function) is (k)=(k-1)(k-2)…(2)(1)

Page 94: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.94Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Student t Distribution…

In much the same way that and define the normal distribution, , the degrees of freedom, defines the Student

t Distribution:

As the number of degrees of freedom increases, the t distribution approaches the standard normal distribution.

Figure 8.24

Page 95: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.95Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Determining Student t Values…

The student t distribution is used extensively in statistical inference. Table 4 in Appendix B lists values of

That is, values of a Student t random variable with degrees of freedom such that:

The values for A are pre-determined

“critical” values, typically in the

10%, 5%, 2.5%, 1% and 1/2% range.

Page 96: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.96Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Using the t table (Table 4) for values…For example, if we want the value of t with 10 degrees of freedom such that the area under the Student t curve is .05:

Area under the curve value (tA) : COLUMN

Degrees of Freedom : ROW

t.05,10

t.05,10=1.812

Page 97: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.97Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

F Distribution…

The F density function is given by:

F > 0. Two parameters define this distribution, and like we’ve already seen these are again degrees of freedom.

is the “numerator” degrees of freedom and

is the “denominator” degrees of freedom.

Page 98: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.98Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Determining Values of F…

For example, what is the value of F for 5% of the area under the right hand “tail” of the curve, with a numerator degree of freedom of 3 and a denominator degree of freedom of 7?

Solution: use the F look-up (Table 6)

Numerator Degrees of Freedom : COLUMN

Denominator Degrees of Freedom : ROW

F.05,3,7

There are different tablesfor different values of A.Make sure you start with

the correct table!!

F.05,3,7=4.35

Page 99: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.99Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Determining Values of F…

For areas under the curve on the left hand side of the curve, we can leverage the following relationship:

Pay close attention to the order of the terms!

Page 100: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.100Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chapter 9

Sampling Distributions

Page 101: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.101Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

x 1 2 3 4 5 6

P(x) 1/6 1/6 1/6 1/6 1/6 1/6

Sampling Distribution of the Mean…

A fair die is thrown infinitely many times,

with the random variable X = # of spots on any throw.

The probability distribution of X is:

…and the mean and variance are calculated as well:

Page 102: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.102Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution of Two Dice

A sampling distribution is created by looking at

all samples of size n=2 (i.e. two dice) and their means…

While there are 36 possible samples of size 2, there are only 11 values for , and some (e.g. =3.5) occur more frequently than others (e.g. =1).

Page 103: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.103Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution of Two Dice…

The sampling distribution of is shown below:

1.0 1/361.5 2/362.0 3/362.5 4/363.0 5/363.5 6/364.0 5/364.5 4/365.0 3/365.5 2/366.0 1/36

P( )

1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0

6/36

5/36

4/36

3/36

2/36

1/36

P(

)

Page 104: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.104Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Compare…

Compare the distribution of X…

…with the sampling distribution of .

As well, note that:

1 2 3 4 5 6 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0

Page 105: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.105Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Central Limit Theorem…

The sampling distribution of the mean of a random sample drawn from any population is approximately normal for a sufficiently large sample size.

The larger the sample size, the more closely the sampling distribution of X will resemble a normal distribution.

Page 106: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.106Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Central Limit Theorem…

If the population is normal, then X is normally distributed for all values of n.

If the population is non-normal, then X is approximately normal only for larger values of n.

In many practical situations, a sample size of 30 may be sufficiently large to allow us to use the normal distribution as an approximation for the sampling distribution of X.

Page 107: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.107Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution of the Sample Mean1.

2.

3. If X is normal, X is normal. If X is nonnormal, X is approximately normal for sufficiently large sample sizes.

Note: the definition of “sufficiently large” depends on the extent of nonnormality of x (e.g. heavily skewed; multimodal)

Page 108: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.108Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 9.1(a)…

The foreman of a bottling plant has observed that the amount of soda in each “32-ounce” bottle is actually a normally distributed random variable, with a mean of 32.2 ounces and a standard deviation of .3 ounce.

If a customer buys one bottle, what is the probability that the bottle will contain more than 32 ounces?

Page 109: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.109Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 9.1(a)…

We want to find P(X > 32), where X is normally distributed and =32.2 and =.3

“there is about a 75% chance that a single bottle of soda contains more than 32oz.”

Page 110: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.110Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 9.1(b)…

The foreman of a bottling plant has observed that the amount of soda in each “32-ounce” bottle is actually a normally distributed random variable, with a mean of 32.2 ounces and a standard deviation of .3 ounce.

If a customer buys a carton of four bottles, what is the probability that the mean amount of the four bottles will be greater than 32 ounces?

Page 111: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.111Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 9.1(b)…

We want to find P(X > 32), where X is normally distributed

with =32.2 and =.3

Things we know:

1) X is normally distributed, therefore so will X.

2) = 32.2 oz.

3)

Page 112: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.112Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 9.1(b)…

If a customer buys a carton of four bottles, what is the probability that the mean amount of the four bottles will be greater than 32 ounces?

“There is about a 91% chance the mean of the four bottles will exceed 32oz.”

Page 113: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.113Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Graphically Speaking…

what is the probability that one bottle will contain more than 32

ounces?

what is the probability that the mean of four bottles will exceed 32

oz?

mean=32.2

Page 114: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.114Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution: Difference of two meansThe final sampling distribution introduced is that of the difference between two sample means. This requires:

independent random samples be drawn from each of two normal populations

If this condition is met, then the sampling distribution of the difference between the two sample means, i.e.will be normally distributed.(note: if the two populations are not both normally distributed, but the sample sizes are “large” (>30), the distribution of is approximately normal)

Page 115: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.115Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution: Difference of two meansThe expected value and variance of the sampling distribution of are given by:

mean:

standard deviation:

(also called the standard error if the difference between two means)

Page 116: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.116Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Estimation…

There are two types of inference: estimation and hypothesis testing; estimation is introduced first.

The objective of estimation is to determine the approximate value of a population parameter on the basis of a sample statistic.

E.g., the sample mean ( ) is employed to estimate the population mean ( ).

Page 117: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.117Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Estimation…

The objective of estimation is to determine the approximate value of a population parameter on the basis of a sample statistic.

There are two types of estimators:

Point Estimator

Interval Estimator

Page 118: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.118Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Point & Interval Estimation…

For example, suppose we want to estimate the mean summer income of a class of business students. For n=25 students,

is calculated to be 400 $/week.

point estimate interval estimate

An alternative statement is:

The mean income is between 380 and 420 $/week.

Page 119: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.119Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Estimating when is known…We established in Chapter 9:

Thus, the probability that the interval:

contains the population mean is 1– . This is a confidence interval estimator for .

the sample mean is in the center of

the interval…

the confidence interval

Page 120: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.120Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Four commonly used confidence levels…Confidence Level

cut & keep handy!

Table 10.1

Page 121: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.121Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.1…

A computer company samples demand during lead time over 25 time periods:

Its is known that the standard deviation of demand over lead time is 75 computers. We want to estimate the mean demand over lead time with 95% confidence in order to set inventory levels…

235 374 309 499 253421 361 514 462 369394 439 348 344 330261 374 302 466 535386 316 296 332 334

Page 122: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.122Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.1…In order to use our confidence interval estimator, we need the following pieces of data:

therefore:

The lower and upper confidence limits are 340.76 and 399.56.

370.16

1.96

75

n 25 Given

Calculated from the data…

CALCULATE

Page 123: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.123Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.1…The estimation for the mean demand during lead time lies between 340.76 and 399.56 — we can use this as input in developing an inventory policy.

That is, we estimated that the mean demand during lead time falls between 340.76 and 399.56, and this type of estimator is correct 95% of the time. That also means that 5% of the time the estimator will be incorrect.

Incidentally, the media often refer to the 95% figure as “19 times out of 20,” which emphasizes the long-run aspect of the confidence level.

INTERPRET

Page 124: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.124Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interval Width…

A wide interval provides little information.

For example, suppose we estimate with 95% confidence that an accountant’s average starting salary is between $15,000 and $100,000.

Contrast this with: a 95% confidence interval estimate of starting salaries between $42,000 and $45,000.

The second estimate is much narrower, providing accounting students more precise information about starting salaries.

Page 125: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.125Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interval Width…

The width of the confidence interval estimate is a function of the confidence level, the population standard deviation, and the sample size…

Page 126: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.126Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Selecting the Sample Size…

We can control the width of the interval by determining the sample size necessary to produce narrow intervals.

Suppose we want to estimate the mean demand “to within 5 units”; i.e. we want to the interval estimate to be:

Since:

It follows that

Solve for n to get requisite sample size!

Page 127: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.127Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Selecting the Sample Size…

Solving the equation…

that is, to produce a 95% confidence interval estimate of the mean (±5 units), we need to sample 865 lead time periods (vs. the 25 data points we have currently).

Page 128: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.128Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sample Size to Estimate a Mean…

The general formula for the sample size needed to estimate a population mean with an interval estimate of:

Requires a sample size of at least this large:

Page 129: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.129Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.2…

A lumber company must estimate the mean diameter of trees to determine whether or not there is sufficient lumber to harvest an area of forest. They need to estimate this to within 1 inch at a confidence level of 99%. The tree diameters are normally distributed with a standard deviation of 6 inches.

How many trees need to be sampled?

Page 130: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.130Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.2…Things we know:

Confidence level = 99%, therefore =.01

We want , hence W=1.We are given that = 6.

1

Page 131: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.131Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 10.2…

We compute…

That is, we will need to sample at least 239 trees to have a

99% confidence interval of 1

Page 132: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.132Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonstatistical Hypothesis Testing…

A criminal trial is an example of hypothesis testing without the statistics.

In a trial a jury must decide between two hypotheses. The null hypothesis is

H0: The defendant is innocent

The alternative hypothesis or research hypothesis is

H1: The defendant is guilty

The jury does not know which hypothesis is true. They must make a decision on the basis of evidence presented.

Page 133: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.133Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonstatistical Hypothesis Testing…

There are two possible errors.

A Type I error occurs when we reject a true null hypothesis. That is, a Type I error occurs when the jury convicts an innocent person.

A Type II error occurs when we don’t reject a false null hypothesis. That occurs when a guilty defendant is acquitted.

Page 134: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.134Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonstatistical Hypothesis Testing…

The probability of a Type I error is denoted as α (Greek letter alpha). The probability of a type II error is β (Greek letter beta).

The two probabilities are inversely related. Decreasing one increases the other.

Page 135: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.135Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonstatistical Hypothesis Testing…

The critical concepts are theses:

1. There are two hypotheses, the null and the alternative hypotheses.

2. The procedure begins with the assumption that the null hypothesis is true.

3. The goal is to determine whether there is enough evidence to infer that the alternative hypothesis is true.

4. There are two possible decisions:

Conclude that there is enough evidence to support the alternative hypothesis.

Conclude that there is not enough evidence to support the alternative hypothesis.

Page 136: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.136Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Nonstatistical Hypothesis Testing…

5. Two possible errors can be made.

Type I error: Reject a true null hypothesis

Type II error: Do not reject a false null hypothesis.

P(Type I error) = α

P(Type II error) = β

Page 137: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.137Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Concepts of Hypothesis Testing (1)…

There are two hypotheses. One is called the null hypothesis and the other the alternative or research hypothesis. The usual notation is:

H0: — the ‘null’ hypothesis

H1: — the ‘alternative’ or ‘research’ hypothesis

The null hypothesis (H0) will always state that the parameter equals the value specified in the alternative hypothesis (H1)

pronounced

H “nought”

Page 138: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.138Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Concepts of Hypothesis Testing…

Consider Example 10.1 (mean demand for computers during assembly lead time) again. Rather than estimate the mean demand, our operations manager wants to know whether the mean is different from 350 units. We can rephrase this request into a test of the hypothesis:

H0: μ = 350

Thus, our research hypothesis becomes:

H1: μ ≠ 350 This is what we are interested in

determining…

Page 139: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.139Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Concepts of Hypothesis Testing (4)…There are two possible decisions that can be made:

Conclude that there is enough evidence to support the alternative hypothesis(also stated as: rejecting the null hypothesis in favor of the alternative)

Conclude that there is not enough evidence to support the alternative hypothesis(also stated as: not rejecting the null hypothesis in favor of the alternative)NOTE: we do not say that we accept the null hypothesis…

Page 140: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.140Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Concepts of Hypothesis Testing…

Once the null and alternative hypotheses are stated, the next step is to randomly sample the population and calculate a test statistic (in this example, the sample mean).

If the test statistic’s value is inconsistent with the null hypothesis we reject the null hypothesis and infer that the alternative hypothesis is true.

For example, if we’re trying to decide whether the mean is not equal to 350, a large value of (say, 600) would provide enough evidence. If is close to 350 (say, 355) we could not say that this provides a great deal of evidence to infer that the population mean is different than 350.

Page 141: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.141Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Types of Errors…

A Type I error occurs when we reject a true null hypothesis (i.e. Reject H0 when it is TRUE)

A Type II error occurs when we don’t reject a false null hypothesis (i.e. Do NOT reject H0 when it is FALSE)

H0 T F

Reject I

Reject II

Page 142: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.142Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Recap I…

1) Two hypotheses: H0 & H1

2) ASSUME H0 is TRUE3) GOAL: determine if there is enough evidence to infer that

H1 is TRUE4) Two possible decisions:

Reject H0 in favor of H1

NOT Reject H0 in favor of H1

5) Two possible types of errors:

Type I: reject a true H0 [P(Type I)= ]

Type II: not reject a false H0 [P(Type II)= ]

Page 143: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.143Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…

A department store manager determines that a new billing system will be cost-effective only if the mean monthly account is more than $170.

A random sample of 400 monthly accounts is drawn, for which the sample mean is $178. The accounts are approximately normally distributed with a standard deviation of $65.

Can we conclude that the new system will be cost-effective?

Page 144: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.144Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…

The system will be cost effective if the mean account balance for all customers is greater than $170.

We express this belief as a our research hypothesis, that is:

H1: > 170 (this is what we want to determine)

Thus, our null hypothesis becomes:

H0: = 170 (this specifies a single value for the parameter of interest)

Page 145: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.145Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…

What we want to show:

H1: > 170

H0: = 170 (we’ll assume this is true)

We know:

n = 400,

= 178, and

= 65

Hmm. What to do next?!

Page 146: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.146Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…

To test our hypotheses, we can use two different approaches:

The rejection region approach (typically used when computing statistics manually), and

The p-value approach (which is generally used with a computer and statistical software).

We will explore both in turn…

Page 147: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.147Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1… Rejection Region…

The rejection region is a range of values such that if the test statistic falls into that range, we decide to reject the null hypothesis in favor of the alternative hypothesis.

is the critical value of to reject H0.

Page 148: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.148Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…

All that’s left to do is calculate and compare it to 170.

we can calculate this based on any level of significance ( ) we want…

Page 149: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.149Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1…At a 5% significance level (i.e. =0.05), we get

Solving we compute =175.34

Since our sample mean (178) is greater than the critical value we calculated (175.34), we reject the null hypothesis in favor of H1, i.e. that: > 170 and that it is cost effective to install the new billing system

Page 150: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.150Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.1… The Big Picture…

=175.34

=178

H1: > 170

H0: = 170

Reject H0 in favor of

Page 151: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.151Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Standardized Test Statistic…

An easier method is to use the standardized test statistic:

and compare its result to : (rejection region: z > )

Since z = 2.46 > 1.645 (z.05), we reject H0 in favor of H1…

Page 152: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.152Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

PLOT POWER CURVE

Page 153: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.153Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

p-Value

The p-value of a test is the probability of observing a test statistic at least as extreme as the one computed given that the null hypothesis is true.

In the case of our department store example, what is the probability of observing a sample mean at least as extreme as the one already observed (i.e. = 178), given that the null hypothesis (H0: = 170) is true?

p-value

Page 154: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.154Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interpreting the p-value…The smaller the p-value, the more statistical evidence exists to support the alternative hypothesis.•If the p-value is less than 1%, there is overwhelming evidence that supports the alternative hypothesis.•If the p-value is between 1% and 5%, there is a strong evidence that supports the alternative hypothesis.•If the p-value is between 5% and 10% there is a weak evidence that supports the alternative hypothesis.•If the p-value exceeds 10%, there is no evidence that supports the alternative hypothesis.We observe a p-value of .0069, hence there is overwhelming evidence to support H1: > 170.

Page 155: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.155Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Interpreting the p-value…

Compare the p-value with the selected value of the significance level:

If the p-value is less than , we judge the p-value to be small enough to reject the null hypothesis.

If the p-value is greater than , we do not reject the null hypothesis.

Since p-value = .0069 < = .05, we reject H0 in favor of H1

Page 156: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.156Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chapter-Opening Example…

The objective of the study is to draw a conclusion about the mean payment period. Thus, the parameter to be tested is the population mean. We want to know whether there is enough statistical evidence to show that the population mean is less than 22 days. Thus, the alternative hypothesis is

H1:μ < 22

The null hypothesis is

H0:μ = 22

Page 157: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.157Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chapter-Opening Example…

The test statistic is

We wish to reject the null hypothesis in favor of the alternative only if the sample mean and hence the value of the test statistic is small enough. As a result we locate the rejection region in the left tail of the sampling distribution.

We set the significance level at 10%.

n

xz

/

Page 158: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.158Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chapter-Opening Example…

Rejection region:

From the data in SSA we compute

and

p-value = P(Z < -.91) = .5 - .3186 = .1814

28.110. zzz

63.21220

759,4

220 ix

x

91.220/6

2263.21

/

n

xz

Page 159: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.159Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Chapter-Opening Example…

Conclusion: There is not enough evidence to infer that the mean is less than 22.

There is not enough evidence to infer that the plan will be profitable.

Since Z(- .91) > -Z.10(-1.28)

We fail to reject Ho: μ > 22 at a 10% level of significance.

Page 160: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.160Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

PLOT POWER CURVE

Page 161: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.161Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Right-Tail Testing…

Calculate the critical value of the mean ( ) and compare against the observed value of the sample mean ( )…

Page 162: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.162Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Left-Tail Testing…

Calculate the critical value of the mean ( ) and compare against the observed value of the sample mean ( )…

Page 163: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.163Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Two–Tail Testing…

Two tail testing is used when we want to test a research hypothesis that a parameter is not equal (≠) to some value

Page 164: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.164Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.2…

AT&T’s argues that its rates are such that customers won’t see a difference in their phone bills between them and their competitors. They calculate the mean and standard deviation for all their customers at $17.09 and $3.87 (respectively).

They then sample 100 customers at random and recalculate a monthly phone bill based on competitor’s rates.

What we want to show is whether or not:

H1: ≠ 17.09. We do this by assuming that:

H0: = 17.09

Page 165: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.165Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.2…

The rejection region is set up so we can reject the null hypothesis when the test statistic is large or when it is small.

That is, we set up a two-tail rejection region. The total area in the rejection region must sum to , so we divide this probability by 2.

stat is “small” stat is “large”

Page 166: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.166Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.2…

At a 5% significance level (i.e. = .05), we have

/2 = .025. Thus, z.025 = 1.96 and our rejection region is:

z < –1.96 -or- z > 1.96

z-z.025 +z.0250

Page 167: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.167Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 11.2…

From the data, we calculate = 17.55

Using our standardized test statistic:

We find that:

Since z = 1.19 is not greater than 1.96, nor less than –1.96 we cannot reject the null hypothesis in favor of H1. That is “there is insufficient evidence to infer that there is a difference between the bills of AT&T and the competitor.”

Page 168: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.168Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

PLOT POWER CURVE

Page 169: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.169Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Summary of One- and Two-Tail Tests…

One-Tail Test(left tail)

Two-Tail Test One-Tail Test(right tail)

Page 170: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.170Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Inference About A Population…[SIGMA UNKNOWN]

We will develop techniques to estimate and test three population parameters:

Population Mean

Population Variance

Population Proportion p

Parameter

Population

Sample

Statistic

Inference

Page 171: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.171Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Inference With Variance Unknown…

Previously, we looked at estimating and testing the population mean when the population standard deviation ( ) was known or given:

But how often do we know the actual population variance?

Instead, we use the Student t-statistic, given by:

Page 172: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.172Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Testing when is unknown…

When the population standard deviation is unknown and the population is normal, the test statistic for testing hypotheses about is:

which is Student t distributed with = n–1 degrees of freedom. The confidence interval estimator of is given by:

Page 173: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.173Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.1…

Will new workers achieve 90% of the level of experienced workers within one week of being hired and trained?

Experienced workers can process 500 packages/hour, thus if our conjecture is correct, we expect new workers to be able to process .90(500) = 450 packages per hour.

Given the data, is this the case?

Page 174: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.174Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.1…

Our objective is to describe the population of the numbers of packages processed in 1 hour by new workers, that is we want to know whether the new workers’ productivity is more than 90% of that of experienced workers. Thus we have:

H1: > 450

Therefore we set our usual null hypothesis to:

H0: = 450

IDENTIFY

Page 175: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.175Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.1…

Our test statistic is:

With n=50 data points, we have n–1=49 degrees of freedom. Our hypothesis under question is:

H1: > 450

Our rejection region becomes:

Thus we will reject the null hypothesis in favor of the alternative if our calculated test static falls in this region.

COMPUTE

Page 176: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.176Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.1…

From the data, we calculate = 460.38, s =38.83 and thus:

Since

we reject H0 in favor of H1, that is, there is sufficient evidence to conclude that the new workers are producing at more than 90% of the average of experienced workers.

COMPUTE

Page 177: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.177Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.2…

Can we estimate the return on investment for companies that won quality awards?

We are given a random sample of n = 83 such companies. We want to construct a 95% confidence interval for the mean return, i.e. what is: ??

IDENTIFY

Page 178: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.178Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.2…From the data, we calculate:

For this term

and so:

COMPUTE

Page 179: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.179Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Check Requisite Conditions…

The Student t distribution is robust, which means that if the population is nonnormal, the results of the t-test and confidence interval estimate are still valid provided that the population is “not extremely nonnormal”.

To check this requirement, draw a histogram of the data and see how “bell shaped” the resulting figure is. If a histogram is extremely skewed (say in the case of an exponential distribution), that could be considered “extremely nonnormal” and hence t-statistics would be not be valid in this case.

Page 180: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.180Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Inference About Population Variance…If we are interested in drawing inferences about a population’s variability, the parameter we need to investigate is the population variance:

The sample variance (s2) is an unbiased, consistent and efficient point estimator for . Moreover,

the statistic, , has a chi-squared distribution,

with n–1 degrees of freedom.

Page 181: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.181Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Testing & Estimating Population VarianceCombining this statistic:

With the probability statement:

Yields the confidence interval estimator for :

lower confidence limit

upper confidence limit

Page 182: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.182Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.3…

Consider a container filling machine. Management wants a machine to fill 1 liter (1,000 cc’s) so that that variance of the fills is less than 1 cc2. A random sample of n=25 1 liter fills were taken. Does the machine perform as it should at the 5% significance level?

We want to show that:

H1: < 1

(so our null hypothesis becomes: H0: = 1). We will use this test statistic:

Variance is less than 1 cc2

IDENTIFY

Page 183: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.183Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.3…

Since our alternative hypothesis is phrased as:

H1: < 1

We will reject H0 in favor of H1 if our test statistic falls into this rejection region:

We computer the sample variance to be: s2=.8088

And thus our test statistic takes on this value…

COMPUTE

com

pare

Page 184: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.184Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.4…

As we saw, we cannot reject the null hypothesis in favor of the alternative. That is, there is not enough evidence to infer that the claim is true.

Note: the result does not say that the variance is greater than 1, rather it merely states that we are unable to show that the variance is less than 1.

We could estimate (at 99% confidence say) the variance of the fills…

Page 185: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.185Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 12.4…

In order to create a confidence interval estimate of the variance, we need these formulae:

we know (n–1)s2 = 19.41 from our previous calculation, and we have from Table 5 in Appendix B:

COMPUTE

lower confidence limit

upper confidence limit

Page 186: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.186Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Comparing Two Populations…

Previously we looked at techniques to estimate and test parameters for one population:

Population Mean , Population Variance

We will still consider these parameters when we are looking at two populations, however our interest will now be:

The difference between two means.

The ratio of two variances.

Page 187: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.187Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Difference of Two Means…

In order to test and estimate the difference between two population means, we draw random samples from each of two populations. Initially, we will consider independent samples, that is, samples that are completely unrelated to one another.

Because we are compare two population means, we use the statistic:

Page 188: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.188Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Sampling Distribution of

1. is normally distributed if the original populations are normal –or– approximately normal if the populations are nonnormal and the sample sizes are large (n1, n2 > 30)

2. The expected value of is

3. The variance of is

and the standard error is:

Page 189: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.189Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Making Inferences About

Since is normally distributed if the original populations are normal –or– approximately normal if the populations are nonnormal and the sample sizes are large (n1, n2 > 30), then:

is a standard normal (or approximately normal) random variable. We could use this to build test statistics or confidence interval estimators for …

Page 190: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.190Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Making Inferences About

…except that, in practice, the z statistic is rarely used since the population variances are unknown.

Instead we use a t-statistic. We consider two cases for the unknown population variances: when we believe they are equal and conversely when they are not equal.

??

Page 191: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.191Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

When are variances equal?

How do we know when the population variances are equal?

Since the population variances are unknown, we can’t know for certain whether they’re equal, but we can examine the sample variances and informally judge their relative values to determine whether we can assume that the population variances are equal or not.

Page 192: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.192Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Test Statistic for (equal variances) 1) Calculate – the pooled variance estimator as…

2) …and use it here:

degrees of freedom

Page 193: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.193Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

CI Estimator for (equal variances) The confidence interval estimator for when the

population variances are equal is given by:

degrees of freedompooled variance estimator

Page 194: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.194Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Test Statistic for (unequal variances) The test statistic for when the population variances

are unequal is given by:

Likewise, the confidence interval estimator is:

degrees of freedom

Page 195: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.195Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

Two methods are being tested for assembling office chairs. Assembly times are recorded (25 times for each method). At a 5% significance level, do the assembly times for the two methods differ?

That is, H1:

Hence, our null hypothesis becomes: H0:

Reminder: This is a two-tailed test.

IDENTIFY

Page 196: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.196Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

The assembly times for each of the two methods are recorded and preliminary data is prepared…

COMPUTE

The sample variances are similar, hence we will assume that the population variances are equal…

Page 197: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.197Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

Recall, we are doing a two-tailed test, hence the rejection region will be:

The number of degrees of freedom is:

Hence our critical values of t (and our rejection region) becomes:

COMPUTE

Page 198: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.198Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

In order to calculate our t-statistic, we need to first calculate the pooled variance estimator, followed by the t-statistic…

COMPUTE

Page 199: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.199Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

Since our calculated t-statistic does not fall into the rejection region, we cannot reject H0 in favor of H1, that is, there is not sufficient evidence to infer that the mean assembly times differ.

INTERPRET

Page 200: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.200Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.2…

Excel, of course, also provides us with the information…

INTERPRET

Compare…

…or look at p-value

Page 201: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.201Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Confidence Interval…

We can compute a 95% confidence interval estimate for the difference in mean assembly times as:

That is, we estimate the mean difference between the two assembly methods between –.36 and .96 minutes. Note: zero is included in this confidence interval…

Page 202: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.202Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Matched Pairs Experiment…

Previously when comparing two populations, we examined independent samples.

If, however, an observation in one sample is matched with an observation in a second sample, this is called a matched pairs experiment.

To help understand this concept, let’s consider example 13.4

Page 203: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.203Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Identifying Factors…

Factors that identify the t-test and estimator of :

Page 204: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.204Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Inference about the ratio of two variancesSo far we’ve looked at comparing measures of central location, namely the mean of two populations.

When looking at two population variances, we consider the ratio of the variances, i.e. the parameter of interest to us is:

The sampling statistic: is F distributed with

degrees of freedom.

Page 205: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.205Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Inference about the ratio of two variancesOur null hypothesis is always:

H0:

(i.e. the variances of the two populations will be equal, hence their ratio will be one)

Therefore, our statistic simplifies to:

df1 = n1 - 1

df2 = n2 - 1

Page 206: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.206Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.6…

In example 13.1, we looked at the variances of the samples of people who consumed high fiber cereal and those who did not and assumed they were not equal. We can use the ideas just developed to test if this is in fact the case.

We want to show: H1:

(the variances are not equal to each other)

Hence we have our null hypothesis: H0:

IDENTIFY

Page 207: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.207Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.6…

Since our research hypothesis is: H1:

We are doing a two-tailed test, and our rejection region is:

CALCULATE

F

Page 208: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.208Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.6…

Our test statistic is:

Hence there is sufficient evidence to reject the null hypothesis in favor of the alternative; that is, there is a difference in the variance between the two populations.

CALCULATE

F.58 1.61

Page 209: Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 1.1 What is Statistics? “Statistics is a way to get information from data” Data Statistics

1.209Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc.

Example 13.6…

We may need to work with the Excel output before drawing conclusions…

INTERPRET

Our research hypothesisH1:requires two-tail testing, but Excel only gives us valuesfor one-tail testing…

If we double the one-tail p-value Excel gives us, we have the p-value ofthe test we’re conducting (i.e. 2 x 0.0004 = 0.0008). Refer to the text and CD Appendices for more detail.