chapter one (stat 160)

19
Chapter I : Describing Data With Graphs Kian Jahromi May 31, 2012 Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 1 / 19

Upload: elder-mathematician

Post on 20-Jun-2015

1.033 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Chapter One (STAT 160)

Chapter I : Describing Data With Graphs

Kian Jahromi

May 31, 2012

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 1 / 19

Page 2: Chapter One (STAT 160)

Table of contents

1 VARIABLES AND DATATYPES OF VARIABLES

2 GRAPHS FOR CATEGORICAL DATA

3 GRAPHS FOR QUANTITATIVE DATA

4 Interpreting Graphs with a Critical Eye

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 2 / 19

Page 3: Chapter One (STAT 160)

VARIABLES AND DATA

Definitions

Definition

A Variable is a characteristic that changes or varies over time and/or fordifferent individuals or objects under consideration.

Definition

An experimental unit is the individual or object on which a variable ismeasured. A single measurement or data value results when a variable isactually measured on an experimental unit.

Definition

A population is the set of all measurements of interest to the investigator.

Definition

A sample is a subset of measurements selected from the population ofinterest.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 3 / 19

Page 4: Chapter One (STAT 160)

VARIABLES AND DATA

Example

Identify the experimental units on which the following variables aremeasured:a. Gender of a studentThe studentb. Number of errors on a midterm examThe midterm examc. Age of a cancer patientThe patiente. Colour of a car entering a parking lotThe Car

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 4 / 19

Page 5: Chapter One (STAT 160)

VARIABLES AND DATA

Definition

Univariate data result when a single variable is measured on a singleexperimental unit.

Definition

Bivariate data result when two variables are measured on a singleexperimental unit. Multivariate data result when more than two variablesare measured.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 5 / 19

Page 6: Chapter One (STAT 160)

VARIABLES AND DATA

The following data set is a multivariate data set. Each column itself is aUnivariate data set.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 6 / 19

Page 7: Chapter One (STAT 160)

VARIABLES AND DATA TYPES OF VARIABLES

Definition

Qualitative variables measure a quality or characteristic on eachexperimental unit. Quantitative variables measure a numerical quantityor amount on each experimental unit.

Definition

Definition A discrete variable can assume only a finite or countablenumber of values. A continuous variable can assume the infinitely manyvalues corresponding to the points on a line interval.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 7 / 19

Page 8: Chapter One (STAT 160)

GRAPHS FOR CATEGORICAL DATA

Graphs for Categorical Data

After the data have been collected, they can be consolidated andsummarized to show the following information:

(i) What values of the variable have been measured

(ii) How often each value has occurred For this purpose, you canconstruct a statistical table that can be used to display the

Example

A bag contains 25 candies:

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 8 / 19

Page 9: Chapter One (STAT 160)

GRAPHS FOR CATEGORICAL DATA

So, the Statistical table for last page example is as follows:

Also, it is possible to express the frequency of each categories usingfollowing formulas:

(i) Relative frequency= frequencyn (n is the total number of

measurements)(ii) Percent= 100 × Relative frequency

The following table contain the relative frequency and percent for eachcategories of last example:

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 9 / 19

Page 10: Chapter One (STAT 160)

GRAPHS FOR CATEGORICAL DATA

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 10 / 19

Page 11: Chapter One (STAT 160)

GRAPHS FOR CATEGORICAL DATA

Example

Fifty people are grouped into four categories A, B, C, and D and thenumber of people who fall into each category is shown in the table:

The following figure is the bar chart for upper table:

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 11 / 19

Page 12: Chapter One (STAT 160)

GRAPHS FOR CATEGORICAL DATA

and the pie chart is as follows:

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 12 / 19

Page 13: Chapter One (STAT 160)

GRAPHS FOR QUANTITATIVE DATA

GRAPHS FOR QUANTITATIVE DATA

Line ChartsWhen a quantitative variable is recorded over time at equally spacedintervals (such as daily, weekly, monthly, quarterly, or yearly), the data setforms a time series. Time series data are most effectively presented on aline chart with time as the horizontal axis. The idea is to try to discern apattern or trend that will likely continue into the future, and then to usethat pattern to make accurate predictions for the immediate future.

Example

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 13 / 19

Page 14: Chapter One (STAT 160)

GRAPHS FOR QUANTITATIVE DATA

DotplotsMany sets of quantitative data consist of numbers that cannot easily beseparated into categories or intervals of time. You need a different way tograph this type of data! The simplest graph for quantitative data is thedotplot. For a small set of measurements for example, the set 2, 6, 9, 3, 7,6 you can simply plot the measurements as points on a horizontal axis.

Example

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 14 / 19

Page 15: Chapter One (STAT 160)

GRAPHS FOR QUANTITATIVE DATA

Stem and Leaf PlotsAnother simple way to display the distribution of a quantitative data set isthe stem and leaf plot. This plot presents a graphical display of the datausing the actual numerical values of each data point.How Do I Construct a Stem and Leaf Plot?

1. Divide each measurement into two parts: the stem and theleaf .

2. List the stems in a column, with a vertical line to their right.

3. For each measurement, record the leaf portion in the samerow as its corresponding stem.

4. Order the leaves from lowest to highest in each stem.

5. Provide a key to your stem and leaf coding so that thereader can recreate the actual measurements if necessary.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 15 / 19

Page 16: Chapter One (STAT 160)

GRAPHS FOR QUANTITATIVE DATA

Example

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 16 / 19

Page 17: Chapter One (STAT 160)

GRAPHS FOR QUANTITATIVE DATA

Example

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 17 / 19

Page 18: Chapter One (STAT 160)

Interpreting Graphs with a Critical Eye

Definition

A distribution is symmetric if the left and right sides of the distribution,when divided at the middle value, form mirror images.

Definition

A distribution is skewed to the right if a greater proportion of themeasurements lie to the right of the peak value. Distributions that areskewed right contain a few unusually large measurements.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 18 / 19

Page 19: Chapter One (STAT 160)

Interpreting Graphs with a Critical Eye

Definition

A distribution is skewed to the left if a greater proportion of themeasurements lie to the left of the peak value. Distributions that areskewed left contain a few unusually small measurements.

Definition

A distribution is unimodal if it has one peak; a bimodal distribution hastwo peaks.Bimodal distributions often represent a mixture of two differentpopulations in the data set.

Kian Jahromi () Chapter I : Describing Data With Graphs May 31, 2012 19 / 19