Docsity

Discrete Data Analysis: Stat 665 (Spring 2008) Course Materials by Elly Kaizar, Exams of Statistics

Partial preview of the text

Download Discrete Data Analysis: Stat 665 (Spring 2008) Course Materials by Elly Kaizar and more Exams Statistics in PDF only on Docsity!

Stat 665 (Spring 2008)

Discrete Data Analysis

Elly Kaizar

Department of Statistics 221 Cockins Hall

[email protected]

Course web page:mean(biasarray3-biasarray) http://www.stat.osu.edu/∼ekaizar/courses/665/

Course gradebook: http://www.carmen.osu.edu

Course overview

• Book chapters 1-7+

• Grades based on homework, midterm exam, final

project, and participation

• See syllabus for details

• Goal: Analyze Data with Discrete Responses

• Expectations:

– Come to class

– Ask questions

– Answer questions

– Contribute ideas

Data Examples: Does Not Compute

The 2007 Office of the CIO Poll on Information Technology asked 258 graduate students: “During the last academic quarter, approximately how many hours per week did you use a computer located in one of the campus computing laboratories or Student Computing Centers?”

Time # Respondents Less than 10 hours 191 More than 10 hours 67 All 258

Data Examples: Lights, Camera, Action!

The main genre of the last 10 Academy Award winners:

 - Action Genre # ‘Best Pictures’ 
  • Adventure - Comedy - Crime - Drama
    • Historical - Horror - Musical - Sci-Fi - War
      • Western - All

Data Examples: ADOPT Trial

Clinical Trial for Rosiglitazone (Avandia) for the treatment of diabetes.

Heart Attack No Heart Attack Total Rosiglitazone 27 1429 1456 Active Control 41 2854 2895 Total 68 4283 4351

Data Examples: Phishing

Summary of scams recorded on netcraft and castlecops from Jan- uary 1 through March 21, 2007.

Netcraft Yes No Total Castlecops Yes 506 2,027 2, No 16,060?? Total 16,566?? source: Weaver R and Collins MP. (2007) Fishing for Phishes: Applying Capture-Recapture Methods to Estimate Phishing Populations. APWG eCrime Researcher Summit, October 4-5, 2007, Pittsburgh, PA, USA.

Data Examples: Take a Bite out of Crime

Crimes Reported in 2006, as reported in the OSU Campus Safety Report:

Residence Halls Other Campus Total Arson 3 1 4 Burglary 99 230 329 Motor Vehicle Theft 0 19 19 Robbery 0 6 6 Sex Offence 16 7 23 Total 118 263 381

Data Examples: The Lady Tasting Tea

Famous statistical thought experiment. From Fisher (1935):

Guess Truth Milk Tea Total Milk 3 1 4 Tea 1 4 4 Total 4 4 8

Notation for I x J Tables: Sample Proportions

  • Joint and Marginal Sample Proportions:

C 1 C 2 · · · CJ CT otal

R 1 p 11 = (^) nn++^11 p 12 = (^) nn++^12 · · · p 1 J = (^) nn++^1 J p1+ = (^) nn++1+

R 2 p 21 = (^) nn++^21 p 22 = (^) nn++^22 · · · p 2 J = (^) nn++^2 J p2+ = (^) nn++2+ ... ... ...... ... ...

RI pI 1 = (^) nn++I^1 pI 2 = (^) nn++I^2 · · · pIJ = (^) nn++IJ pI+ = (^) nn++I+

RT otal p+1 = (^) nn+++1 p+2 = (^) nn+++2 · · · p+J = (^) nn+++J p++ = n n++++ = 1

  • Sample Proportions Conditional on One Row:

C 1 C 2 · · · CJ CT otal

R (^1) p^ p1+^11 p^ p1+^12 · · · p p1+^1 J^ p p1+1+ = 1

Population Probabilities (Parameters)

  • Joint and Marginal: C 1 C 2 · · · CJ CT otal R 1 π 11 π 12 · · · π 1 J π1+ R 2 π 21 π 22 · · · π 2 J π2+ ... ... ...... ... ... RI πI 1 πI 2 · · · πIJ πI+ RT otal π+1 π+1 · · · π+J 1
  • Conditional on One Row: C 1 C 2 · · · CJ CT otal R (^1) π^ π1+^11 π^ π1+^12 · · · π π1+^1 J^ π π1+1+ = 1
  • Maximum Likelihood Estimates For No Fixed Margins: πˆij = pij πˆi+ = pi+ πˆ+j = p+j
  • Maximum Likelihood Estimates For Fixed Row Margins: (̂ (^) πij πi+

= (^) ppiij+

Key Concepts

  • Variables
    • Response/Explanatory
    • Continuous/Discrete
    • Binary/Multinomial
    • Nominal/Ordinal
  • Sampling
    • Poisson (nothing fixed)
    • Multinomial (total fixed in 2 x 2)
    • Binomial (some margins fixed in I x 2)
    • Multinomial (some margins fixed in I x J)
    • Hypergeometric (all margins fixed)
  • Probabilities: Joint/Marginal/Conditional
  • Zeros: Structural vs. Sampling
  • Be Careful With Paired Data, Fixed Margins

I Don’t Like Banana Flavored Candies

The proportion of banana-flavored candies in a bag of candy is important to my purchasing decisions. LifeSavers makes a bag of pastel candies that contains Banana (yellow), Watermellon (green), and Cotton Candy (pink) flavored (colored) candies.

Potential Questions:

  1. What is the best estimate of the proportion?
  2. What values of the proportion are plausible?
  3. Are more than 1/3 of the candies banana-flavored?
  1. What is the best estimate of the proportion?

Likelihood Function for a Proportion (Based on a single Binomial Sample)

Distribution of the random variable X (conditional on knowing the probability of drawing banana: π):

P (X = x) = (^) x!(nn −! x)!πx(1 − π)n−x

Likelihood for the population probability of drawing banana (conditional on knowing the number of banana we draw: x):

ℓ(π) = (^) x!(nn −! x)!πx(1 − π)n−x