Docsity

Understanding Data: A Statistics Primer, Study notes of Statistics

Partial preview of the text

Download Understanding Data: A Statistics Primer and more Study notes Statistics in PDF only on Docsity!

Section 1.

The Structure of Data

Outline

ļ‚— Data

ļ‚— Cases and variables

ļ‚— Categorical and quantitative variables

ļ‚— Explanatory and response variables

ļ‚— Using data to answer a question

Data

ļ‚— Data are a set of measurements taken on a set

of individual units

ļ‚— Usually data is stored and presented in a

dataset , comprised of variables measured on

cases

Cases and Variables

We obtain information about cases or units.

A variable is any characteristic that is

recorded for each case.

ļ‚— Generally each case makes up a row in a

dataset, and each variable makes up a column

Intro Statistics Survey Data

Diet Coke and Calcium

  • Diet cola Drink Calcium Excreted
  • Diet cola
  • Diet cola
  • Diet cola
  • Diet cola
  • Diet cola
  • Diet cola
  • Diet cola
    • Water
    • Water
    • Water
    • Water
    • Water
    • Water
    • Water
    • Water

Data Applicable to You

ļ‚— Think of a potential dataset (it doesn’t have to

actually exist) that you would be interested in

analyzing

ļ‚”What are the cases?

ļ‚”What are the variables?

ļ‚”What interesting questions could it help you

answer?

Kidney Cancer

Source: Gelman et. al. Bayesian Data Anaylsis, CRC Press, 2004.

Counties with the highest kidney cancer death rates

Kidney Cancer

ļ‚— If the values in the kidney cancer dataset are

rates of kidney cancer deaths, then the cases

are counties

ļ‚— If the values in the kidney cancer dataset are

yes/no, then the cases are people

Categorical versus Quantitative

  • A categorical variable divides the

cases into groups

  • A quantitative variable measures a

numerical quantity for each case

ļ‚— Variables are classified as either categorical

or quantitative :

Categorical Quantitative

Data can be used to answer interesting

questions!

Using Data to Answer a Question

1. Can eating a yogurt a day cause you to lose weight?
2. Do males find females more attractive if they wear red?
3. Does louder music cause people to drink more beer?
4. Are lions more likely to attack after a full moon?
(the answer to all of these questions is yes!)

Explanatory and Response

If we are using one variable to help us

understand or predict values of another

variable, we call the former the explanatory

variable and the latter the response variable

Examples:

ļ‚— Does meditation help reduce stress?

ļ‚— Does sugar consumption increase hyperactivity?

Variables

For each of the following situations:

ļ‚” Which is the explanatory and which is the response
variable?
1. Can eating a yogurt a day cause you to lose weight?
2. Do males find females more attractive if they wear red?
3. Does louder music cause people to drink more beer?
4. Are lions more likely to attack after a full moon?