STAT 457 - STATISTICAL METHODS - LAB

General Information:

Instructor:

Mike O’Lear

email:

m.olear@mso.umt.edu

Home page:

http://www.math.umt.edu/olear/

 

 

 

 

 

 

 

 

 

Page last updated:  11/11/09

Mail comments to:  m.olear@mso.umt.edu  or  jgraham@mso.umt.edu  


Course Information:

Syllabus

Class Notes

Final Project:

Project outline             Project Proposal

Final Project 1              Final Project 2

Final Project 3              Final Project 4

Final Project 5              Final Project 6

Final Project 7              Final Project 8

Final Project 9              Final Project 10

Frequently Asked Questions (FAQ)

More frequently asked questions based on lab #1

(FAQ2)

Math. Dept. grading and petitioning policy

Office Hours [ in MA 306 or MA 212]

Tues, 9:30 – 10:30 AM

Wed, 11 AM – 1 PM & 2 – 3 PM

Thurs, 1 – 3 PM

 

 

 

 

 

 

Notes:

Welcome to STAT 457: Statistical Methods - Lab! 

It is a good idea to bring a flash drive with you to lab every time, to store your electronic files on.  Also, you may want to email your electronic files to yourself, so you don’t lose any of your work.

Jon said that he has 2 copies of the text (Ott) in the library if students need to check one out.


SPSS Information:

On-Line SPSS Manual:

·  Table of Contents - pages 1-2

·  Chapter 1 (Introduction to SPSS) - pages 3-16

·  Chapter 2 (Examining Distributions) - pages 17-38

·  Chapter 3 (Looking at Data: Relationships) - pages 39-66

·  Chapter 4 (Sampling Distributions) - pages 67-72

·  Chapter 5 (Inference for Population Means) - pages 73-82

·  Chapter 6 (Inference for Two-Way Tables) - pages 83-85

Misc. SPSS Notes:

How to make a relative frequency histogram using SPSS

Data Sets:

World95.sav is a large data set of attributes of countries across the world in 1995

457class.sav is a data set of our class by academic year and major

 

 

 

 

 

 

 

 

 


 “R” Information:

On-Line R Manual:

To get a free copy of “R” software to download, go to http:/cran.fhcrc.org/

STAT 457 Intro to R

(another) R Intro-a

R and 2 way tables

 

R Intro Manual:

R Intro.pdf

R Data.pdf

R Commander:

·        What is R Commander?

·        How to install R Commander on your home machine

 

Tutorial R Scripts:

arithmetic.R     

variables.R

vector.R

common_commands.R

graphs1.R

help.R                         

LogicalOperator.R

           

 

Tutorial R Scripts:

var_arith_1.R              

startupinfo.R

vector_1.R                  

printinginR.R

intrographing_1.R        

distsampling_1.R

distributions_1.R

tipstoknow.R

 

Tutorial R Scripts:

CIplot.R

 

6inarow_T.Bassett.R

 

CIsimulator_function.R

 

CIsimulator.R

R Language Manual:

·        Index-preface

·        Chapter 1 through 5

·        Chapter 6 through 10

·        Appendices

 

 

 

 

 

 

 

 

 

 

Weekly Log:

Date

Topic

Class Work

Lab Report

9/1/09

Lab 1

  • Syllabus
  • Data Entry (by “hand”)
  • Changing Entry Attributes
  • Defining New Variables

 

  • Grading policy, 

Lab rules and Syllabus

  • work on lab 1
  • give list of possible office hours and days which will be of help to you

 

Lab Report #1  due Sept 8  

9/8/09

Lab 2

Manipulating variables of large data sets in SPSS

  • determine office hours/days
  • transform (compute a variable
  • pick a random sample of cases
  • sort cases by a specific variable
  • pick a subset of cases based on IF statements
  • pick a subset of cases by using a “filtering variable”
  • generating “split files”

Lab 2-PRELIMINARY

 

Lab Report #2  due Sept 15

 

World95.sav

 

Lab 1-What We Learned

9/15/09

Lab 3

Doing basic statistical “chores” with SPSS

  • create a time graph (time plot)
  • create a frequency distribution table (as we did last week) and analyze it
  • create a histogram for a quantitative data set (distribution)
  • create a bar graph for a categorical data set (distribution)
  • create a pie chart

Lab #2 KEY

 

Lab 2-What We Learned

 

Lab Report #3 due Sept 22

 

sat.sav

 

uninsured.sav

 

click this to see our

457 class “makeup”

 

Be sure to check FAQ2 for important information

9/22/09

Lab 4

More basic SPSS graphical displays

  • create a time plot (the “correct way”)
  • create a panel (column) of histograms for comparison
  • create a 5 number summary
  • create a box plot
  • create side-by-side box plots

Lab Report #4—due Sept 29

 

Std Dev “by hand” using TI calc.

 

Data needed for this lab can be downloaded by links in the previous labs or SPSS data area

 

Lab 3 – What We Learned

9/29/09

Lab 5

2-way-tables [SPSS]

Segmented bar graphs [SPSS]

 

R Introduction

  • create 2-way-tables
  • create segmented bar graphs
  • begin experience with “R”

Lab 4 – What We Learned

 

Lab Report #5—due Oct 6

 

STAT 457 R Intro

 

arithmetic.R

 

variables.R

 

vector.R

 

common_commands.R

 

graphs1.R

 

R_Intro [a]

 

R and 2 way tables

10/6/09

Lab 6

Checking for “normality” [SPSS]

 

R Simulation (1)

  • checking distributions to see if they are normally distributed
  • beginning simulations in R

Lab Report #6—due Oct 13

 

Lab 5 – What We Learned

 

climate.sav

 

quiz.R

 

LogicalOperator.R

 

distributions_1.R

 

distsampling_1.R

 

printinginR.R

 

vectorop.R

 

10/13/09

Lab 7

R Simulation (2)

  • R functions
  • R control statements
  • R print statements
  • R logical statements

Lab Report #7—due Oct 20

 

Lab 6 – What We Learned

 

blooddonor.R

 

If, For and other Control Statements.pdf

 

Logical Operations.pdf

 

blooddonor sample run.pdf

 

cat.pdf for printing headers for results

 

more vector/matrix.pdf

 

Final Project Update.pdf

 

10/20/09

Lab 8

R Simulation (3)

  • R sample command
  • The “committee” simulation
  • More using of R Commander
  • A Central Limit Theorem (CLT) simulation script

 

Lab Report #8—due Oct 27

 

Lab 7 – What We Learned

 

sample command.pdf

 

committee.R

 

CLTsimulation.R

 

 

10/27/09

Lab 9

Last of R Simulations

Lab Report #9—due 11/3

 

Lab 8 – What We Learned

 

R student example:  error function

 

error_function.R

 

Governorsalaries.xls

 

defense.sav

 

salary.txt

 

Excelcsv_to_R.R

 

dieroll.R

 

2dice.R

 

freethrow.R

11/3/09

Lab 10

Back to SPSS

Student’s t analysis

  • The t distribution
  • Confidence intervals
  • Significance statistics

Lab Report #10—due Nov 10

 

back_body_wts.sav

11/10/09

Lab 11

More t testing with SPSS

  • 2 sample independent t tests [sec 6.2 of Ott]
  • Wilcoxon (Mann-Whitney) test [sec 6.3 of Ott]
  • Paired t test sec 6.4 of Ott]
  • Wilcoxon non-parametric rank sum test [sec 6.4 of Ott]

Lab Report #11—due Nov 17

 

SportsHazards.sav

 

MarriageAge.sav

11/17/09

Lab 12

“Boot Strapping” using R

 

  •  

Lab Report #12—due Nov 24

 

mortality.csv

 

distance.csv

 

smallest.csv

 

bootstrap_lab.R

 

PROJECT SUBMITTALS ARE DUE

 

Note:  see top of web page for past final project submittal

11/24/09

Lab 13

 

  •  

Lab Report #—due

/09

Lab 14

 

 

Lab Report #—due