# Stat 512 Homework 5th

Statistics 512: Solution to Homework#6 For the following 3 problems use the computer science data that we have been dis-cussing in class. You can get a copy of the data set csdata.dat from the class website. The variables are: id , a numerical identiﬁer for each student; GPA , the grade point average after three semesters; HSM ; HSS ; HSE ; SATM ; SATV , which were all explained in class; and GENDER , coded as 1 for men and 2 for women. 1. In a data step, create a new variable GENDERW that has values 1 for women and 0 for men (use arithmetic on the original variable GENDER ). Run a regression to predict GPA using the explanatory variables HSM , HSS , HSE , SATM , SATV , and GENDERW . (Do not include any interaction terms.) Solution: The required SAS output is given below: Parameter Estimates Parameter Standard Variable DF Estimate Error t Value Pr > |t| Intercept 1 0.31101 0.40447 0.77 0.4428 genderw 1 0.03237 0.11148 0.29 0.7718 hsm 1 0.14423 0.03979 3.62 0.0004 hss 1 0.03827 0.03874 0.99 0.3244 hse 1 0.05103 0.04228 1.21 0.2287 satm 1 0.00100 0.00071725 1.40 0.1633 satv 1-0.00041086 0.00059323-0.69 0.4893 (a) Give the equation of the ﬁtted regression line using all six explanatory variables. Solution: The estimated regression equation is gpa = 0 . 31101 + 0 . 003237 genderw + 0 . 11423 hsm + 0 . 03827 hss +0 . 05103 hse + 0 . 001 satm-0. 00041086 satv (b) Give the ﬁtted regression line for women (use part a). Solution:

## STAA Course Descriptions

These courses will be offered beginning in the 2012-2013 academic year. Registration for STAA courses will be limited to our MAS students and people who have been given specific permission to take these courses. All courses are offered based on availability and student interest. Method of lecture delivery is streamed video. DVDs or download access may be available for some courses. Textbook and software requirements for these courses will be posted as they become available. For additional details regarding STAA courses, please contact Dr. Anderson. The planned **schedule** of online STAA course offerings is posted here. STAA and STAT course offerings for the next few terms can be found here.

**Notes**:

- We enforce our prerequisites! If you cannot show that you have taken the prerequisites for a course, you may be dropped from the class roster. Please make sure that you have the indicated prerequisites before registering!
- Unless otherwise indicated, all STAA courses use SAS and R statistical software.
*Specific requirements for using SAS can be found here.* - Classes with proctored exams generally give a 4-6 day window (including a weekend) in which students must complete exams.
- For homework submission, students must have access to a fax or scanner.

**STAA551: Regression Models and Applications** 02 Credits.

**Prerequisite:** Admission to the Master of Applied Statistics program and Theory and Applications of Regression Models Certificate program requires students to have taken courses equivalent to STAT 315 and MATH 369. (A background including CSSA and MSSA is assumed.)

Model estimation and goodness of fit for linear models; confidence intervals for prediction and estimation; lack of fit, model diagnostics, transformations, model selection, influential observations, collinearity, interaction, weighted least squares, imputation.

**Textbook:***Applied Regression Analysis and Other Multivariable Methods* 5th Edition, by David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg ISBN-13: 978-1285051086 ISBN-10: 1285051084

**Computer Software: **R.

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on bi-weekly homework sets, two proctored mid-term exams, and a proctored final exam.

**Credit allowed for only one course: STAT540, STAT512, STAA551.**

**Note:** This course is approved by the Society of Actuaries for the regression component of the Validation by Educational Experience (VEE).

**To register for this course, click here**

**STAA552: Generalized Regression Models** 02 Credits.

**Co-requisite:** STAA 551, may be taken concurrently, or STAT 512 or STAT 540. (A background including CSSA and MSSA is assumed.)

Categorical data analysis, estimation and testing for contingency tables, introduction to generalized linear models, logit and probit models for binary regression, extensions to nominal and ordinal multicategory responses, count data, Poisson and negative binomial regression, log-linear models.

**Textbook: ***Categorical Data Analysis*, 3rd ed., by Alan Agresti (Wiley Series in Probability and Statistics 978-0-470-46363-5). **Note: This is not the same text as An Introduction to Categorical Data Analysis, also by Alan Agresti!**

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on six homework sets, two proctored quizzes and a proctored final exam.

**Credit allowed for only one course: STAT645, STAA552.**

**To register for this course, click here**

**STAA553: Experimental Design** 02 Credits.

**Prerequisite:** (STAA 551 or STAT 540) and (STAA 562 or STAT 530). A background including CSSA and MSSA is assumed.

Analysis of variance, covariance, randomized block, latin square, factorial, balanced and unbalanced designs. Applications to agriculture, biosciences. Implementation in SAS and R.

**Textbook: **Textbook not required. Please refer to syllabus on Canvas before purchasing text.

**Computer Software: **R and SAS

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on weekly homework sets, a proctored mid-term exam, and a proctored, cumulative final exam.

**Credit allowed for only one of: STAT650 or [STAA553 and STAA554]**

**To register for this course, click here**

**STAA554: Mixed Models** 02 Credits.

**Co-requisite:** STAA 552 should be taken in a previous semester. STAA 553 should be taken concurrently. (A background including CSSA and MSSA is assumed.)

Topics in linear models that have both fixed and random predictors: split-plot and related designs, mixed-effects factorials, repeated measures, random coefficients, and spatial models for designed experiments. Introduction to generalized linear and nonlinear mixed models. Statistical topics will be integrated with implementation in SAS and R.

**Textbook: **No textbook required.

**Computer Software: **R and SAS.

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on weekly homework sets, a proctored mid-term exam, and a proctored, cumulative final exam.

**Credit allowed for only one of: STAT650 or [STAA553 and STAA554].**

**To register for this course, click here**

**STAA556: Statistical Consulting** 02 Credits.

**Prerequisite:** STAA 500 to 599 - at least 28 credits.

Effective consulting to meet with clients, analyze real data, and prepare reports.

**Textbook: **No textbook required.

**Proctor:** This course does not require an exam proctor.

**Grading:** Course grade is based on class assignments and a formal consulting project.

**To register for this course, click here**

**STAA561: Probability with Applications** 02 Credits.

**Prerequisite:** Admission to the MAS program or written consent of instructor. MATH 369; STAT 315. (A background including CSSA and MSSA is assumed.)

Random variables, continuous and discrete distributions, expectations, joint and conditional distributions, moments and moment generating functions, transformations, order statistics.

**Textbook: **No textbook required.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on weekly homework sets, three proctored (bi-weekly) quizzes, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT520, STAA561**

**To register for this course, click here**

**STAA562: Mathematical Statistics with Applications** 02 Credits.

**Co-requisite:** STAA561. (A background including CSSA and MSSA is assumed.)

Theory and applications of estimation, testing, and confidence intervals. Computer simulations; sampling from the normal distribution.

**Textbook: **No textbook required.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on weekly homework sets, three proctored (bi-weekly) quizzes, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT530, STAA562.**

**To register for this course, click here**

**STAA565: Quantitative Reasoning** 01 Credit.

**Co-requisite:** STAA551 or STAT 512, may be taken concurrently.

Confounding, types of bias such as selection bias and regression effect bias, Simpson's paradox, experiments versus observational studies.

**Textbook: **No textbook required.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on weekly homework sets and three proctored quizzes.

**To register for this course, click here**

**STAA566: Data Visualization Methods** 01 Credit.

**Prerequisite:** STAA 551 or concurrent registration or STAT 512 or concurrent registration. (A background including CSSA is assumed.)

Principles of effective graphs, data visualization methods, grammar of graphics, multi-panel conditioning, exploratory data analysis using graphics, 3D plotting, ROC curves, data wrangling.

**Textbook: **No textbook required.

**Computer Software: **R

**Proctor:** This course does not require an exam proctor.

**Grading:** Course grade is based on bi-weekly homework sets.

**Credit allowed for only of: STAT600 or [STAA566 and STAA567].**

**To register for this course, click here**

**STAA567: Computational and Simulation Methods** 01 Credit.

**Co-requisite:** (STAA 551, may be taken concurrently or STAT 540) and (STAA 561, may be taken concurrently or STAT 520). A background including CSSA and MSSA is assumed.

Statistical computation and simulation methods used to estimate probability distribution of non-standard test statistics, find estimators, test hypotheses, and compute confidence intervals. Optimization, bootstrapping, pivoting techniques.

**Textbook: **There is no textbook required for this course, however students may want to use as a reference:*Computational Statistics*, G. H. Givens and J. A. Hoeting, Wiley (available online at lib.colostate.edu). ISBN 0470533315

**Computer Software: **R

**Proctor:** This course does not require an exam proctor.

**Grading:** Course grade is based on homework assignments.

**Credit allowed for only one of: STAT600 or [STAA566 and STAA567].**

**To register for this course, click here**

**STAA568: Topics Industrial/Organizational Statistics** 01 Credit.

**Co-requisite:** (STAA 561 or STAT 511A or STAT 520); (STAA 553 or STAT 512, may be taken concurrently) or written consent of instructor.

Six Sigma techniques, DMAIC, CT trees, VOC tools, data collection, process capability, capability metrics, graphical data exploration, and process control.

**Textbooks: **

- Six Sigma Memory Jogger II: A Pocket Guide, by Brassard, Finn, Ginn & Ritter (ISBN 10: 1576810445 , ISBN 13: 9781576810446 )
- The Lean Six Sigma Pocket Toolbook: A Quick Reference Guide to 100 Tools for Improving Quality and Speed, by George, Maxey, Rowlands & Price (ISBN-10: 0071441190, ISBN-13: 9780071441193)
- Design and Analysis of Experiments with SAS, by John Lawson (Chapman and Hall/CRC, ISBN-10: 1420060600, ISBN-13: 978-1420060607) or a similar design of experiments text.

**Computer Software:** The course will cover use of Minitab software. Minitab 17 Student Version can be purchased here. Minitab 16 may be used if you already have it. This software is not required, but it is in widespread use and includes routines in the software that facilitate using the DMAIC tools.

**Proctor:** This course does not require an exam proctor.

**Grading:** Course grade is based on a course project.

**Credit allowed for only one course: STAT547, STAA568.**

**To register for this course, click here**

**STAA571: Survey Statistics** 02 Credits.

**Prerequisite:** STAA551 and STAA562. (A background including CSSA and MSSA is assumed.)

Estimation and variance estimation for complex survey designs, accounting for stratification, clustering, and unequal probabilities of selection. Taught jointly with STAT605 in alternate years.

**Textbook: **No textbook required.

**Computer Software: **R (required).

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on homework sets, a proctored mid-term exam, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT605, STAA571. **

**To register for this course, click here**

**STAA572: Nonparametric Methods** 02 Credits.

**Co-requisite:** (STAA 551 or concurrent registration or STAT 512 or concurrent registration or STAT 540 or concurrent registration) and (STAA 561 or concurrent registration or STAT 511A or STAT 511B or STAT 520 or concurrent registration). A background including CSSA and MSSA is assumed.

Rank-based methods, nonparametric inferential techniques, scatterplot smoothing, nonparametric function estimation, environmental applications.

**Textbook: **Introduction to Modern Nonparametric Statistics, by James J. Higgins (Cengage ISBN:9780534387754)

**Computer Software: **R

**Proctor:** This course does not require an exam proctor.

**Grading:** Course grade is based on homework sets, two mid-term exams, and a final exam.

**Credit allowed for only one course: STAT570, STAA572. **

**To register for this course, click here**

**STAA573: Analysis of Time Series** 02 Credits.

**Co-requisite:** (STAA 551 or concurrent registration or STAT 540 or concurrent registration) and (STAA 561 or concurrent registration or STAT 520 or concurrent registration). A background including CSSA and MSSA is assumed.

Exploratory analysis of time series, including periodicity and trends, moving average and auto-regressive models, estimation and forecasting. Financial and environmental applications.

**Textbook: **Time Series Analysis and Its Applications: With R Examples, 3rd ed., by Shumway & Stoffer.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on homework sets, a proctored mid-term exam, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT525, STAA573.**

**Note:** This course is approved by the Society of Actuaries for the time series component of the Validation by Educational Experience (VEE).

**To register for this course, click here**

**STAA574: Methods in Multivariate Analysis** 02 Credits.

**Prerequisite:** STAA 551 or concurrent registration; STAA 561. Note: R programming skills (CSSA) are expected, as well as strong knowledge of linear algebra (MSSA).

Multivariate ANOVA, principal components, factor analysis, cluster analysis, discrimination analysis.

**Textbooks (optional): ***An R and S-Plus® Companion to Multivariate Analysis*, by Brian Everitt (available for free on Springer) and

*Applied Multivariate Statistical Analysis*, 6th ed., by Johnson & Wichern ISBN 9780131877153.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on homework sets, a proctored mid-term exam, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT560, STAT460, STAA574.**

**To register for this course, click here**

**STAA575: Applied Bayesian Statistics** 02 Credits.

**Prerequisite:** STAA552, STAA562 and STAA567. (A background including CSSA and MSSA is assumed.)

Bayesian analysis of statistical models, prior and posterior distributions, computing methods, interpretation.

**Textbook: ***Bayesian Ideas and Data Analysis: An Introduction for Scientists and Statisticians*, by Christensen, Johnson, Branscum & Hanson.

**ISBN-10:**1439803544**ISBN-13:**978-1439803547

**Computer Software: **R and either openBUGS (available at http://www.openbugs.net/w/FrontPage) or JAGS (Mac users will prefer JAGS, http://mcmc-jags.sourceforge.net/)

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on homework sets and a proctored cumulative final exam.

**Credit allowed for only one course: STAT675K, STAA575.**

**To register for this course, click here**

**STAA576: Methods in Environmental Statistics** 02 Credits.

**Prerequisites:** (STAA 552) and (STAA 561 or STAT 520). Note: R programming skills (CSSA) are expected.

Covariance estimation, covariance/variogram models, spatial regression models, spatial prediction, spatial point patterns.

**Textbook: **Course notes will be provided.

**Computer Software: **R

**Proctor:** This course requires an approved proctor for exams.

**Grading:** Course grade is based on homework sets, a proctored mid-term exam, and a proctored cumulative final exam.

**Credit allowed for only one course: STAT523, STAA576.**

**To register for this course, click here**

**STAA577: Statistical Learning and Data Mining** 02 Credits.

**Prerequisites:** STAA 551 or concurrent registration; STAA 561. Note: R programming skills (CSSA) are expected.

Applications-oriented overview into how to use statistical methods to do data mining, inference, and prediction.

**Textbook: **An Introduction to Statistical Learning: with Applications in R (Springer Texts in Statistics), by James, Witten, Hastie & Tibshirani. ISBN-13: 978-1461471370, ISBN-10: 1461471370.

**Computer Software: **R

**Proctor:** This course does not require an exam proctor.

**Grading:**Course grade is based on weekly homework sets.

**Note:** This course is allowed in place of STAA576 for the MAS degree.

**To register for this course, click here**

**STAA578: Machine Learning** 02 Credits.

**Prerequisites:** STAA 577, may be taken concurrently. Note: R programming skills (CSSA) are expected.

K-means clustering, perceptron algorithm, evaluating model performance, neural networks, learning theory and dimension reduction.

**Textbook: **TBD

**Computer Software: **R

Back to Distance MAS

Contact the Statistics Department Online Learning Program Office:

Phone: (970) 491-5268

Fax: (970) 491-1084

Email: stats_ddp@mail.colostate.edu

Follow us on Twitter: @CSUSTATDistance

Mailing Address:Online Learning Office

Statistics Department

Colorado State University

1877 Campus Delivery

Fort Collins, CO 80523-1877

Jana Anderson, Associate Professor

Advisor for MAS and Certificate Programs

Department of Statistics

## 0 Replies to “Stat 512 Homework 5th”