Docsity

Data Presentation - Lecture Notes | STAT 2160, Study notes of Business Statistics

Partial preview of the text

Download Data Presentation - Lecture Notes | STAT 2160 and more Study notes Business Statistics in PDF only on Docsity!

Chapter 1. Data Presentation

Statistics and Data

Section 20269, J.C. Wang

Department of Statistics Western Michigan University

Goal and Objectives

  1. To understand the difference between types of data — categorical and numerical
  2. To learn how to analyze each type I (^) To explore the categorical levels of data I (^) To explore the numerical levels of data

Outline

Statistics and Data Statistics and Data Types of Data Levels of Measurement Example of Data Types and Levels of Measurement Summarizing Categorical Data Relative Frequency Table Bar Chart Pie Chart

Summarizing Numerical Data Stem-and-Leaf Plot Relative Frequency Table and Histogram Five-Number Summary and Boxplots Dotplot Data Shape

Statistics and Data

I (^) Statistics I (^) (broad sense) collection of methods/procedures for collecting data and analyzing data I (^) (narrower sense) numbers arise out of data analysis, eg., average I (^) Data I (^) collection of measurements made on a number of subjects I (^) example: CLASS DATA set (page 2 of textbook) has six different measurements on ten students

Levels of Measurement

Numerical Data

I (^) Interval: I (^) distance exists but no ratios I (^) zero is arbitrary and not an indication of absence of the variable; eg.’s, temperature scale, IQ scores, GPA I (^) Ratio: ratios exists and zero indicates an absence of the variable

Interval Measurement

Example: Temperature

I 60 ◦F − 30 ◦F = 30◦F

I 60 ◦F is not twice as warm as 30◦F I 0 ◦F: not absence of temperature

Ratio Measurement

Two types

I (^) Discrete: result of a counting process, whole numbers (i.e., integers), eg., result of question “how many children in your family?” I (^) Continuous: result of a measuring process, eg.’s, age, money, time, mph, height, weight

Example

CLASS DATA

I (^) Variables Sex and Transport are nominal I (^) Variable (Class) Level is ordinal I (^) Variable GPA is an interval measurement I (^) Variables Hours taken and Sleep hours last night are ratio measurements. I (^) Note: The column Student is used as data label. It’s not used in data analysis. However, it could be used to label observations in graphical presentation or tabular outcomes. Other data labels include students’ names, SSNs, PINs, etc.

Relative Frequency Table

for nominal data

Arrange the rows of relative frequency table in decreasing order of frequencies of the categories. Redo previous example:

Major Frequency Relative % GBS 28 50.0% ACT 16 28.6% MGT 8 14.3% MKT 4 7.1% Total 56 100.0%

Note: it is recommended not to apply this to ordinal data — in such case, the rows should be kept in the order of categories.

Bar Chart

is used to present frequencies or relative frequencies graphically — draw bars (at the same base) with heights representing frequencies or relative frequencies

ACT MGT MKT GBS

Frequency

0

5

10

15

20

25

30 Note: use only relative frequency for comparison of multiple data sets having the same variable of same categories.

Pareto Chart

for nominal data

A Pareto chart is a bar chart used for nominal data (only, recommended) in which bars are arranged in decreasing order (left to right) of heights. Redo previous example:

GBS ACT MGT MKT

Frequency

0

5

10

15

20

25

30

Pie Chart

I (^) Picture illustrating the distribution of data I (^) Circle divided into slices — number of slices corresponds to the number of categories I (^) Size of slice is proportional I (^) Relative frequency percents make it easier to create a proportional pie chart

Use of Stem-and-Leaf Plot

to identify the following I (^) typical value I (^) spred about the typical value I (^) data gaps I (^) shape (distribution) of data I (^) number & location of peaks I (^) outlying values

Construction of Stem-and-Leaf Plot

  1. sort data (recommended)
  2. select leading digits for stems
  3. list all possible stems
  4. record leaf for each observation beside the corresponding stem, round off if necessary
  5. indicate units for stems & leaves
  6. note: if isolated extreme values (low or high) exist, write them out instead

Example of Stem-and-Leaf Plot

Summer II Quiz Data (sorted)

Stemplot of Summer Quiz Data

stem width = 10 0 | 8 1 | 1 3 9 2 | 1 3 5 5 5 8 3 | 1 5 9 4 | 7

Stemplot of Quiz Data

different set of stems

Each stem in the previous example split in two

stem width = 5 0 | 8 1 | 1 3 1 | 9 2 | 1 3 2 | 5 5 5 8 3 | 1 3 | 5 9 4 | 4 | 7

Construction of Rel.Freq. Table

  1. Determine number of classes, k (5 to 15 recommended)
  2. Determine class interval width = range ÷(k − 1 )
  3. Establish classes’ boundaries and use proper inclusion rule (left- or right-) so that classes not overlap
  4. Must include entire range of data

Construction of Rel.Freq. Table

cont’d

  1. Choose classes to facilitate interpretation — shape, etc.
  2. Tally data into appropriate classes
  3. Total frequency of each class
  4. Calculate rel. freq.’s
  5. Calculate cumulative (rel.) freq.’s if needed

Example of Rel.Freq. Table

Summer II Quiz Data (sorted)

range = 47 − 8 = 39 and set k = 4 then width = 39 ÷ (4 − 1) = 13 right-inclusion ⇒ (−5)–8, 8–21, 21–34, 34– Class Freq. Rel.Freq. Cum.Rel.Freq. −5–8 1 0.071 0. 8–21 4 0.286 0. 21–34 6 0.429 0. 34–47 3 0.214 1. Total 14 1. class interval includes right boundary

Construction of Histogram

I (^) Vertical bar chart constructed at boundaries of each class I (^) Bars of same width and joined at boundaries I (^) Height represents class freq. or rel.freq. I (^) Classes listed and evenly spaced along horizontal axis I (^) (Rel.) Freq. listed along vertical axis, scaled to account for highest (rel.) freq. I (^) Comparison histogram: use rel. freq. only

Five-number Summary

I (^) MIN = Minimum data value I (^) Q 1 = first quartile = upper boundary of first quarter of data values I (^) MED = middle value of data = second quartile I (^) Q 3 = third quartile = upper boundary of third quarter of data values I (^) MAX = Maximum data value

Five-number Summary

Summer II Quiz Example

data 8 11 13 19 21 23 25 25 25 28 31 35 39 47 order(1 2 3 4 5 6 7 8 9 10 11 12 13 14) n=14; .25(n+1)=3.75; .5(n+1)=7.5; .75(n+1)=11.

Use textbook formula (pages 12 & 13) MIN = 8 Q 1 = 16 = (3rd obs. + 4th obs.)/2 = (13+19)/ MED = 25 = (7th obs. + 8th obs.)/2 = (25+25)/ Q 3 = 33 = (11th obs. + 12th obs.)/2 = (31+35)/ MAX = 47

Construction of Boxplot

Skeletel Boxplot

  1. Draw 5-lines that includes range of data and quartiles
  2. Draw box extending from Q 1 to Q 3
  3. Draw line inside box at median
  4. Extend horizontal lines (whiskers) from box to minimum and maximum

Skeletel Boxplot

Summer II Quiz Example

10 20 30 40

Skeletel Boxplot Summer II Quiz Example

Note: different computation methods used for quartiles^ Quiz Scores

Symmetry and Skewness

based on histogram, stemplot and dotplot

I (^) Histogram: draw a smooth curve over the top of the bars I (^) Stemplot: firt turn 90 degrees counterclockwise, draw a smooth curve over the ends of the leaves I (^) Dotplot: draw a smooth curve over the top of the stacked dots I (^) Examine the tails of the curve (examples on page 14 of textbook) I (^) Left tail longer than right ⇒ left-skewed data I (^) Right tail longer than left ⇒ right-skewed data I (^) Both tails approximately the same ⇒ symmetric data

Symmetry and Skewness

based on boxplot

I (^) Use only skeletel boxplot in horizontal position to examine data shape I (^) Examine the length of the whiskers (example on page 14 of textbook) I (^) Left whisker longer than right ⇒ left-skewed data I (^) Right whisker longer than left ⇒ right-skewed data I (^) Both whiskers approximately the same ⇒ symmetric data