Introduction to Statistics with R

  • Upload
    -

  • View
    225

  • Download
    0

Embed Size (px)

Citation preview

  • 8/17/2019 Introduction to Statistics with R

    1/17

    Intro to Statistics with R: Introduction

    Types of variables

  • 8/17/2019 Introduction to Statistics with R

    2/17

    Intro to Statistics

    ! Nominal

    ! Ordinal

    ! Interval

    ! Ratio

    Types of variables

  • 8/17/2019 Introduction to Statistics with R

    3/17

    Intro to Statistics

    Nominal variables

    !

    Used to assign individual cases to categories

    ! DataCamp students come from many diff erent countries

    !   Country of origin is a nominal variable

  • 8/17/2019 Introduction to Statistics with R

    4/17

    Intro to Statistics

    Ordinal variables

    !

    Used to rank order cases

    ! Countries may be ranked according to overallpopulation

    !   Ranking is an ordinal variable

  • 8/17/2019 Introduction to Statistics with R

    5/17

    Intro to Statistics

    ! Used to rank order cases where the distance, orinterval, between each value is equal

    ! Each country has a longitude and latitude

    !   Longitude and latitude are interval variables

    Interval variables

  • 8/17/2019 Introduction to Statistics with R

    6/17

    Intro to Statistics

    Ratio variables

    !

    Same as interval variables but have a “true zero”

    ! Population (Population of 0 = extinct)

    ! Temperature °K (the Kelvin scale)

  • 8/17/2019 Introduction to Statistics with R

    7/17

    Intro to Statistics with R: Introduction

    Let’s Practice!

  • 8/17/2019 Introduction to Statistics with R

    8/17

    Intro to Statistics with R: Introduction

    On the Theory ofScales of

    Measurement

  • 8/17/2019 Introduction to Statistics with R

    9/17

    Intro to Statistics

    Types of variables

  • 8/17/2019 Introduction to Statistics with R

    10/17

    Intro to Statistics

    Race results

    2:34:01

    2:34:03

    2:34:09

    ...

  • 8/17/2019 Introduction to Statistics with R

    11/17

    Intro to Statistics

    Types of variables

  • 8/17/2019 Introduction to Statistics with R

    12/17

    Intro to Statistics with R: Introduction

    Let’s Practice!

  • 8/17/2019 Introduction to Statistics with R

    13/17

    Intro to Statistics with R: Introduction

    Quick summary

  • 8/17/2019 Introduction to Statistics with R

    14/17

    Intro to Statistics

    Types of variables

    !

    Independent vs. dependent variables! Vaccine trial example

    ! Independent = treatment (nominal)

    ! Dependent = disease rate (ratio)

    i i

  • 8/17/2019 Introduction to Statistics with R

    15/17

    Intro to Statistics

    Discrete vs. continuous

    Variable Type Discrete or Continuous?

    Nominal

    Ordinal

    Interval

    Ratio

    Discrete

    Discrete

    Continuous

    Continuous

    I S i i

  • 8/17/2019 Introduction to Statistics with R

    16/17

    Intro to Statistics

    Summary

    !

    Know your variable types!! Nominal

    ! Ordinal

    ! Interval

    ! Ratio

  • 8/17/2019 Introduction to Statistics with R

    17/17

    Intro to Statistics with R: Introduction

    Congratulations!