@
101B Winter 2013 / Esfandiari
Sample Midtern
Question one. Given the following plots, do you recommend conducting. simple linear
regression for prediction of the number of rooms cleaned from the number of crews? If
yes, explain Why and if not explain Wh
1
Lecture seven
Hat Matrix and Leverage Continued
Professor Esfandiari
The objective of this part of the lecture is to clarify
hii and h ij by referring to the article by Hoaglin, et
l on The Hat Matrix in Regression and ANOVA
pub
!
"!
Statistics 101B
Week eight, Session two
Professor Esfandiari
The objective of this part of the lecture is to revisit variance inflation factor
resulting from multi-collinearity and discuss how this problem can be dealt
with.
As we discussed last time
Stat 101A
Exercise five- Answers Summer 16
Professor Esfandiari
Problem one. Download the data called nyc.csv posted on week four of CCLE to R.
a) Identify the variables in the data set and determine which ones are numerical
and which ones are categorical
Stat 101A
In-class exercise four Professor Esfandiari
The following formula is used for calculation of leverage
1 ( x x)
hii n i
SXX
2
The following is the formula for residual
^
r
i
e
i
S
e
1 hii
Given the following data
Data set one
X1
Y1
4
7
9
11
15
17
Article Two Answers
Questions to be answered about article two
Title of the article. Effects of Goal-Striving Stress on the
Mental Health of Black Americans
Question One. Identify the independent and dependent variables in model
2a. in Table 3. Which ones
Stat 101A What you need to know for the final
Professor Esfandiari
Summer 16
The majority of the final (70%) will be about the material we
covered after the midterm. You need to be familiar with the
following concepts and methods.
1. Multiple linear regre
Stat 101A Professor Esfandiari
Homework three Summer 16
Question one. Using the diversity data posted on week five of CCLE, perform the
following:
Part one question one
a) Conduct AOVA to ex
Stat 101A
Exercise five- Summer 16
Professor Esfandiari
Problem one. Download the data called nyc.csv posted on week four of CCLE to R.
a) Identify the variables in the data set and determine
Stat 101A
Summer 16 Professor Esfandiari
Homework Two
Part I : Problems one to three not assigned from the book
Problem one.
a) Run a linear model to predict peak heart rate during stress echo from
base heart rate.
> m1<-lm(pkhr~bhr)
> summary(m1)
Call:
l
Stat 101A
In-class exercise four Professor Esfandiari
The following formula is used for calculation of leverage
hii =
!
1 ( xi x)
+
n
SXX
2
The following is the formula for residual
^
ri =
e
i
S
!
e
1 hii
Given the following data
Data set one
X1
Y1
Data s
1
Statistics 101A
Multiple Linear Regression, Covariate, and Interaction Terms
Professor Esfandiari/Week 10
In this lecture, we are going to discuss the role of a quantitative
covariate and interaction term
1
Stat 101A
In-class exercise two week one summer 16
Professor Esfandiari
Question one. Answer the following questions about this plot?
What do the black dots show?
They show the actual Y scores.
What does 1.03 show and how do you interpret it within
Statistics 101B
Cross Validation in R
Professor Esfandiari
Example
We will randomly divide the hsb2 data set into two
parts (the training sample and the testing sample).
We will create a regression model based on the
training sample .
We will use the r
!
"!
!
!
!
!
!
"#$#%&#%'&!()(*!
!
!
!
!
+,-!.%.,!",&%/.!/.,!
!
!
!
!
01/2,&/1!3&2$.4$%1%!
!
!
The objective of this lecture is to review the major concepts that we have discussed after
the midterm and relate them to what you want to do for your project
\
!
"!
Statistics 101B
Week four Lecture Three
Professor Esfandiari
The objective of this lecture is to give you an overall view of multiple linear regression.
We will be discussing the mathematical underpinnings in the future lectures.
Linear Model for mul
Statistics 101A
Answers to homework three
Professor Esfandiari Summer 16
Question one. Using the diversity data posted on week five of CCLE, perform the
following:
Part one question one
a) Conduct AOVA to examine the relationship between UCLA students
per
Stat 101A
In-class exercise four Professor Esfandiari
The following formula is used for calculation of leverage
!
1 ( x x)
hii = n + i
SXX
2
The following is the formula for residual
^
!
r
i
=
e
i
S
e
1 hii
Given the following data
Data set one
X1
Y1
Data
1
Stat 101A- Homework four
Professor Esfandiari Summer 16
Problem one. Using hsb2 data, create the best model for the following
outcome and predictors using the backward, forward, and stepwise
selection.
Outcome variable = science
Potential predictors = r
!
!
"!
!
!
Statistics 101B
Week six, Lecture one
Professor Esfandiari
The objective of this lecture is to use linear transformations
to overcome problems due to non-constant variance
We will try to accomplish this objective by going
through two examples o
!1
Stat 101A- Homework four
Professor Esfandiari Summer 16
Problem one. Using hsb2 data, create the best model for the following outcome
and predictors using the backward, forward, and stepwise selection.
Outcome variable = science
Potential predictors =
Stat 101A
In-class exercise four Professor Esfandiari
The following formula is used for calculation of leverage
hii
1 ( xi x)
n
SXX
2
The following is the formula for residual
^
r
i
e
i
S
e
1 hii
Given the following data
Data set one
X1
Y1
4
7
9
11
15
17
Stat 101A What you need to know for the final
Professor Esfandiari
Summer 16
The majority of the final (70%) will be about the material we
covered after the midterm. You need to be familiar with the
following concepts and methods.
1. Multiple linear regre
Memorandum
To: Smith, Candidate
From: Yue Fei, Campaign Consultant
Date: 04/19/2015
Re: analysis of Virginia and Ohio political structure and Obama and Romneys media
campaign in 2012 Presidential Election
Election is always the most important event in pol
The title, The Struggle for Democracy, might mean that Americans still make efforts
to achieve higher level of democracy no matter what challenge they need to face.
Even though the United States is more democratic compared with other counties, it
is still
Summary: Obama spent 10 times as much on social media as Romney
In this video, the journalists, Lauren Ashburn and Howard Kurtz, and the
compere, Ray Suarez, discussed the importance of social media in the election.
As they mentioned, in 2012 president el