graphical descriptive statistics for qualitative, time series and relational data

46
GRAPHICAL DESCRIPTIVE GRAPHICAL DESCRIPTIVE STATISTICS FOR STATISTICS FOR QUALITATIVE, TIME SERIES QUALITATIVE, TIME SERIES AND RELATIONAL DATA AND RELATIONAL DATA

Post on 20-Dec-2015

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

GRAPHICAL DESCRIPTIVE GRAPHICAL DESCRIPTIVE STATISTICS FOR STATISTICS FOR

QUALITATIVE, TIME SERIES QUALITATIVE, TIME SERIES AND RELATIONAL DATAAND RELATIONAL DATA

Page 2: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Reasons To Collect Data

• Obtain Input to a Research Study

• Measure Performance

• Assist in Formulating Decision Alternatives

• Satisfy Curiosity– Knowledge for the Sake of Knowledge

Page 3: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Random Variables

• Random variables are phenomena or characteristics that are not known in advance

• Data are observations of random variables

Page 4: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

TYPES OF DATA

• Qualitative– Result to a survey question is non-numeric

• Categorical Data

• Ordinal (Ranked) Data

• Quantitative– Result to a survey question is a number

• Ratio Data – Has an “absolute 0” point, e.g. age

• Interval – 0 is simply another number – e.g. degrees Fahrenheit

Page 5: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Graphical TechniquesQualitative Data

• Pie Charts

• Bar Charts

Page 6: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Plot of Frequency Distributions

• Objective is to develop a frequency distribution table– Hand Count– Excel Approach

• COUNTIF command

Page 7: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Pie Charts

• Determine the relative frequency for each category

• Apportion sectors (wedges) of a 360 degree circle proportionately

Page 8: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Example

Frequency Distribution of Origin Frequency Distribution of Origin of Car Manufacturerof Car Manufacturer

FrequencyFrequency

AmericanAmerican 1616

AsianAsian 2020

EuropeanEuropean 4 4

Relative FrequencyRelative Frequency

.40.40

.50.50

.10.10

Page 9: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Pie Chart

Page 10: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Bar Charts

• Bars show the frequency or relative frequency of the observations

• Consider the same example

Page 11: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Frequency Bar Chart

Continent

0

5

10

15

20

25

American Asian European

Page 12: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Relative Frequency Bar Chart

Page 13: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

EXCELPie Charts

• Example -- 66 people surveyed and asked the color of their car -- Their choices:– Red– Blue– Black– White– Other

• These are recorded in cells A2 to A67 of a spreadsheet

Page 14: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Determining Frequency DistributionsStep 1 – Record Responses in a Column

Record responses Record responses recorded in column Arecorded in column A

Page 15: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Step 2 – Type Categories in another Column

Type Categories in Type Categories in Column BColumn B

Page 16: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Step 3 – Use COUNTIF to Determine Frequencies

=COUNTIF( )=COUNTIF( )

Drag down to C3:C6Drag down to C3:C6

What it should match

(Relative Address)

B2B2

Where data is located

(Drag down)

$A$2:$A$67,$A$2:$A$67,

Page 17: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Go to Chart Wizard

2.Select Pie

Creating a Pie Chart

3.Select this sub-type

Click NextClick Next

Page 18: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Creating a Pie Chart - 2

Highlight Cells B1through C6First Column – Labels

Second Column -- Frequencies

Click NextClick Next

Page 19: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Creating a Pie Chart - 3

1.Put in an appropriate title

2.Click Legend Tab

Page 20: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Creating a Pie Chart - 4

1.Uncheck Show legend

2.Click Data Labels Tab

Page 21: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Creating a Pie Chart - 5

Put bullet in Show label and percent

Click FinishClick Finish

Page 22: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Completed Pie Chart

Page 23: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Editing Options

• Enlarge

• Put Labels Inside Wedges

• Change Colors

• Add Text

• Etc.

Page 24: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

EXCELBar Charts

• What we call Bar Charts, Excel calls Column Charts– The steps are similar

• If you already have a pie chart, you can convert it to a bar chart as shown on the next slide:

Page 25: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Creating a Bar Chart From a Pie Chart

1. Right Mouse Click on graph

2. Select Chart Type

3. Select Column

Page 26: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Resulting Bar Chart

Page 27: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Line Charts for Time Series Data

• Time series -- Values vs. time– Dow Jones vs. Day– Sales vs. Quarter– Population vs. Year

• Typically depicted as line charts

• In Excel if you already have a bar chart you can convert it to a line chart using the method on the last slide– Otherwise we do the following

Page 28: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Example -- Sales at Epencil.com

1.Go to Chart Wizard

2.Select Line

Click NextClick Next

Page 29: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Enter Cells with

With Sales FiguresB2:B8

2.Click Series Tab

Page 30: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Enter Chart Title

2.Enter YearsCells A2:A8

Click NextClick Next

Page 31: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Note: In this dialogue box, there are many editing features

2. Entera label for Y-axis

1. Enter a label for X-axis

3.Click Legend Tab

Page 32: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Uncheck Show legend

2.

Click FinishClick Finish

Page 33: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Can now edit figure: Resize

Delete Gray BackgroundDelete Lines

Etc.

Page 34: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Scatter Diagrams -- Showing Relationships Between Variables

• A scatter diagram shows the relationship between two quantitative variables as a plot of a series of points (observations) – (Grade vs. Study time)– (Sales vs. Advertising $)– (Production vs. Resources)

• Types of relations that can be detected– Linear (Positive or Negative)

• Least Squares Line -- “Best” line through points– Nonlinear– No Relation

Page 35: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Example

• Sales of Pencils at Epencil vs. Advertising $ spent during the week

Page 36: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Click Chart Wizard

2.Select Scatter

Click NextClick Next

Page 37: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Enter data columns for both X and Y

with the column for X first.Do not include the labels.

2.Click Series Tab

Page 38: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Enter Chart Title

Click NextClick Next

Page 39: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

In this dialogue box there are many editing features

1.Uncheck Show legend2.

Click Titles Tab

Page 40: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Enter X-axis Label

2.Enter Y-axis Label

Click FinishClick Finish

Page 41: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Can now edit figure: Resize

Delete Gray BackgroundDelete Lines

Etc.

Page 42: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Determining Trend

• We can have Excel put the best straight line or other curve (parabola, etc.) through these points so that we can easily observe trend

Page 43: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

1.Right mouse click on any data point

so that squares appear in the data points

2.Select Add Trendlinefrom the Popup Menu

3.Select Type

(Usually Linear)

Page 44: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Trendline added

Page 45: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

How to Lie With Statistics

• Graphs can be used to accurately portray data

• However, sometimes a graph can be distorted in such a way as to skew the information it conveys

• Examples– Fatter or different shaped barsFatter or different shaped bars– Stretched or condensed axesStretched or condensed axes– No indication of a “break” on the axisNo indication of a “break” on the axis– Unlabeled axesUnlabeled axes

Page 46: GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA

Review

• How to construct by hand and by Excel– Pie Charts for Qualitative Data– Bar Charts for Qualitative Data– Line Charts for Time Series Data– Scatter Diagrams to Show Relationships

Between Variables

• How Graphs Can be Deceptive