STAT 457 STATISTICAL METHODS LAB

Section 01, CRN 70726, Tuesday 11:10-noon          Section 02, CRN 71686, Tuesday 12:10-1 PM

Instructor: Mike O’Lear email: m.olear@mso.umt.edu

Office Hours:  Mon—noon to 1PM    Tues—1 to 3 PM      Wed—2 to 3 PM     Fri—1 to 2 PM

Announcements:

This page was last updated on 12/7/10

Latest Page Additions/Changes:

Class Documents:

syllabus

lab reports and normal class procedures

final project

 Is the Stat course hard?

 writing abilities

 personal computer help

 

 Usefulness of Statistics

 FINAL PROJECT INSTRUCTIONS

Final Project 1

Final Project 2

Final Project 3

 Final Project 4

 

 

 

By Hand Examples:

2 way table example (hand written)

Another 2 way table example

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

StatCrunch

 Using only StatCrunch

 

 

 

 

 

 

 

“R” Statistical Package

NOTE:  Some of these R tutorials below are a bit dated, in that they use older versions of R, but the information is still as useful for you now.

 Installing R and R Commander

 General Overview of R

R Tutorial 1

R Tutorial 2

R Tutorial 3

R Tutorial 4

 R Reference A—R Intro from CRAN site

R Reference B

R Reference C

R Reference D

 vector.R

 vectorop.R

 LogicalOperator.R

 rbinom.pdf

 more_vector_matrix.pdf

 cat.pdf

if.pdf

logical_operators.pdf

for_etc.pdf

ifelse.pdf

 

 

 

 

 

 

 

 

 

 

 

 

Weekly Labs

Lab Number

Date

Topic(s) Covered

Assignments and Files

Lab 1

8/20/10

  • Intro to Lab
  • Intro to StatChrunch

lab 1 (due on 9/7)

horse_race.csv

 

Lab 2

9/7/10

·        2 way tables with StatCrunch

What we learned from Lab 1

 

 lab 2 (due on 9/14)

2waytable.csv

 

bloodpressure.csv

Lab 3

9/14/10

·        Quantitative variables using StatCrunch

·        Beginnings of R

 What we learned from Lab 2

lab 3 (due on 9/21)

student.txt

Lab 4

9/21/10

·        2 way tables using R

·        More introduction to R

·        good reference for your” R library”—CRAN site R Intro

 What we learned from lab 3

lab 4 (due on 9/28)

phd.txt

step1.R

step 2.R

step3.R

step4.R

Lab 5

9/28/10

·        using R for quantitative data

·        some more functions for categorical data investigation

 lab 5 (due on 10/5)

lab 4 What We Learned

 

grizfootball.txt

 

readin.R

 

firstset.R

 

secondset.R

Lab 6

         10/5/10

·        More lin. reg. with R

·        lin. reg. with transformed variables

 Lab 6 (due 10/12)

fandata.txt

 

readfandata.R

 

yourturn.R

 

Tvlife06.txt

 

logscripts.R

Lab 7

10/12/10

Note that various .pdf’s and tutorial scripts (posted here and above in the R section) might be helpful on these topics:

vector.R

vectorop.R

LogicalOperator.R

rbinom.pdf

more_vector_matrix.pdf

cat.pdf

if.pdf

logical_operators.pdf

for_etc.pdf

ifelse.pdf

 

 

 

·        R Commander Introduction

·        Control statements (e.g., if, for, while, etc.)

·        Some simple simulations using R

 Lab 7 (due 10/19)

ladygriz.R

 

 

Lab 8

10/19/10

·        More simulations

 Lab 8 (due 10/26)

irrigate_farm.R

 

ladygrizvisit.R

 

one_and_one.R

 

one_one_revisited.R

 

func_1and1.R

Lab 9

10/26/10

  • Now you try your hand at simulations using R

 Lab 9 (due 11/9)

Lab 8 due today

 

11/2/10

·        no class, voting day

My Simulations For Lab 9

Lab 10

11/9/10

·        Is the Central Limit true????

·        Q – Q plots, used to check for “normality”

·        Confidence Intervals—a simulation

·        Lab 10 Correction

Lab 10 (due 11/16)

Lab 9 due today

clt_demo.R

 

confidence_intervals.R

Lab 11

11/16/10

·        Using tools learned previously, determine the identity of 7 distributions from their samples (size 150)

 Lab 11 (due 11/23)

Lab 10 due today

mystery_7.txt

 

Final Project Update

Lab 12

11/23/10

 Have a nice Thanksgiving

·        Hypothesis tests of single p

·        Type I and II Errors

·        Power function using R

 Lab 12 (due 11/30)

Lab 11 due today

power.R

Lab 13

11/30/10

  • Update on your final projects

 Lab 13 (due TODAY, before you leave lab!!)

Lab 12 due today, also

Lab 14

12/7/10

Thank you for an enthusiastic/cooperative semester from all participants

  • t-tests
  • CI’s and hypothesis testing with t’s

Lab 14 (do not turn in unless you need “quota” of labs turned in—if turned in, do so no later than 12/13)

pennies.R

 

t_distrib_graph.R

 

normtemp.txt

 

12//10

  • final projects due by 4PM

You may email final project to me as last option