Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter Goals Learn how to present and describe sets of data.

Similar presentations


Presentation on theme: "Chapter Goals Learn how to present and describe sets of data."— Presentation transcript:

1 Chapter 2: Descriptive Analysis and Presentation of Single-Variable Data

2 Chapter Goals Learn how to present and describe sets of data.
Learn measures of central tendency, measures of dispersion (spread), measures of position, and types of distributions. Learn how to interpret findings so that we know what the data is telling us about the sampled population.

3 2.1: Graphic Presentation of Data
Use initial exploratory data-analysis techniques to produce a pictorial representation of the data. Resulting displays reveal patterns of behavior of the variable being studied. The method used is determined by the type of data and the idea to be presented. No single correct answer when constructing a graphic display.

4 Circle Graphs and Bar Graphs: Graphs that are used to summarize attribute data.
Circle graphs (pie diagrams) show the amount of data that belongs to each category as a proportional part of a circle. Bar graphs show the amount of data that belongs to each category as proportionally sized rectangular areas.

5 Example: The table below lists the number of automobiles sold last week by day for a local dealership. Day Number Sold Monday 15 Tuesday 23 Wednesday 35 Thursday 11 Friday 12 Saturday 42 Describe the data using a circle graph and a bar graph.

6 Automobiles Sold Last Week

7 Automobiles Sold Last Week

8 Pareto Diagram: A bar graph with the bars arranged from the most numerous category to the least numerous category. It includes a line graph displaying the cumulative percentages and counts for the bars. Note: The Pareto diagram is often used in quality control applications. Used to identify the number and type of defects that happen within a product or service.

9 Example: The final daily inspection defect report for a cabinet manufacturer is given in the table below. Defect Number Dent 5 Stain 12 Blemish 43 Chip 25 Scratch 40 Others 10 Construct a Pareto diagram for this defect report. Management has given the cabinet production line the goal of reducing their defects by 50%. What two defects should they give special attention to in working toward this goal?

10 Solution: The production line should try to eliminate blemishes and scratches. This would cut defects by more than 50%.

11 Quantitative Data: One reason for constructing a graph of quantitative data is to examine the distribution - is the data compact, spread out, skewed, symmetric, etc. Distribution: The pattern of variability displayed by the data of a variable. The distribution displays the frequency of each value of the variable. Dotplot Display: Displays the data of a sample by representing each piece of data with a dot positioned along a scale. This scale can be either horizontal or vertical. The frequency of the values is represented along the other scale.

12 The figure below is a dotplot for the 50 lifetimes.
Example: A random sample of the lifetime (in years) of 50 home washing machines is given below. The figure below is a dotplot for the 50 lifetimes. . : : ..: :.::::::.. .:: : : Notice how the data is “bunched” near the lower extreme and more “spread out” near the higher extreme.

13 Background: The stem-and-leaf display has become very popular for summarizing numerical data. It is a combination of graphing and sorting. The actual data is part of the graph. Well-suited for computers. Stem-and-Leaf Display: Pictures the data of a sample using the actual digits that make up the data values. Each numerical data is divided into two parts: The leading digit(s) becomes the stem, and the trailing digit(s) becomes the leaf. The stems are located along the main axis, and a leaf for each piece of data is located so as to display the distribution of the data.

14 Example: A city police officer, using radar, checked the speed of cars as they were traveling down the main street in town: Construct a stem-and-leaf plot for this data. Solution: All the speeds are in the 10s, 20s, 30s, 40s, and 50s. Use the first digit of each speed as the stem and the second digit as the leaf. Draw a vertical line and list the stems, in order to the left of the line. Place each leaf on its stem: place the trailing digit on the right side of the vertical line opposite its corresponding leading digit.

15 20 Speeds 1 | 6 9 2 | 3 | 4 | 5 | 5 The speeds are centered around the 30s. Note: The display could be constructed so that only five possible values (instead of ten) could fall in each stem. What would the stems look like? Would there be a difference in appearance?

16 Note: 1. It is fairly typical of many variables to display a distribution that is concentrated (mounded) about a central value and then in some manner be dispersed in both directions. (Why?) 2. A display that indicates two “mounds” may really be two overlapping distributions. 3. A back-to-back stem-and-leaf display makes it possible to compare two distributions graphically. 4. A side-by-side dotplot is also useful for comparing two distributions.

17 2.2: Frequency Distributions and Histograms
Stem-and-leaf plots often present adequate summaries, but they can get very big, very fast. Need other techniques for summarizing data. Frequency distributions and histograms are used to summarize large data sets.

18 Frequency Distribution: A listing, often expressed in chart form, that pairs each value of a variable with its frequency. Ungrouped Frequency Distribution: Each value of x in the distribution stands alone. Grouped Frequency Distribution: Group the values into a set of classes. 1. A table that summarizes data by classes, or class intervals. 2. In a typical grouped frequency distribution, there are usually 5-12 classes of equal width. 3. The table may contain columns for class number, class interval, tally (if constructing by hand), frequency, relative frequency, cumulative relative frequency, and class mark. 4. In an ungrouped frequency distribution each class consists of a single value.

19 Guidelines for constructing a frequency distribution:
1. Each class should be of the same width. 2. Classes should be set up so that they do not overlap and so that each piece of data belongs to exactly one class. 3. For problems in the text, 5-12 classes are most desirable. The square root of n is a reasonable guideline for the number of classes if n is less than 150. 4. Use a system that takes advantage of a number pattern, to guarantee accuracy. 5. If possible, an even class width is often advantageous.

20 Procedure for constructing a frequency distribution:
1. Identify the high (H) and low (L) scores. Find the range. Range = H - L. 2. Select a number of classes and a class width so that the product is a bit larger than the range. 3. Pick a starting point a little smaller than L. Count from L by the width to obtain the class boundaries. Observations that fall on class boundaries are placed into the class interval to the right. Note: 1. The class width is the difference between the upper- and lower-class boundaries. 2. There is no best choice for class widths, number of classes, and starting points.

21 Example: The hemoglobin test, a blood test given to diabetics during their periodic checkups, indicates the level of control of blood sugar during the past two to three months. The data in the table below was obtained for 40 different diabetics at a university clinic that treats diabetic patients. Construct a grouped frequency distribution using the classes <4.7, <5.7, <6.7, etc. Which class has the highest frequency?

22 Solution: Class Frequency Relative Cumulative Class Boundaries f Frequency Rel. Frequency Mark, x 3.7 - < 4.7 - < 5.7 - < 6.7 - < 7.7 - < 8.7 - < The class <6.7 has the highest frequency. The frequency is 16 and the relative frequency is .40.

23 Histogram: A bar graph representing a frequency distribution of a quantitative variable. A histogram is made up of the following components: 1. A title, which identifies the population of interest. 2. A vertical scale, which identifies the frequencies in the various classes. 3. A horizontal scale, which identifies the variable x. Values for the class boundaries or class marks may be labeled along the x-axis. Use whichever method of labeling the axis best presents the variable. Note: 1. The relative frequency is sometimes used on the vertical scale. 2. It is possible to create a histogram based on class marks.

24 Example: Construct a histogram for the blood test results given in the previous example.
Solution:

25 Construct a histogram for this age data.
Example: A recent survey of Roman Catholic nuns summarized their ages in the table below. Age Frequency Class Mark 20 up to 30 up to 40 up to 50 up to 60 up to 70 up to 80 up to Construct a histogram for this age data.

26 Solution:

27 Terms used to describe histograms:
Symmetrical: Both sides of the distribution are identical. There is a line of symmetry. Uniform (rectangular): Every value appears with equal frequency. Skewed: One tail is stretched out longer than the other. The direction of skewness is on the side of the longer tail. (Positively skewed vs. negatively skewed) J-shaped: There is no tail on the side of the class with the highest frequency. Bimodal: The two largest classes are separated by one or more classes. Often implies two populations are sampled. Normal: A symmetrical distribution is mounded about the mean and becomes sparse at the extremes.

28 Note: 1. The mode is the value that occurs with greatest frequency (discussed in Section 2.3). 2. The modal class is the class with the greatest frequency. 3. A bimodal distribution has two high-frequency classes separated by classes with lower frequencies. 4. Graphical representations of data should include a descriptive, meaningful title and proper identification of the vertical and horizontal scales.

29 Cumulative Frequency Distribution: A frequency distribution that pairs cumulative frequencies with values of the variable. The cumulative frequency for any given class is the sum of the frequency for that class and the frequencies of all classes of smaller values. The cumulative relative frequency for any given class is the sum of the relative frequency for that class and the relative frequencies of all classes of smaller values.

30 Example: A computer science aptitude test was given to 50 students
Example: A computer science aptitude test was given to 50 students. The table below summarizes the data. Class Relative Cumulative Cumulative Boundaries Frequency Frequency Frequency Rel. Frequency 0 up to 4 up to 8 up to 12 up to 16 up to 20 up to 24 up to

31 Ogive: A line graph of a cumulative frequency or cumulative relative frequency distribution. An ogive has the following components: 1. A title, which identifies the population or sample 2. A vertical scale, which identifies either the cumulative frequencies or the cumulative relative frequencies. 3. A horizontal scale, which identifies the upper class boundaries. Until the upper boundary of a class has been reached, you cannot be sure you have accumulated all the data in the class. Therefore, the horizontal scale for an ogive is always based on the upper class boundaries. Note: Every ogive starts on the left with a relative frequency of zero at the lower class boundary of the first class and ends on the right with a relative frequency of 100% at the upper class boundary of the last class.

32 Example: The graph below is an ogive using cumulative relative frequencies for the computer science aptitude data.

33 2.3: Measures of Central Tendency
Numerical values used to locate the middle of a set of data, or where the data is clustered. The term average is often associated with all measures of central tendency.

34 Mean: The type of average with which you are probably most familiar
Mean: The type of average with which you are probably most familiar. The mean is the sum of all the values divided by the total number of values, n. Note: 1. The population mean, m, (lowercase mu, Greek alphabet), is the mean of all x values for the entire population. 2. We usually cannot measure m but would like to estimate its value. 3. A physical representation: the mean is the value that balances the weights on the number line.

35 Example: The data below represents the number of accidents in each of the last 6 years at a dangerous intersection. 8, 9, 3, 5, 2, 6, 4, 5 Find the mean number of accidents. Solution: Note: In the data above, change 6 to 26. The mean can be greatly influenced by outliers.

36 Median: The value of the data that occupies the middle position when the data are ranked in order according to size. Note: 1. Denoted by “x tilde”: 2. The population median, M (uppercase mu, Greek alphabet), is the data value in the middle position of the entire population. To find the median: 1. Rank the data. 2. Determine the depth of the median. 3. Determine the value of the median.

37 Example: Find the median for the set of data
{4, 8, 3, 8, 2, 9, 2, 11, 3}. Solution: 1. Rank the data: 2, 2, 3, 3, 4, 8, 8, 9, 11 2. Find the depth: 3. The median is the fifth number from either end in the ranked data: Suppose the data set is {4, 8, 3, 8, 2, 9, 2, 11, 3, 15}. 1. Rank the data: 2, 2, 3, 3, 4, 8, 8, 9, 11, 15 3. The median is halfway between the fifth and sixth observations:

38 Mode: The mode is the value of x that occurs most frequently.
Note: If two or more values in a sample are tied for the highest frequency (number of occurrences), there is no mode. Midrange: The number exactly midway between a lowest value data L and a highest value data H. It is found by averaging the low and the high values.

39 Example: Consider the data set {12.7, 27.1, 35.6, 44.2, 18.0}.
The midrange is Note: 1. When rounding off an answer, a common rule-of-thumb is to keep one more decimal place in the answer than was present in the original data. 2. To avoid round-off buildup, round off only the final answer, not intermediate steps.

40 2.4: Measures of Dispersion
Measures of central tendency alone cannot completely characterize a set of data. Two very different data sets may have similar measures of central tendency. Measures of dispersion are used to describe the spread, or variability, of a distribution. Common measures of dispersion: range, variance, and standard deviation.

41 Range: The difference in value between the highest-valued (H) and the lowest-valued (L) pieces of data: Other measures of dispersion are based on the following quantity. Deviation from the Mean: A deviation from the mean, , is the difference between the value of x and the mean .

42 Example: Consider the sample {12, 23, 17, 15, 18}.
Find the range and each deviation from the mean. Solution: Data Deviation _______________

43 Note: (Always!) Mean Absolute Deviation: The mean of the absolute values of the deviations from the mean: For the previous example:

44 Sample Variance: The sample variance, s2, is the mean of the squared deviations, calculated using n - 1 as the divisor. where n is the sample size. Note: The numerator for the sample variance is called the sum of squares for x, denoted SS(x). where Standard Deviation: The standard deviation of a sample, s, is the positive square root of the variance:

45 Example: Find the variance and standard deviation for the data {5, 7, 1, 3, 8}.

46 Note: 1. The shortcut formula for the sample variance: 2. The unit of measure for the standard deviation is the same as the unit of measure for the data. The unit of measure for the variance might then be thought of as units squared.

47 2.5: Mean and Standard Deviation of Frequency Distribution
If the data is given in the form of a frequency distribution, we need to make a few changes to the formulas for the mean, variance, and standard deviation. Complete the extension table in order to find these summary statistics.

48 In order to calculate the mean, variance, and standard deviation for data:
1. In an ungrouped frequency distribution, use the frequency of occurrence, f, of each observation. 2. In a grouped frequency distribution, we use the frequency of occurrence associated with each class mark.

49 Example: A survey of students in the first grade at a local school asked for the number of brothers and/or sisters for each child. The results are summarized in the table below. Find the mean, variance, and standard deviation.

50 2.6: Measures of Position Measures of position are used to describe the relative location of an observation. Quartiles and percentiles are two of the most popular measures of position. An additional measure of central tendency, the midquartile, is defined using quartiles. Quartiles are part of the 5-number summary.

51 Ranked data, increasing order
Quartiles: Values of the variable that divide the ranked data into quarters; each set of data has three quartiles. 1. The first quartile, Q1, is a number such that at most 25% of the data are smaller in value than Q1 and at most 75% are larger. 2. The second quartile is the median. 3. The third quartile, Q3, is a number such that at most 75% of the data are smaller in value than Q3 at at most 25% are larger. Ranked data, increasing order

52 Percentiles: Values of the variable that divide a set of ranked data into 100 equal subsets; each set of data has 99 percentiles. The kth percentile, Pk, is a value such that at most k% of the data is smaller in value than Pk and at most (100 - k)% of the data is larger. Note: 1. The 1st quartile and the 25th percentile are the same: Q1 = P25. 2. The median, the 2nd quartile, and the 50th percentile are all the same:

53 Procedure for finding Pk (and quartiles):
1. Rank the n observations, lowest to highest. 2. Compute A = (nk)/100. 3. If A is an integer: d(Pk) = A.5 (depth) Pk is halfway between the value of the data in the Ath position and the value of the next data. If A is a fraction: d(Pk) = B, the next largest integer. Pk is the value of the data in the Bth position.

54 Example: The following data represents the pH levels of a random sample of swimming pools in a California town. Find the first and third quartile, and the 35th percentile. k = 25: (20) (25) / 100 = 5, depth = 5.5, Q1 = 6 k = 75: (20) (75) / 100 = 15, depth = 15.5, Q3 = 6.95 k = 35: (20) (35) / 100 = 7, depth = 7.5, P35 = 6.15

55 Midquartile: The numerical value midway between the first and the third quartile.
Example: Find the midquartile for the 20 pH values in the previous example: Note: The mean, median, midrange, and midquartile are all measures of central tendency. They are not necessarily equal. Can you think of an example when they would be the same value?

56 5-Number Summary: The 5-number summary is composed of:
1. L, the smallest value in the data set. 2. Q1, the first quartile (also P25). 3. , the median. 4. Q3, the third quartile (also P75). 5. H, the largest value in the data set. Note: 1. The 5-number summary indicates how much the data is spread out in each quarter. 2. The interquartile range is the difference between the first and third quartiles. It is the range of the middle 50% of the data.

57 Box-and-Whisker Display: A graphic representation of the 5-number summary.
The five numerical values (smallest, first quartile, median, third quartile, and largest) are located on a scale, either vertical or horizontal. The box is used to depict the middle half of the data that lies between the two quartiles. The whiskers are line segments used to depict the other half of the data. One line segment represents the quarter of the data that is smaller in value than the first quartile. The second line segment represents the quarter of the data that is larger in value that the third quartile.

58 Example: A random sample of students in a sixth grade class was selected. Their weights are given in the table below. Find the 5-number summary for this data and construct a boxplot.

59 Boxplot for weight data:

60 z-Score: The position a particular value of x has relative to the mean, measured in standard deviations. The z-score is found by the formula Note: 1. Typically, the calculated value of z is rounded to the nearest hundredth. 2. The z-score measures the number of standard deviations above/below, or away from, the mean. 3. z-scores typically range from to 4. z-scores may be used to make comparisons of raw scores.

61 Example: A certain data set has mean 35. 6 and standard deviation 7. 1
Example: A certain data set has mean 35.6 and standard deviation Find the z-scores for 46 and 33. Solution: 46 is 1.46 standard deviations above the mean. 33 is -.37 standard deviations below the mean.

62 2.7: Interpreting and Understanding Standard Deviation
Standard deviation is a measure of variability, or spread. Two rules for describing data rely on the standard deviation. Chebyshev’s theorem: applies to any distribution. Empirical rule: applies to a variable that is normally distributed.

63 Chebyshev’s Theorem: The proportion of any distribution that lies within k standard deviations of the mean is at least (1/k2), where k is any positive number larger than 1. This theorem applies to all distributions of data. Illustration:

64 Note: 1. Chebyshev’s theorem is very conservative. It holds for any distribution of data. 2. Chebyshev’s theorem also applies to any population. 3. The two most common values used to describe a distribution of data are k = 2, 3. 4. The table below lists some values for k and 1 - (1/k2).

65 Example: At the close of trading, a random sample of 35 technology stocks was selected. The mean selling price was and the standard deviation was Use Chebyshev’s theorem (with k = 2, 3) to describe the distribution. Solution: At least 75% of the observations lie within 2 standard deviations of the mean: At least 89% of the observations lie with 3 standard deviations of the mean:

66 Empirical Rule: If a variable is normally distributed: 1
Empirical Rule: If a variable is normally distributed: 1. Approximately 68% of the observations lie within 1 standard deviation of the mean. 2. Approximately 95% of the observations lie within 2 standard deviations of the mean. 3. Approximately 99.7% of the observations lie within 3 standard deviations of the mean. Note: 1. The empirical rule is more accurate than Chebyshev’s theorem since we know more about the distribution (normally distributed). 2. Also applies to populations. 3. Can be used to determine if a distribution is normally distributed.

67 Illustration of the empirical rule:
99.7% 95% 68%

68 Example: A random sample of plum tomatoes was selected from a local grocery store and their weights recorded. The mean weight was 6.5 ounces with a standard deviation of .4 ounces. If the weights are normally distributed: 1. What percentage of weights fall between 5.7 and 7.3? 2. What percentage of weights fall above 7.7? Solution:

69 Note: The empirical rule may be used to determine whether or not a set of data is approximately normally distributed. 1. Find the mean and standard deviation for the data. 2. Compute the actual proportion of data within 1, 2, and 3 standard deviations from the mean. 3. Compare these actual proportions with those given by the empirical rule. 4. If the proportions found are reasonably close to those of the empirical rule, then the data is approximately normally distributed.

70 Note: 1. Graphic method to test for normality: Draw a relative frequency ogive of grouped data on probability paper. a. Draw a straight line from the lower-left corner to the upper-right corner of the graph connecting the next-to- end points of the ogive. b If the ogive lies close to this straight line, the distribution is said to be approximately normal. 2. The ogive may be used to find percentiles. a. Draw a horizontal line through the graph at k. b. At the point where the line intersects the ogive, draw a vertical line to the bottom of the graph. c. Read the value of x from the horizontal scale. d. This value of x is the kth percentile.

71 2.8: The Art of Statistical Deception
Good arithmetic, bad statistics Misleading graphs Insufficient information

72 Good Arithmetic, Bad Statistics:
The mean can be greatly influenced by outliers. Example: The mean salary for all NBA players is $15.5 million. Misleading graphs: 1. The frequency scale should start at zero to present a complete picture. Graphs that do not start at zero are used to save space. 2. Graphs that start at zero emphasize the size of the numbers involved. 3. Graphs that are chopped off emphasize variation.

73 This graph presents the total picture.

74 This graph emphasizes the variation.

75 Insufficient Information:
Example: An admissions officer from a state school explains that the average tuition at a nearby private university is $13,000 and only $4500 at his school. This makes the state school look more attractive. If most students pay the full tuition, then the state school appears to be a better choice. However, if most students at the private university receive substantial financial aid, then the actual tuition cost could be quite lower!


Download ppt "Chapter Goals Learn how to present and describe sets of data."

Similar presentations


Ads by Google