Docsity

Exploratory Data Analysis in Sta 101: Introduction to Data and Robust Statistics, Study Guides, Projects, Research of Statistics

Partial preview of the text

Download Exploratory Data Analysis in Sta 101: Introduction to Data and Robust Statistics and more Study Guides, Projects, Research Statistics in PDF only on Docsity!

Unit 1: Introduction to data

2. Exploratory data analysis

Sta 101 - Spring 2016

Duke University, Department of Statistical Science

Dr. Çetinkaya-Rundel Slides posted at http://bit.ly/sta101_s

Outline

  1. Readiness assessment
  2. Housekeeping
  3. Main ideas
    1. Always start your exploration with a visualization
    2. When describing numerical distributions discuss shape, center, spread, and unusual observations
    3. Robust statistics are not easily affected by outliers and extreme skew
    4. Use box plots to display quartiles, median, and outliers
  4. Application exercises
  5. Summary

Outline

  1. Readiness assessment
  2. Housekeeping
  3. Main ideas
    1. Always start your exploration with a visualization
    2. When describing numerical distributions discuss shape, center, spread, and unusual observations
    3. Robust statistics are not easily affected by outliers and extreme skew
    4. Use box plots to display quartiles, median, and outliers
  4. Application exercises
  5. Summary

Announcements

▶ PS 1 is assigned on the course website, start working on it

2

Outline

  1. Readiness assessment
  2. Housekeeping
  3. Main ideas
    1. Always start your exploration with a visualization
    2. When describing numerical distributions discuss shape, center, spread, and unusual observations
    3. Robust statistics are not easily affected by outliers and extreme skew
    4. Use box plots to display quartiles, median, and outliers
  4. Application exercises
  5. Summary

From a past Sta 101 survey...

Do you see anything out of the ordinary?

0

5

10

15

20

0 5 10 15 20 age at first kiss

How old were you when you had your first kiss?

3

From a past Sta 101 survey...

How are people reporting lower vs. higher values of FB visits?

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

l

ll

ll

ll

ll

ll

ll

ll

l

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll ll

ll

ll ll

ll

l ll^ l 0 50 100 150 200 FB visits / day

How many times do you go on Facebook per day?

4

From a past Sta 101 survey...

How are people reporting lower vs. higher values of FB visits?

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

l

ll

ll

ll

ll

ll

ll

ll

l

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll

ll ll

ll

ll ll

ll

l ll^ l 0 50 100 150 200 FB visits / day

How many times do you go on Facebook per day?

Finer scale for lower numbers. 4

What is missing in this visualization?

http://spark.rstudio.com/jkatz/SurveyMaps

6

Outline

  1. Readiness assessment
  2. Housekeeping
  3. Main ideas
    1. Always start your exploration with a visualization
    2. When describing numerical distributions discuss shape, center, spread, and unusual observations
    3. Robust statistics are not easily affected by outliers and extreme skew
    4. Use box plots to display quartiles, median, and outliers
  4. Application exercises
  5. Summary

Clicker question Which of these is most likely to have a roughly symmetric distribution?

(a) salaries of a random sample of people from North Carolina

(b) weights of adult females

(c) scores on an well-designed exam

(d) last digits of phone numbers

8

Clicker question Which of these is most likely to have a roughly symmetric distribution?

(a) salaries of a random sample of people from North Carolina

(b) weights of adult females

(c) scores on an well-designed exam

(d) last digits of phone numbers

8

Mean vs. median

Clicker question How do the mean and median of the following two datasets compare?

Dataset 1: 30, 50, 70, 90 Dataset 2: 30, 50, 70, 1000

(a) ¯ x 1 = ¯ x 2 , median 1 = median 2

(b) ¯ x 1 < ¯ x 2 , median 1 = median 2

(c) ¯ x 1 < ¯ x 2 , median 1 < median 2

(d) ¯ x 1 > ¯ x 2 , median 1 < median 2

(e) ¯ x 1 > ¯ x 2 , median 1 = median 2

9

Standard deviation and variance

▶ Most commonly used measure of variability is the standard deviation , which roughly measures the average deviation from the mean

  • Notation: σ: population standard deviation, s : sample standard deviation

▶ Calculating the standard deviation, for a population (rarely, if ever) and for a sample:

σ =

∑ N

i =1( xi^ −^ μ) 2 n

s =

n i =1( xi^ −^ ¯ x ) 2 n − 1

▶ Square of the standard deviation is called the variance.

10