Multiple Linear Regression
and
the General Linear Model
1
Outline
1. Introduction to Multiple Linear Regression
2. Statistical Inference
3. Topics in Regression Modeling
4. Example
5. Variable Selection Methods
6. Regression Diagnostic and Strategy for Bu
AMS394 Homework 1
R basics
Please save your code in txt document. You should submit your homework via
blackboard by 8:00 am, Sep 15.
1.1 Consider the following weights 60, 72, 34, 56, 87, 80, 89, 55, 93, 28, 48, 59. Use the R script
to finish the
AMS 394
Lab # 5
Prof. Wei Zhu
Aim: Today we will learn how to do inference on two
population means in SAS.
1. Review of Theory and Introduction to SAS for
Comparing Two Population Means
Overview: Inference on two population means:
1. The samples are paire
AMS394 Homework 3
Please save your code and result in txt document. You should submit your homework via
blackboard by 8:00 am, Sep 27. Please provide complete codes and results for full credit.
Problem (1) Use the d_logret_6stock dataset to answer the que
AMS394 Statistical Computing
Instructor: Min Shu Email: [email protected]
Office hours: TuTh 10:00am-11:00am at Math Tower A149
Time and Locations:
TuTh 8:30am-9:50am at Harriman 108 WESTCAMPUS (2016 fall Aug 29 Dec 21)
Recommended Textbo
AMS394.01
Midterm
Fall 2015
Name: _ ID: _
Instruction: This is an open book exam. However no communication
is allowed between students. Please provide complete solutions for
full credit. Good luck!
1. (version 1) Five types of root-stock were used in an a
Homework 2
Due Thursday 9/22/2016
Collected Assignment:
2.2.3, 2.3.1, 2.3.3, 2.3.5, 2.4.3, 2.4.4, 2.5.3, 2.7.1 , 3.2.2, 3.2.3
Uncollected Assignment (do not turn these in, they are merely extra practice):
2.3.6*, 2.3.9, 2.4.1, 2.4.2, 2.5.1*, 2.5.2, 2.6.3,
Definition: A Linear Programming problem is in standard form if:
All variables are on left side of constraint, the RHS (right hand side) is a non negative constant
All constraints are =
All variables are 0
max z = 3x + 2y 5w
s.t.
x+y
2
2x w
5
3x y + 2w
1
AMS 394
ANOVA using R
#One-way ANOVA
#We are often interested in determining whether the means from more
than two populations or groups are equal or not. To test whether the
difference in means is statistically significant, we can perform
analysis of vari
AMS 318 Mathematical Interest Theory
Fall 2016
Instructor Tyler Mayer
Email: [email protected]
Office: Math Tower 2104
Office hours: Tuesdays and Thursdays 10:30AM - 11:30 AM or by appointment.
Grad TA Corey Weistuch
Email: [email protected]
AMS 394 handout 6 two sample test
two non-parametric testsWilcoxon signed rank & rank
sum tests
how to do inference on two population means
1. Review of TheoryComparing Two Population
Means
1. The samples are paired
Paired samples t-test (if the paired d
AMS 318 Notes
Instructor: Tyler Mayer
12/8/2015
1
The Growth of Money
1.1
What is interest?
Def 1.1: interest - money paid regularly at a particular rate for the use of money lent, or for
delaying the repayment of a debt.
1. An investor loans money to ano
AMS394 Homework 2. Probability & Distribution
Please save your code in txt document. You should submit your homework via
blackboard by 8:00 am, Sep 22.
2.1 Without use the sample function, generate a random vector that follows a
multinomial distributi
1.1:
(a):
DATA xyz;
INPUT x y z @;
DATALINES;
1 3 15
7 13 7
8 12 5
3 4 14
4 7 10
;
RUN;
PROC CORR DATA=xyz;
TITLE 'corr';
RUN;
Correlation coefficient for x and y is 0.96509, and the pvalue is
0.0078. Correlation coefficient for x and z is -0.97525 and th
Q6) The following are the 3 exam scores for 6 students.
Joe
Mary
Jim
Jane
Mike
Sue
75 86
88 88
65 05
100 99
90 90
10 60
90
97
100
78
90
80
Use SAS to establish a file and print out of the six students, their 3 exam scores and
their averages, in descending
Homework 8.
Solutions
Q1) Over then past 5 years, the mean time for a warehouse to fill a buyers order has
been 25 minutes. Officials of the company believe that the length of time has increased
recently, either due to a change in the workforce or due
AMS394.01
Practice Final Exam
Fall 2015
Name: _ ID: _ Signature: _
Instruction: This is an open book exam. However no communication is allowed between students.
Please provide complete solutions for full credit. Good luck!
1. In a study of hypnotic sugges
AMS 394.1
Lab # 1.
Prof. Wei Zhu
Aim: Today we will learn how to input data from the keyboard
in SAS and also the SAS Proc Univariate Procedure. We will also
learn how to download R from the internet.
Note 1: SAS is available to be freely downloaded to yo
AMS 394
ANOVA using R
#One-way ANOVA
#We are often interested in determining whether the means from more
than two populations or groups are equal or not. To test whether the
difference in means is statistically significant, we can perform analysis of
vari
1(exercise 1):
DATA toads;
INFILE '\mysbfiles.campus.stonybrook.edu\MINGSCHEN\ToadJump.dat';
INPUT ToadName $ Weight Jump1 Jump2 Jump3;
PROC PRINT DATA = toads;
TITLE 'SAS Data Set Toads';
RUN;
SAS Data Set Toads
Obs ToadName Weight Jump1 Jump2 Jump3
1
AMS394 Take-home Project
Fall 2016
This project contains two parts. The first part (Q1-Q3) is for R, and the second (Q4-Q6) is
for SAS. Please save your code in txt document. You should submit your project via the
blackboard by 11:59pm, Dec 10. Please
R version 3.2.1 (2015-06-18) - "World-Famous Astronaut"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute i
In my opinion, a person, especially a man who has strong will and ability and makes
contributions to the nation can be called as a hero. Absolutely, Odysseus is a hero,
since he satisfies the above three requirements. First of all, Odysseus must have
stro
AMS394 Homework 8
SAS
Please save your code in txt document. You should submit your homework via
blackboard by 8:00 am, Nov 15. Please save your program, output and conclusion.
Question 1:
Over then past 5 years, the mean time for a warehouse to fil
AMS394 Homework 9
SAS
Please save your code in txt document. You should submit your homework via
blackboard by 8:00 am, Dec 1. Please save your program, output and conclusion.
1, Given the following data:
X
1
7
8
3
4
Y
3
13
12
4
7
Z
15
7
AMS394 Homework 7
SAS
Please save your code in txt document. You should submit your homework via
blackboard by 8:00 am, Nov 10.
1. Handout 3 page 1 exercise
2. Handout 3 page 3 exercise
3. Handout 3 page 5 exercise
4. Handout 3 page 6 exercise
AMS 318 Notes
Instructor: Tyler Mayer
12/8/2015
1
Chapter 2. Equations of Value and Yield Rates
1.1
Introduction
Def 1.1: Equation of value - c a(t) = c(1 + i)t (for compound interest case e.g)
Problem 1.1: An account was opened with principal p at AEIR 8