Presentation is loading. Please wait.

Presentation is loading. Please wait.

So What Do We Know? Variables can be classified as qualitative/categorical or quantitative. The context of the data we work with is very important. Always.

Similar presentations


Presentation on theme: "So What Do We Know? Variables can be classified as qualitative/categorical or quantitative. The context of the data we work with is very important. Always."— Presentation transcript:

1 So What Do We Know? Variables can be classified as qualitative/categorical or quantitative. The context of the data we work with is very important. Always think about the “Five W’s”—Who, What, When, Where, Why (and How)—when examining a set of data.

2 The Three Rules of Data Analysis The three rules of data analysis won’t be difficult to remember: 1.Make a picture—things may be revealed that are not obvious in the raw data. These will be things to think about. 2.Make a picture—important features of and patterns in the data will show up. 3.Make a picture—the best way to tell others about your data is with a well-chosen picture.

3 Qualitative Data :: Making Piles We can “pile” the data by counting the number of data values in each category of interest. We can organize these counts into a frequency table, which records the totals & category names. A relative frequency table is similar, but gives the percentages (instead of counts) for each category.

4 What Do Frequency Tables Tell Us? Frequency tables and relative frequency tables describe the distribution of a categorical variable because they name the possible categories and tell how frequently each occurs. Graphs … Pie Charts & Bar Graphs (software)

5 A contingency table allows us to look at two qualitative variables together. Note the totals in the margins of the table. Each set of totals gives us the marginal distribution of the respective variable.

6 So What Do We Know? Qualitative variables can be summarized in frequency or relative frequency tables. Categorical variables can be displayed with bar graphs and/or pie charts. A contingency table summarizes two variables at a time. From a contingency table we can find the marginal distribution for each variable or the conditional distribution for one variable conditioned on the other variable.

7 Describing Quantitative Data describing a quantitative variable’s distn, make sure to always tell about L.O.S.S. !!! Location/Center/Typical Value Outliers Spread/Dispersion Shape/Distribution

8 Displaying Quantitative Data HISTOGRAMS First, slice up the entire span of values covered by the quantitative variable into equal-width piles called bins. The bins and the counts in each bin give the distribution of the quantitative variable. One graphical display of the distribution of a quantitative variable is called a histogram, which plots the bin counts as the heights of bars (like a bar graph). A relative frequency histogram displays the percentage of cases in each bin instead of the count.

9 Stem-and-leaf displays show the distribution of a quantitative variable, like histograms do, while preserving the individual values. Stem-and-leaf displays contain all the information found in a histogram.

10 A dotplot is a simple display. It just places a dot for each case in the data.

11 SHAPE 1.Symmetric 2.Skewed 3.Uniform or Rectangular

12 Symmetric

13 Skewed Right-Tailed … Left-Tailed

14 Uniform/Rectangular

15 So What Do We Know? Quantitative variables can be displayed using histograms, dotplots, and/or stem-and-leaf displays. These displays help us to see the distributions of the variables. Consider L.O.S.S. when looking at these displays! Distributions can be classified as symmetric or skewed (look at how the tails behave with respect to the rest of the distribution).

16 The mean for quantitative data is obtained by dividing the sum of all values by the number of values in the data set.

17 The following are the ages of all eight employees of a small company: Find the mean age of these employees.

18

19 Thus, the mean age of all eight employees of this company is years, or 45 years and 3 months.

20  The median is the value of the middle term in a data set that has been ranked in increasing order.  The calculation of the median consists of the following two steps: 1.Sort/Arrange the data set in increasing order 2.Find the middle term in a data set with n values. The value of this term is the median.

21 The following data give the weight lost (in pounds) by a sample of five members of a health club at the end of two months of membership: Find the median.

22 First, we rank the given data in increasing order as follows: Therefore, the median is The median weight loss for this sample of five members of this health club is 8 pounds.

23 The median gives the “center” with half the data values to the left of the median and half to the right of the median. The advantage of using the median as a measure of central tendency is that it is less influenced by outliers & skewness. Consequently, the median is preferred over the mean as a measure of central tendency for data sets that contain outliers and/or skewness.

24 The mode is the value that occurs with the highest frequency in a data set.

25

26

27

28 Range = Largest value – Smallest Value

29 The range, like the mean has the disadvantage of being influenced by outliers. Its calculation is based on two values only: the largest and the smallest.

30 The standard deviation is the most used measure of dispersion. The value of the standard deviation tells how closely the values of a data set are clustered around the mean.

31 xdeviation – 84 = – 84 = – 84 = – 84 = +8 ∑(deviation) = 0

32 standard deviation stdev = sqrt (sum squared deviations divided by n-1) Example :: sqrt[( )/3] sqrt(478/3) = sqrt(159.3) = 12.62

33 A numerical measure such as the mean, median, mode, range, variance, or standard deviation calculated for a population data set is called a population parameter, or simply a parameter. A summary measure calculated for a sample data set is called a sample statistic, or simply a statistic.

34  For a bell shaped distribution approximately 1. 68% of the observations lie within one standard deviation of the mean 2. 95% of the observations lie within two standard deviations of the mean % of the observations lie within three standard deviations of the mean

35  The age distribution of a sample of 5000 persons is bell-shaped with a mean of 40 years and a standard deviation of 12 years. Determine the approximate percentage of people who are 16 to 64 years old.

36  Quartiles are three summary measures that divide a ranked data set into four equal parts. The second quartile is the same as the median of a data set. The first quartile is the value of the middle term among the observations in the lower half, and the third quartile is the value of the middle term among the observations in the upper half.

37 25% Each of these portions contains 25% of the observations of a data set arranged in increasing order Q 1 Q 2

38  Calculating Interquartile Range  The difference between the third and first quartiles gives the interquartile range; that is,  IQR = Interquartile range = Q 3 – Q 1

39  The following are the ages of nine employees of an insurance company:  a)Find the values of the three quartiles. Where does the age of 28 fall in relation to the ages of the employees? b)Find the interquartile range.

40 The following data are the incomes (in thousands of dollars) for a sample of 12 households.   Construct a box-and-whisker plot for these data.

41  Step 1.   Median = ( ) / 2 = 47  Q 1 = ( ) / 2 = 37  Q 3 = ( ) / 2 = 61  IQR = Q 3 – Q 1 = 61 – 37 = 24

42  Step 2.  1.5 x IQR = 1.5 x 24 = 36  Lower inner fence = Q 1 – 36 = 37 – 36 = 1  Upper inner fence = Q = = 97

43  Step 3.  Smallest value within the two inner fences = 29  Largest value within the two inner fences = 72

44 Income First quartile Third quartile Median

45  An outlier First quartile Median Third quartile Smallest value within the two inner fences Largest value within two inner fences Income

46 What Can Go Wrong? Do a reality check— don’t let technology do your thinking for you. Don’t forget to sort the values before finding the median … quartiles. Don’t compute numerical summaries of a categorical variable. Watch out for multiple peaks—multiple peaks might indicate multiple groups in your data.

47 What Can Go Wrong? Be aware of slightly different methods— different statistics packages and calculators may give you different answers for the same data. Beware of outliers. Make a picture (make a picture, make a picture). Be careful when comparing groups that have very different spreads.

48 So What Do We Know? We describe distributions in terms of L.O.S.S. For symmetric distributions, it’s safe to use the mean and standard deviation; for skewed distributions, it’s better to use the median and interquartile range. Always make a picture—don’t make judgments about which measures of center and spread to use by just looking at the data.


Download ppt "So What Do We Know? Variables can be classified as qualitative/categorical or quantitative. The context of the data we work with is very important. Always."

Similar presentations


Ads by Google