Stat 191 Final Exam
Due: March 19 12 P.M. Please submit paper copy to my soce.
Instructions: There are 4 problems, please submit each problem on
separate sheet(s) and put your name on each sheet. Please turn in all of
your R code and R output. Submit only
Lecture 5: Multiple Linear Regression, ANOVA
Nancy R. Zhang
Statistics 191, Stanford University
January 28, 2008
Nancy R. Zhang (Statistics 191)
Lecture 4
January 28, 2008
1 / 25
Announcements
Homework 1 Due today, solutions will be up tomorrow noon.
Home
Lecture 11: PCA, Model Selection
Nancy R. Zhang
Statistics 191, Stanford University
February 25, 2008
Nancy R. Zhang (Statistics 191)
Lecture 11
February 25, 2008
1 / 19
European Jobs Data
Percentage of jobs for 26
European countries in following
industri
Lecture 9: Weighted Regression and Principal
Components
Nancy R. Zhang
Statistics 191, Stanford University
February 20, 2008
Nancy R. Zhang (Statistics 191)
Lecture 9
February 20, 2008
1 / 23
Announcements
1
Midterms graded.
2
Pantipas ofce hour is this F
Lecture 12: Model and Variable Selection
Nancy R. Zhang
Statistics 191, Stanford University
February 27, 2008
Nancy R. Zhang (Statistics 191)
Lecture 12
February 27, 2008
1 / 19
Estimating the prediction error
1
Asymptotic approximations for EPE.
Mallows
Lecture 13: LARS, Logistic Regression
Nancy R. Zhang
Statistics 191, Stanford University
March 3, 2008
Nancy R. Zhang (Statistics 191)
Lecture 13
March 3, 2008
1 / 27
Announcements
Homework 3 due.
Homework 4 is on the web. Due March 12. Solutions will be
Lecture 15: Logistic and Poisson Regression
Nancy R. Zhang
Statistics 191, Stanford University
March 10, 2008
Nancy R. Zhang (Statistics 191)
Lecture 15
March 10, 2008
1 / 17
Review - Binary responses model
Model:
Y cfw_0, 1,
P(Y = 1|X1 , . . . , Xp ) = g
Stat 191 Syllabus
1. Course Description
This course introduces statistical regression models with an applied focus.
Students will learn the basic concepts behind basic linear and nonlinear
statistical models, and apply them to the analysis of real data se
Chapters Eleven and Twelve
Hypothesis Testing
Whats a Hypothesis?
It is a Belief about a
Population Parameter
Parameter Is Population
Mean, Proportion,
Variance
Hypothesis Must
Be Stated
Before Analysis
I believe that the mean
score of this class in th
Lecture 3: Inference and Diagnostics for Simple
Linear Regression
Nancy R. Zhang
Statistics 191, Stanford University
January 16, 2008
Nancy R. Zhang (Statistics 191)
Lecture 3
January 16, 2008
1 / 31
Distribution of
Regression line parameters: (0 , 1 )
1
Lecture 14: Weighted Least Squares
Nancy R. Zhang
Statistics 191, Stanford University
March 5, 2008
Nancy R. Zhang (Statistics 191)
Lecture 14
March 5, 2008
1 / 25
Review - Binary responses data example
A clinic sent iers to its
clients to encourage
every
STAT 191: INTRO TO APPLIED STATISTICS
Lecture 2: Simple Linear Regression
Nancy R. Zhang
Statistics 191, Stanford University
January 30, 2008
Nancy R. Zhang (Statistics 191)
Lecture 2
January 30, 2008
1 / 19
Announcements
Course Website: http:/www-stat.st
Lecture 8: Variable Transformations
Nancy R. Zhang
Statistics 191, Stanford University
February 6, 2008
Nancy R. Zhang (Statistics 191)
Lecture 8
February 6, 2008
1 / 17
Announcements
Homework 1 Graded.
Grading questions: This week only Sunny Kim OH Thus
Lecture 4: Multiple Linear Regression
Nancy R. Zhang
Statistics 191, Stanford University
January 23, 2008
Nancy R. Zhang (Statistics 191)
Lecture 4
January 23, 2008
1 / 24
How does land use affect river pollution?
Nitrogen = 0 + 1 Agr + 2 Forest + 3 Rsdnt
STAT 191: INTRO TO APPLIED STATISTICS
Lecture 1: Introduction and Review
Nancy R. Zhang
Statistics 191, Stanford University
January 9, 2008
Nancy R. Zhang (Statistics 191)
Lecture 1
January 9, 2008
1 / 17
Topics outline:
The goal of this course is to equi
Lecture 7: Random Effect Models
Nancy R. Zhang
Statistics 191, Stanford University
February 4, 2008
Nancy R. Zhang (Statistics 191)
Lecture 7
February 4, 2008
1 / 17
Announcements
This week: Random effect models, variable transformations.
Next Wednesday:
Lecture 4: Fixed and Random Effect ANOVA
Nancy R. Zhang
Statistics 191, Stanford University
January 24, 2007
Nancy R. Zhang (Statistics 191)
Lecture 4
January 24, 2007
1 / 18
Example
Setting: Personnel
management in a large
enterprise.
Question: Does the
A Brief Introduction to R
Jun Li
Dept. of Statistics, Stanford Univ.
What is R
A software & a dialect of the S language
A system for statistical analysis and
graphics
Works in various OS.
Free (under GNU General Public Licence)
An interpreted languag
3-way tables: Types of Interaction
Alcohol
Use
Yes
No
Cigarette
Use
Yes
No
Yes
No
Marijuana Use
Yes
No
911
538
44
456
3
43
2
279
Yijk Poisson(ijk )
Conditioned on total (N) Yijk Multinom(N, ijk ).
.
1
Saturated Model.
log ijk = + A + C + M + AC + AM + CM
Principles of Statistics (2)
English section
Sheet 4
Sampling Distributions
State if the following statement is true or false. Justifying your answer
:if the statement is false
If the population was normally distributed then the mean of the sample drawn f