Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © Cengage Learning. All rights reserved.

Similar presentations


Presentation on theme: "Copyright © Cengage Learning. All rights reserved."— Presentation transcript:

1 Copyright © Cengage Learning. All rights reserved.
Organizing Data 2 Copyright © Cengage Learning. All rights reserved.

2 2.1 Frequency Distributions, Histograms, and Related Topics Section
Copyright © Cengage Learning. All rights reserved.

3 Section 2.1 Objectives Construct frequency distributions
Construct frequency histograms, frequency polygons, relative frequency histograms, and ogives Identify basic distribution shapes: uniform, symmetric, skewed, and bimodal Larson/Farber 4th ed.

4 Frequency Distribution
A table that shows classes or intervals of data with a count of the number of entries in each class. The frequency, f, of a class is the number of data entries in the class. Class Frequency, f 1 – 5 5 6 – 10 8 11 – 15 6 16 – 20 21 – 25 26 – 30 4 Class width 6 – 1 = 5 Lower class limits Upper class limits Larson/Farber 4th ed.

5 Constructing a Frequency Distribution
Decide on the number of classes. Usually between 5 and 20; otherwise, it may be difficult to detect any patterns. Find the class width. Determine the range of the data. Divide the range by the number of classes. Round up to the next convenient number. Larson/Farber 4th ed.

6 Constructing a Frequency Distribution
Find the class limits. You can use the minimum data entry as the lower limit of the first class. Find the remaining lower limits (add the class width to the lower limit of the preceding class). Find the upper limit of the first class. Remember that classes cannot overlap. Find the remaining upper class limits. Larson/Farber 4th ed.

7 Constructing a Frequency Distribution
Make a tally mark for each data entry in the row of the appropriate class. Count the tally marks to find the total frequency f for each class. Larson/Farber 4th ed.

8 Guided Exercise 1: Constructing a Frequency Distribution
The following sample data set lists the number of minutes 50 Internet subscribers spent on the Internet during their most recent session. Construct a frequency distribution that has seven classes. Larson/Farber 4th ed.

9 Solution: Constructing a Frequency Distribution
Number of classes = 7 (given) Find the class width Round up to 12 Larson/Farber 4th ed.

10 Solution: Constructing a Frequency Distribution
Use 7 (minimum value) as first lower limit. Add the class width of 12 to get the lower limit of the next class. = 19 Find the remaining lower limits. Lower limit Upper limit 7 Class width = 12 19 31 43 55 67 79 Larson/Farber 4th ed.

11 Solution: Constructing a Frequency Distribution
The upper limit of the first class is 18 (one less than the lower limit of the second class). Add the class width of 12 to get the upper limit of the next class = 30 Find the remaining upper limits. Lower limit Upper limit 7 19 31 43 55 67 79 Class width = 12 18 30 42 54 66 78 90 Larson/Farber 4th ed.

12 Solution: Constructing a Frequency Distribution
Make a tally mark for each data entry in the row of the appropriate class. Count the tally marks to find the total frequency f for each class. Class Tally Frequency, f 7 – 18 IIII I 6 19 – 30 IIII IIII 10 31 – 42 IIII IIII III 13 43 – 54 IIII III 8 55 – 66 IIII 5 67 – 78 79 – 90 II 2 Σf = 50 Larson/Farber 4th ed.

13 Determining the Midpoint
Midpoint of a class [class mark] Class Midpoint Frequency, f 7 – 18 6 19 – 30 10 31 – 42 13 Class width = 12 Larson/Farber 4th ed.

14 Determining the Relative Frequency
Relative Frequency of a class Portion or percentage of the data that falls in a particular class. Class Frequency, f Relative Frequency 7 – 18 6 19 – 30 10 31 – 42 13 Larson/Farber 4th ed.

15 Determining the Cumulative Frequency
Cumulative frequency of a class The sum of the frequency for that class and all previous classes. Class Frequency, f Cumulative frequency 7 – 18 6 19 – 30 10 31 – 42 13 6 + 16 + 29 Larson/Farber 4th ed.

16 Expanded Frequency Distribution
Class Frequency, f Midpoint Relative frequency Cumulative frequency 7 – 18 6 12.5 0.12 19 – 30 10 24.5 0.20 16 31 – 42 13 36.5 0.26 29 43 – 54 8 48.5 0.16 37 55 – 66 5 60.5 0.10 42 67 – 78 72.5 48 79 – 90 2 84.5 0.04 50 Σf = 50 Larson/Farber 4th ed.

17 Graphs of Frequency Distributions
Frequency Histogram A bar graph that represents the frequency distribution. The horizontal scale is quantitative and measures the data values. The vertical scale measures the frequencies of the classes. Consecutive bars must touch. data values frequency Larson/Farber 4th ed.

18 Class Boundaries Class boundaries
The numbers that separate classes without forming gaps between them. The distance from the upper limit of the first class to the lower limit of the second class is 19 – 18 = 1. Half this distance is 0.5. Class Boundaries Frequency, f 7 – 18 6 19 – 30 10 31 – 42 13 6.5 – 18.5 First class lower boundary = 7 – 0.5 = 6.5 First class upper boundary = = 18.5 Larson/Farber 4th ed.

19 Class Boundaries Class Class boundaries Frequency, f 7 – 18 6.5 – 18.5
19 – 30 18.5 – 30.5 10 31 – 42 30.5 – 42.5 13 43 – 54 42.5 – 54.5 8 55 – 66 54.5 – 66.5 5 67 – 78 66.5 – 78.5 79 – 90 78.5 – 90.5 2 Larson/Farber 4th ed.

20 Exercise 1: Frequency Histogram
Construct a frequency histogram for the Internet usage frequency distribution. Class Class boundaries Midpoint Frequency, f 7 – 18 6.5 – 18.5 12.5 6 19 – 30 18.5 – 30.5 24.5 10 31 – 42 30.5 – 42.5 36.5 13 43 – 54 42.5 – 54.5 48.5 8 55 – 66 54.5 – 66.5 60.5 5 67 – 78 66.5 – 78.5 72.5 79 – 90 78.5 – 90.5 84.5 2 Larson/Farber 4th ed.

21 Solution: Frequency Histogram (using Midpoints)
Larson/Farber 4th ed.

22 Solution: Frequency Histogram (using class boundaries)
You can see that more than half of the subscribers spent between 19 and 54 minutes on the Internet during their most recent session. Larson/Farber 4th ed.

23 Graphs of Frequency Distributions
Frequency Polygon A line graph that emphasizes the continuous change in frequencies. data values frequency Larson/Farber 4th ed.

24 Exercise 2: Frequency Polygon
Construct a frequency polygon for the Internet usage frequency distribution. Class Midpoint Frequency, f 7 – 18 12.5 6 19 – 30 24.5 10 31 – 42 36.5 13 43 – 54 48.5 8 55 – 66 60.5 5 67 – 78 72.5 79 – 90 84.5 2 Larson/Farber 4th ed.

25 Solution: Frequency Polygon
The graph should begin and end on the horizontal axis, so extend the left side to one class width before the first class midpoint and extend the right side to one class width after the last class midpoint. You can see that the frequency of subscribers increases up to 36.5 minutes and then decreases. Larson/Farber 4th ed.

26 Graphs of Frequency Distributions
Relative Frequency Histogram Has the same shape and the same horizontal scale as the corresponding frequency histogram. The vertical scale measures the relative frequencies, not frequencies. data values relative frequency Larson/Farber 4th ed.

27 Exercise 3: Relative Frequency Histogram
Construct a relative frequency histogram for the Internet usage frequency distribution. Class Class boundaries Frequency, f Relative frequency 7 – 18 6.5 – 18.5 6 0.12 19 – 30 18.5 – 30.5 10 0.20 31 – 42 30.5 – 42.5 13 0.26 43 – 54 42.5 – 54.5 8 0.16 55 – 66 54.5 – 66.5 5 0.10 67 – 78 66.5 – 78.5 79 – 90 78.5 – 90.5 2 0.04 Larson/Farber 4th ed.

28 Solution: Relative Frequency Histogram
From this graph you can see that 20% of Internet subscribers spent between 18.5 minutes and 30.5 minutes online. Larson/Farber 4th ed.

29 Graphs of Frequency Distributions
Cumulative Frequency Graph or Ogive A line graph that displays the cumulative frequency of each class at its upper class boundary. The upper boundaries are marked on the horizontal axis. The cumulative frequencies are marked on the vertical axis. data values cumulative frequency Larson/Farber 4th ed.

30 Constructing an Ogive Construct a frequency distribution that includes cumulative frequencies as one of the columns. Specify the horizontal and vertical scales. The horizontal scale consists of the upper class boundaries. The vertical scale measures cumulative frequencies. Plot points that represent the upper class boundaries and their corresponding cumulative frequencies. Larson/Farber 4th ed.

31 Constructing an Ogive Connect the points in order from left to right.
The graph should start at the lower boundary of the first class (cumulative frequency is zero) and should end at the upper boundary of the last class (cumulative frequency is equal to the sample size). Larson/Farber 4th ed.

32 Example: Ogive Construct an ogive for the Internet usage frequency distribution. Class Class boundaries Frequency, f Cumulative frequency 7 – 18 6.5 – 18.5 6 19 – 30 18.5 – 30.5 10 16 31 – 42 30.5 – 42.5 13 29 43 – 54 42.5 – 54.5 8 37 55 – 66 54.5 – 66.5 5 42 67 – 78 66.5 – 78.5 48 79 – 90 78.5 – 90.5 2 50 Larson/Farber 4th ed.

33 Solution: Ogive From the ogive, you can see that about 40 subscribers spent 60 minutes or less online during their last session. The greatest increase in usage occurs between 30.5 minutes and 42.5 minutes. Larson/Farber 4th ed.

34 Distribution Shapes Histograms are valuable and useful tools. If the raw data came from a random sample of population values, the histogram constructed from the sample values should have a distribution shape that is reasonably similar to that of the population. Several terms are commonly used to describe histograms and their associated population distributions.

35 Distribution Shapes Types of Histograms Figure 2-8

36 Humps Does the histogram have a single, central hump or several separated bumps? Humps in a histogram are called modes. A histogram with one main peak is dubbed unimodal; histograms with two peaks are bimodal; histograms with three or more peaks are called multimodal.

37 Humps A bimodal histogram has two apparent peaks:

38 Humps A histogram that doesn’t appear to have any mode and in which all the bars are approximately the same height is called uniform:

39 Symmetry Is the histogram symmetric?
If you can fold the histogram along a vertical line through the middle and have the edges match pretty closely, the histogram is symmetric.

40 Symmetry (cont.) The (usually) thinner ends of a distribution are called the tails. If one tail stretches out farther than the other, the histogram is said to be skewed to the side of the longer tail. In the figure below, the histogram on the left is said to be skewed left, while the histogram on the right is said to be skewed right.

41 Anything Unusual? Do any unusual features stick out?
Sometimes it’s the unusual features that tell us something interesting or exciting about the data. You should always mention any stragglers, or outliers, that stand off away from the body of the distribution. Are there any gaps in the distribution? If so, we might have data from more than one group.

42 Anything Unusual? The following histogram has outliers—there are three cities in the leftmost bar:

43 Graphing Quantitative Data Sets
Dot plot Each data entry is plotted, using a point, above a horizontal axis Data: 21, 25, 25, 26, 27, 28, 30, 36, 36, 45 26 Larson/Farber 4th ed.

44 Example: Constructing a Dot Plot
Use a dot plot organize the text messaging data. So that each data entry is included in the dot plot, the horizontal axis should include numbers between 70 and 160. To represent a data entry, plot a point above the entry's position on the axis. If an entry is repeated, plot another point above the previous point. Larson/Farber 4th ed.

45 Solution: Constructing a Dot Plot
From the dot plot, you can see that most values cluster between 105 and 148 and the value that occurs the most is 126. You can also see that 78 is an unusual data value. Larson/Farber 4th ed.

46 Section 2.1 Summary Constructed frequency distributions
Constructed frequency histograms, frequency polygons, relative frequency histograms and ogives Compared and contrasted distribution shapes Constructed dot plot and analyzed distribution of data Larson/Farber 4th ed.

47 Bar Graphs, Circle Graphs, and Time-Series Graphs
Section 2.2 Bar Graphs, Circle Graphs, and Time-Series Graphs Copyright © Cengage Learning. All rights reserved.

48 Focus Points Determine types of graphs appropriate for specific data.
Construct bar graphs, Pareto charts, circle graphs, and time-series graphs. Interpret information displayed in graphs.

49 Feature of Bar Graphs Bars can be horizontal or vertical
The length of each bar represents the quantity to compare Bars are of uniform width and are uniformly spaced All graphs must be “stand-alone” entities should be captioned, titled, and labeled to such an extent that no further explanation is needed all axes must be appropriately scaled (numbered) and labeled Larson/Farber 4th ed.

50 Example 4 – Bar Graph Figure 2-11 shows two bar graphs depicting the life expectancies for men and women born in the designated year. Let’s analyze the features of these graphs. Life Expectancy Figure 2-11

51 Example 4 – Solution The graphs are called clustered bar graphs because there are two bars for each year of birth. One bar represents the life expectancy for men, and the other represents the life expectancy for women. The height of each bar represents the life expectancy (in years).

52 Bar Graphs, Circle Graphs, and Time-Series Graphs
An important feature illustrated in Figure 2-11(b) is that of a changing scale. Notice that the scale between 0 and 65 is compressed. The changing scale amplifies the apparent difference between life spans for men and women, as well as the increase in life spans from those born in 1980 to the projected span of those born in 2010.

53 Segmented Bar Charts A segmented (or stacked) bar chart displays the same information as a pie chart, but in the form of bars instead of circles. Each bar is treated as the “whole” and is divided proportionally into segments corresponding to the percentage in each group. Titanic Survivors: Here is the segmented bar chart for ticket Class by Survival status:

54 Example: Misleading Graphs
Fig 2-1: one or both of the axes begin at some value other than zero, so that differences are exaggerated.

55 Graphing Qualitative Data Sets
Pareto Chart A vertical bar graph in which the height of each bar represents frequency or relative frequency. The bars are positioned in order of decreasing height, with the tallest bar positioned at the left. Frequency Categories Larson/Farber 4th ed.

56 Example: Constructing a Pareto Chart
In a recent year, the retail industry lost $41.0 million in inventory shrinkage. Inventory shrinkage is the loss of inventory through breakage, pilferage, shoplifting, and so on. The causes of the inventory shrinkage are administrative error ($7.8 million), employee theft ($15.6 million), shoplifting ($14.7 million), and vendor fraud ($2.9 million). Use a Pareto chart to organize this data. (Source: National Retail Federation and Center for Retailing Education, University of Florida) Larson/Farber 4th ed.

57 Solution: Constructing a Pareto Chart
Cause $ (million) Admin. error 7.8 Employee theft 15.6 Shoplifting 14.7 Vendor fraud 2.9 From the graph, it is easy to see that the causes of inventory shrinkage that should be addressed first are employee theft and shoplifting. Larson/Farber 4th ed.

58 Graphing Qualitative Data Sets
Pie Chart A circle is divided into sectors that represent categories. The area of each sector is proportional to the frequency of each category. Larson/Farber 4th ed.

59 Example: Constructing a Pie Chart
The numbers of motor vehicle occupants killed in crashes in 2005 are shown in the table. Use a pie chart to organize the data. (Source: U.S. Department of Transportation, National Highway Traffic Safety Administration) Vehicle type Killed Cars 18,440 Trucks 13,778 Motorcycles 4,553 Other 823 Larson/Farber 4th ed.

60 Solution: Constructing a Pie Chart
Find the relative frequency (percent) of each category. Vehicle type Frequency, f Relative frequency Cars 18,440 Trucks 13,778 Motorcycles 4,553 Other 823 37,594 Larson/Farber 4th ed.

61 Solution: Constructing a Pie Chart
Construct the pie chart using the central angle that corresponds to each category. To find the central angle, multiply 360º by the category's relative frequency. For example, the central angle for cars is 360(0.49) ≈ 176º Larson/Farber 4th ed.

62 Solution: Constructing a Pie Chart
Vehicle type Frequency, f Relative frequency Central angle Cars 18,440 0.49 Trucks 13,778 0.37 Motorcycles 4,553 0.12 Other 823 0.02 360º(0.49)≈176º 360º(0.37)≈133º 360º(0.12)≈43º 360º(0.02)≈7º Larson/Farber 4th ed.

63 Solution: Constructing a Pie Chart
Vehicle type Relative frequency Central angle Cars 0.49 176º Trucks 0.37 133º Motorcycles 0.12 43º Other 0.02 From the pie chart, you can see that most fatalities in motor vehicle crashes were those involving the occupants of cars. Larson/Farber 4th ed.

64 Graphing Paired Data Sets
Time Series Data set is composed of quantitative entries taken at regular intervals over a period of time. e.g., The amount of precipitation measured each day for one month. Use a time series chart to graph. time Quantitative data Larson/Farber 4th ed.

65 Exercise 1: Constructing a Time Series Chart
The table lists the number of cellular telephone subscribers (in millions) for the years 1995 through Construct a time series chart for the number of cellular subscribers. (Source: Cellular Telecommunication & Internet Association) Larson/Farber 4th ed.

66 Solution: Constructing a Time Series Chart
Let the horizontal axis represent the years. Let the vertical axis represent the number of subscribers (in millions). Plot the paired data and connect them with line segments. Larson/Farber 4th ed.

67 Solution: Constructing a Time Series Chart
The graph shows that the number of subscribers has been increasing since 1995, with greater increases recently. Larson/Farber 4th ed.

68 Exercise 2: Constructing a Time Series Chart
Avg. Bill   YEAR (Dollars) 1995 51.00 1996 47.70 1997 42.78 1998 39.43 1999 41.24 2000 45.27 2001 47.37 2002 48.32 2003 49.99 2004 51.23 2005 54.30 The table lists the number of cellular telephone subscribers (in millions) for the years 1995 through Construct a time series chart for a subscriber’s average local monthly cellular bill. Note any patterns. Larson/Farber 4th ed.

69 Exercise 2: Constructing a Time Series Chart
Larson/Farber 4th ed.

70 Section 2.2 Summary Graphed quantitative data using stem-and-leaf plots and dot plots Graphed qualitative data using pie charts and Pareto charts Graphed paired data sets using time series charts Larson/Farber 4th ed.

71 Steam-and-Leaf Displays
Section 2.3 Steam-and-Leaf Displays Larson/Farber 4th ed.

72 Focus Points Construct a stem-and-leaf display from raw data
Use a stem-and-leaf display to visualize data distribution Compare a stem-and-leaf display to a histogram

73 Exploratory Data Analysis
Exploratory Data Analysis (EDA) is an approach/philosophy for data analysis that employs a variety of techniques (mostly graphical) to maximize insight into a data set uncover underlying structure detect outliers and anomalies

74 Exploratory Data Analysis
Together with histograms and other graphics techniques, the stem-and-leaf display is one of many useful ways of studying data in a field called EDA Exploratory data analysis techniques are particularly useful for detecting patterns and extreme data values EDA techniques are similar to those of an explorer An explorer has a general idea of destination but is always alert for the unexpected

75 Graphing Quantitative Data Sets
Stem-and-leaf plot Each number is separated into a stem and a leaf. Similar to a histogram. Still contains original data values. 26 2 3 4 5 Data: 21, 25, 25, 26, 27, 28, , 36, 36, 45 Larson/Farber 4th ed.

76 Example: Constructing a Stem-and-Leaf Plot
The following are the numbers of text messages sent last month by the cellular phone users on one floor of a college dormitory. Display the data in a stem-and-leaf plot. Summer assignment contained a similar exercise. Larson/Farber 4th ed.

77 Solution: Constructing a Stem-and-Leaf Plot
The data entries go from a low of 78 to a high of 159. Use the rightmost digit as the leaf. For instance, 78 = 7 | and = 15 | 9 List the stems, 7 to 15, to the left of a vertical line. For each data entry, list a leaf to the right of its stem. Larson/Farber 4th ed.

78 Solution: Constructing a Stem-and-Leaf Plot
Include a key to identify the values of the data. From the display, you can conclude that more than 50% of the cellular phone users sent between 110 and 130 text messages. Larson/Farber 4th ed.

79 Stem-and-Leaf Displays vs. Histograms
Stem-and-leaf displays show the distribution of a quantitative variable, like histograms, while preserving the individual values. Stem-and-leaf displays contain all the information found in a histogram and, when carefully drawn, show the distribution.

80 Stem-and-Leaf vs. Histogram
Compare the histogram and stem-and-leaf display for the pulse rates of 24 women at a health clinic. Which graphical display do you prefer?

81 Unit Summary: Chapter 2 Frequency Tables show how the data are distributed within classes A histogram is a graphical display of the information in a frequency table Bar graphs, Pareto charts, and pie charts are useful to show how quantitative or qualitative data are distributed over chosen categories Time-series graphs show how data change over time Stem-and-leaf displays are an effective means of ordering data and showing distribution features Larson/Farber 4th ed.


Download ppt "Copyright © Cengage Learning. All rights reserved."

Similar presentations


Ads by Google