 # 2.1 Summarizing Qualitative Data  A graphic display can reveal at a glance the main characteristics of a data set.  Three types of graphs used to display.

## Presentation on theme: "2.1 Summarizing Qualitative Data  A graphic display can reveal at a glance the main characteristics of a data set.  Three types of graphs used to display."— Presentation transcript:

2.1 Summarizing Qualitative Data  A graphic display can reveal at a glance the main characteristics of a data set.  Three types of graphs used to display qualitative data:- - bar graph - pie chart - line chart  Their presentation are depend on the nature of data, whether the data is in quantitative (ex. income and CGPA) or qualitative (ex. Gender and ethnic group).

Types of Graph Qualitative Data

Example 2.1 :- Table 2.1 shows that the data of 25 UNIMAP students with their data and background. Code used : For gender: 1 is male and 2 is female For ethnic group: 1 is Malay, 2 is Chinese, 3 is Indian and 4 is others Not much information can be obtained from the data 1 in the raw form. It has to be summarized so that we can get more informations. Table 2.1 : Data of 25 UNIMAP students

 If data from table 2.1 summarized into gender and ethnic group, then the frequency tables can get as below : ObservationFrequency Male28 Female22 Total50 Table 2.2: Frequency Table for the Gender ObservationFrequency Malay33 Chinese9 Indian6 Others2 Total50 Table 2.3: Frequency Table for the Ethnic Group

2.1.1 Bar Chart  Bar chart is used to display the frequency distribution in the graphical form. It consists of two orthogonal axes and one of the axes represent the observations while the other one represents the frequency of the observations. The frequency of the observations is represented by a bar. *Bar chart is for data from Table 2.3. Figure 1: Bar Chart of the Ethnic Group

2.1.2 Pie Chart  Pie Chart is used to display the frequency distribution. It displays the ratio of the observations. It is a circle consists of a few sectors. The sectors represent the observations while the area of the sectors represent the proportion of the frequencies of that observations.  *Pie chart is for data from Table 2.2. Figure 2: The Pie Chart for the Gender

2.1.3 Line Chart  Line chart is used to display the trend of observations. It consists of two orthoganal axes and one of the axes represent the observations while the other one represents the frequency of the observations. The frequency of the observations are joint by lines. Example : Table 2.4 below shows the number of sandpipers recorded between January 1989 till December 1989. JanFebMarAprMayJuneJulyAugSeptOctNovDec 1075 3972603161421149 Figure 3: The line Chart for the numbers of common Sandpipers Table 2.4 : The number of sandpipers

2.2 Summarizing Quantitative Data 2.2.1 Frequency Distribution  When summarizing large quantities of raw data, it is often useful to distribute the data into classes. In determining the classes, there is no spesific rules but statistician suggest the number of classes are between 5 to 20. Table 1.3 shows that the number of classes for Students` CGPA.  A frequency distribution for quantitative data lists all the classes and the number of values that belong to each class.  Data presented in the form of a frequency distribution are called grouped data. CGPA (Class)Frequency 2.50 - 2.752 2.75 - 3.0010 3.00 - 3.2515 3.25 - 3.5013 3.50 - 3.757 3.75 - 4.003 Total50 Table 2.5: The Fequency Distribution of the Students’ CGPA

 For quantitative data, an interval that includes all the values that fall within two numbers; the lower and upper class which is called class. Class is in first column for frequency distribution table. *Classes always represent a variable, non-overlapping; each value is belong to one and only one class.  The numbers listed in second column are called frequencies, which gives the number of values that belong to different classes. Frequencies denoted by f. Weekly Earnings (dollars) Number of Employees, f 801-10009 1001-120022 1201-140039 1401-160015 1601-18009 1801-20006 Variable Frequency column Third class (Interval Class) Lower Limit of the sixth class Frequency of the third class. Upper limit of the sixth class Table 2.6 : Weekly Earnings of 100 Employees of a Company

 The class boundary is given by the midpoint of the upper limit of one class and the lower limit of the next class.  The difference between the two boundaries of a class gives the class width; also called class size. Formula: - Class Midpoint or Mark Class midpoint or mark = (Lower Limit + Upper Limit)/2 - Finding The Number of Classes Number of classes = 1 + 3.3 log n n- no of observations. - Finding Class Width Between Two Boundaries c= Upper boundary – Lower Boundary - Finding Class Width For Interval Class Approximate class width = (Largest value – Smallest value)/Number of classes * Any convenient number that is equal to or less than the smallest values in the data set can be used as the lower limit of the first class.

2.2.2 Cumulative Frequency Distributions  A cumulative frequency distribution gives the total number of values that fall below the upper boundary of each class.  In cumulative frequency distribution table, each class has the same lower limit but a different upper limit. Table 2.7 : Class Limit, Class Boundaries, Class Width, Cumulative Frequency Weekly Earnings (dollars) (Class Limit) Number of Employees, f Class Boundaries Class Width Cumulative Frequency 801-10009800.5 – 1000.5 2009 1001-1200221000.5 – 1200.5 2009 + 22 = 31 1201-1400391200.5 – 1400.5 20031 + 39 = 70 1401-1600151400.5 – 1600.5 20070 + 15 = 85 1601-180091600.5 – 1800.5 20085 + 9 = 94 1801-200061800.5 – 2000.5 20094 + 6 = 100

 Tabular presentation for quantitative data is usually in the form of frequency distribution that is a table represent the frequency of the observation that fall inside some specific classes (intervals).  There are few graphs available for the graphical presentation of the quantitative data. Most popular graphs Histogram Frequency Polygon Ogive

 Histogram The histogram looks like the bar chart except that the horizontal axis represent the data which is quantitative in nature. There is no gap between the bars.  Frequency Polygon The frequency polygon looks like the line chart except that the horizontal axis represent the class mark of the data which is quantitative in nature.  Ogive Ogive is a line graph with the horizontal axis represent the upper limit of the class interval while the vertical axis represent the cummulative frequencies.

2.3 Exploratory Data Analysis  Exploratory data analysis (EDA) is an approach to analyze data for the purpose of formulating hypotheses worth testing, complementing the tools of conventional statistics for testing hypotheses.  The goal of EDA is to discover the patterns in data.  EDA is an approach for data analysis that employs a variety of techniques to (mostly graphical) : i. Maximize insight into a data set. ii. Uncover underlying structure. iii. Extract important variable. iv. Detect outliers and anomalies. v. Test underlying assumption. vi. Develop parsimonious models. vii. Determine optimal factor settings.

 Another technique that is used to present quantitative data is the stem-and-leaf display.  An advantage of a stem-and-leaf-display over a frequency distribution is that by preparing stem-and-leaf display, we do not lose information on individual observations.  A stem-and-leaf only for quantitative data.  In a stem-and-leaf display of quantitative data, each value is divided into two portions; a stem and leaf. The leaves for each stem are shown separately in a display.

Steps to construct a stem-and-leaf plot: i. Split each data into two parts; first part contains the leading digit (stem), second part contains the twilling digit (leaf). ii. Draw a vertical line and write the stems on the left side, arranged in increasing or decreasing order. iii. Read the leaves for all data and record them next to the corresponding stems on the right side of the vertical line. iv. Rank the leaves for each stem in increasing order. Example :- The following are the scores of 30 college students on a statistics test. 75 52 80 96 65 79 71 87 93 95 69 72 81 61 76 86 79 68 50 92 83 84 77 64 71 87 72 92 57 98

52 6 75 8 9 For the score of the first student, which is 75, 7 is the stem and 5 is the leaf. For the score of the second student, which 52, 5 is the stem and 2 is the leaf. Observed from data, the stems for all scores are 5,6,7,8 and 9 because all scores lie in the range 50 to 98. After we have listed the stems, we read the leaves for all scores and record them next to the corresponding stems at the right side of the vertical line. 52 0 7 65 9 1 8 4 75 9 1 2 6 9 7 1 2 80 7 1 6 3 4 7 96 3 5 2 2 8 Leaf for 52 Stems Leaf for 75 Stem-and-leaf display Stem-and-leaf display of test scores.

Now we read all the scores and write the leaves on the right side of the vertical line in the rows of corresponding stems. By looking at the stem-and-leaf display of test scores, we can observed how the data values are distributed. For example, the stem 7 has the highest frequency, followed by stems 8,9,6 and 5. The leaf for each stem of the stem-and-leaf display of test scores are rank in increasing order and presented as below : 50 2 7 61 4 5 8 9 71 1 2 2 5 6 7 9 9 80 1 3 4 6 7 7 92 2 3 5 6 8 * Analyze – There are 9 out of 30 college students score between 71 and 79. Ranked stem-and-leaf display of test scores.

 At an outpatient testing center, the number of cardiograms performed each day for 20 days is shown. Construct a stem and leaf plot for the data 2531203213 1443025723 3632333244 3252445145

Download ppt "2.1 Summarizing Qualitative Data  A graphic display can reveal at a glance the main characteristics of a data set.  Three types of graphs used to display."

Similar presentations