STA 303 H1S / 1002 HS Winter 2010
Test
February 25, 2010
LAST NAME:
SOLUTIONS
FIRST NAME:
STUDENT NUMBER:
ENROLLED IN: (circle one)
STA 303
STA 1002
INSTRUCTIONS:
Time: 90 minutes
Aids allowed: calc
STA 303/1002: Lecture 6 Intro
Recall: General Linear Model (GLM)
Response, Y is continuous
Categorical or continuous predictors, X
Y is linear in s
Assumptions: N(0, 2 I)
Recall: One-way ANOVA
Special
STA 303/1002: Lecture 7-Two-way classication contd
Recall: Case Study II-The Pygmalion eect
Two factors: Company , Treatment
Pygmalion eect- high expectations of a supervisor translate to
improved per
STA 303/1002: Lecture 5 Outline
Review- Multiple comparisons
Bonferroni
Tukeys
Diagnostics- checking model assumptions
Normality of errors
Constant variance
Uncorrelated errors
Case Study I Conclusion
STA 303/1002: Lecture 4 Outline
Recall- Case Study I questions
(Q1) One-way ANOVA with G=2
(Q2) One-way ANOVA with G=6
SAS demonstrations
Multiple comparisons: Bonferroni and Tukeys
Diagnostics- check
STA 303/1002: Lecture 2 Outline
Spocks Conspiracy Data Example continued
Recall Two-sample t-tests
Linear Model approach
Incorporating SAS
Case Study 1: The Spock Conspiracy Data Example
Recall:
(Q1)
STA303/1002-Lecture 3 Outline
The General Linear Model
One-Way ANOVA
Case Study I:
QuesDon 1: Comparing 2 groups
QuesDon 2: Comparing >2 groups
The General Linear
Lecture 23-Course Summary
What did we cover in our courseSTA 303: Methods of Data Analysis II?
1
Cases and Methods
Case
I
II
III
IV
V
VI
VII
VIII
Title
Spocks Trial
The Pygmalion Eect
The Donner Party
STA 303H1/1002H- Winter 2015
Dr. Shivon Sue-Chee
Lecture 1
January 6, 2015
Introduction to Data Analysis II
Use of linear models in which assumptions from STA302/1001
may not apply: 1- and 2- way ANOV
STA 303/1002: Lecture 22
Case Study VIII Example: Repeated measures / Mixed Model Diagnostics
What procedures do we use to:
Estimate parameters in a general linear mixed model?
Restricted Maximum like
STA 303/1002: Lecture 20- Repeated measures
What are repeated measures?
more than one observation per subject or experimental unit
Examples:
1. Measures on all members of a cluster (Eg. a family, a cl
STA 303/1002: Lecture 21
Longitudinally repeated measures using (linear) Mixed model (MM)
What are the components of a MM?
How do we estimate the parameters of a MM?
How do we t a MM in SAS?
Case Stud
STA 303/1002: Lecture 9-Generalized Linear Models
Case Study III: The Donner Party Example
Generalized Linear Models
What is a Generalized Linear Model?
Common link functions
What is Logistic Regressi
STA 303/1002: Lecture 10- Case Study III Analysis
Binary Logistic Regression Example
Case Study III: The Donner Party Example
Log Odds, Odds, Odds Ratio
SAS PROC LOGISTIC
Using Additive model
Next cla
STA 303/1002: Lecture 8-Case Study II to III
Two-way analysis of variance
Nested, Full and Reduced models
Means: observed, expected, estimated
In SAS: means vs lsmeans statement
Estimation methods: Le
STA 303 H1S / 1002 HS Winter 2011
Test
March 7, 2011
LAST NAME:
SOLUTIONS
FIRST NAME:
STUDENT NUMBER:
ENROLLED IN: (circle one)
STA 303
STA 1002
INSTRUCTIONS:
Time: 90 minutes
Aids allowed: calculat
UNIVERSITY OF TORONTO
Faculty of Arts and Science
APRIL 2010 EXAMINATIONS
STA 303 H1S / STA 1002 HS
Duration - 3 hours
Aids Allowed: Calculator
LAST NAME:
SOLUTIONS
FIRST NAME:
STUDENT NUMBER:
There
STA303H1S / 1002 HS Winter 2015 Assignment # 2
Who plays video games?
Due: By 13:00 on Thursday, March 26, 2015
No late assignments will be accepted without a valid reason.
Grading: Presentation of so
STA 303H1S / 1002 HS -Winter 2015 Assignment # 1
What factors aect baby birth weight?
Due: In class by 11:00 on Thursday, February 5, 2015.
No late assignments will be accepted without a valid reason.
University of Toronto
Department of Statistical Sciences
STA 303H1S / 1002 HS Winter 2015
Midterm Test- SOLUTIONS
February 24, 2015
Duration- 90 minutes
Last Name: _
First Name:_
Student Number:_
Sect
STA303H1S/1002HSAssignment#1SolutionsWinter2015
1.
Theboxplotsbelowshowbabybirthweightforbabieswhosemothersmokedduringpregnancy
and those whose mothers did smoke during pregnancy, for babies classifie
UNIVERSITY OF TORONTO
Faculty of Arts and Science
APRIL 2010 EXAMINATIONS
STA 303 H1S / STA 1002 HS
Duration - 3 hours
Aids Allowed: Calculator
LAST NAME:
FIRST NAME:
STUDENT NUMBER:
There are 27 pag
UNIVERSITY OF TORONTO
Faculty of Arts and Science
APRIL 2011 EXAMINATIONS
STA 303 H1S / STA 1002 HS
Duration - 3 hours
Examination Aids: Calculator
LAST NAME:
FIRST NAME:
STUDENT NUMBER:
There are 23
proc logistic defaults
1
The LOGISTIC Procedure
Model Information
Data Set
Response Variable
Number of Response Levels
Model
Optimization Technique
WORK.DONNER
status
2
binary logit
Fisher's scoring
N
STA 303/1002: Lecture 11- Case Study III Inference
Case Study III: The Donner Party Example
Condence interval for Odds Ratio
Testing s Higher-order Models
Binomial Logistic Regression/Case Study IV
Jo
STA 303/1002: Lecture 10- Case Study III Analysis
Binary Logistic Regression Example
Case Study III: The Donner Party Example
Log Odds, Odds, Odds Ratio
SAS PROC LOGISTIC
Using Additive model
Next cla
STA 303/1002: Lecture 19-Log-linear model checking
What procedures do we use to:
Q: Estimate parameters in log-linear models?
A: Maximum likelihood estimation
Q: Carry out inference (signicance tests
STA 303/1002: Lecture 17- Loglinear models for Two-way
Tables
Assume
Dist. of Y
H0
Test Stat.
Analysis I
Row totals xed
Binomial
1 = 2
Z
Analysis II
Overall total xed
Multinomial
ij = i j
2 1)(J1)
(I
STA 303H1S / STA 1002HS: Logistic Regression Practice Problems
SOLUTIONS
1. (a) There were no females over 50. Any comparisons for older people must be based on
the assumption that the model still hol
STA 303H1S / STA 1002 HS: Two-way Analysis of Variance Practice Problems
SOLUTIONS
1. The experimental unit that which receives the treatment is the platoon, not the individual
soldier.
2. (a) It simp
STA 303H1F: Two-way Analysis of Variance Practice Problems
1. In the Pygmalion example from lecture, why are the average scores of the platoon used as
the response variable, rather than the scores of
STA 303H1S / STA 1002 HS: Two-way Analysis of Variance Practice Problems
SOLUTIONS
1. The experimental unit that which receives the treatment is the platoon, not the individual
soldier.
2. (a) It simp
STA 303H1S / STA 1002HS: ANCOVA Practice Problems
SOLUTIONS
1. (a) E[Xt Xc ] = t c = c + x c = x
(b) E[Yt Yc ] = t c = c + y c = y
Assuming the covariate is a pre-test score and the response a post-te
STA 303H1S: Analysis of Covariance Practice Problems
1. Consider an ANCOVA situation where we regress a response variable (Y) on a covariate (X)
and a factor (F) with two levels, Treatment and Control
STA303 Lecture 4
Specifying Mixed Effects Models I (Example)
We should do an example together specifying a mixed effects model,
to prepare you for Q1 on A2.
I
Lets think about the weights of pigs agai