1. A consumer is interested in comparing prices among 3 grocery store chains in his city. He
randomly samples 8 branded products and obtains the regular price of each product at each
store. He finds that between store variation accounts for 20% of the tot
One Way ANOVA
DF
SS
MS
F
P
Between
G1
SSB
SSB/DFB
MSB/MSE

Within
(Error)
NG
SSE
SSE/DFE
N1
SST
Source
Total
G = Number of groups
N = Sample size
Two Way ANOVA
DF
SS
MS
F
P
A
R1
SSA
SSA/DFR
MSR/MSE

B
C1
SSB
SSB/DFR
MSC/MSE

A*B
(R1) * (C1)
SSAB
Using R for Linear Regression
1. To make sure our results are always the same, type the command set.seed(2008).
2. We want to use a data set that is already stored in R. To see the data set, simply type the
command Loblolly. If you scroll up to the top of
Correlation and Simple
Linear regression
Patrick Hardigan, Ph.D.
Correlation
A statistical technique to show you
how strongly pairs are related.
Ranges from 1.0 to 1.0
If r is close to 0, it means there is
no relationship between the
variables.
If r is p
I n d i a n a U n i v e r s i t y
University Information Technology Services
Comparing Group Means: Ttests and Oneway ANOVA
Using Stata, SAS, R, and SPSS*
Hun Myoung Park, Ph.D.
[email protected]
20032009
Last modified on August 2009
University Info
We wish to know if Distance in an airline flight can predict the Fare paid for the ticket. That
is, as the distance increases does the fare increase. Using the airline data set answer the
following questions.
1) Descriptive Statistics  Calculate and repo