1 / 34

Statistics for IT

This lecture covers how to organize and summarize data using frequency distributions, histograms, bar graphs, pie graphs, scatter plots, and line graphs.

wirth
Download Presentation

Statistics for IT

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. www.hndit.com Statistics for IT Lecture 3 part-2: Organization and Summarization of Data

  2. www.hndit.com Course Objectives • After completing this module, students should be able to • Organize data using a frequency distribution. • Represent data in frequency distributions graphically using histograms, frequency polygons, and ogives. • Represent data using bar graphs, pie graphs, scatter plot and line graphs.

  3. www.hndit.com What is a bar chart? • When the data are qualitative or categorical, bar graphs can be used to represent the data. A bar graph can be drawn using either horizontal or vertical bars. • A bar graph represents the data by using vertical or horizontal bars whose heights or lengths represent the frequencies of the data • Bar charts are a type of graph that are used to display and compare the number, frequency or other measure (e.g. mean) for different discrete categories of data. • There are several variations of the standard bar chart including • horizontal bar charts, • grouped or component charts, • and stacked bar charts.

  4. www.hndit.com What is a bar chart?.... • The chart is constructed such that the lengths of the different bars are proportional to the size of the category they represent. The x-axis represents the different categories and so has no scale. In order to emphasize the fact that the categories are discrete, a gap is left between the bars on the x-axis. The y-axis does have a scale and this indicates the units of measurement.  

  5. www.hndit.com What is a bar chart?.....

  6. www.hndit.com Horizontal bar charts • This is a particularly effective way of presenting data when the different categories have long titles that would be difficult to include below a vertical bar, or when there are a large number of different categories and there is insufficient space to fit all the columns required for a vertical bar chart across the page.

  7. www.hndit.com Horizontal bar charts…

  8. www.hndit.com Worked Example • College Spending for First-Year Students • The table shows the average money spent by first-year college students. Draw a horizontal and vertical bar graph for the data.

  9. www.hndit.com Solution

  10. www.hndit.com Grouped bar charts • Grouped bar charts are a way of showing information about different sub-groups of the main categories. • A separate bar represents each of the sub-groups and these are usually colored or shaded differently to distinguish between them

  11. www.hndit.com

  12. www.hndit.com Stacked bar charts • Stacked bar chars are similar to grouped bar charts in that they are used to display information about the sub-groups that make up the different categories. • In stacked bar charts the bars representing the sub-groups are placed on top of each other to make a single column, or side by side to make a single bar. The overall height or length of the bar shows the total size of the category whilst different colors or shadings are used to indicate the relative contribution of the different sub-groups.

  13. www.hndit.com

  14. www.hndit.com What is a pie chart? • The purpose of the pie graph is to show the relationship of the parts to the whole by visually comparing the sizes of the sections. Percentages or proportions can be used. The variable is nominal or categorical. • A pie Chart is a circle that is divided into sections or wedges according to the percentage of frequencies in each category of the distribution.

  15. www.hndit.com Worked Example • Super Bowl Snack Foods • This frequency distribution shows the number of pounds of each snack food eaten during the Super Bowl. Construct a pie graph for the data.

  16. www.hndit.com Solution

  17. www.hndit.com

  18. www.hndit.com The Histogram • The histogram is a graph that displays the data by using contiguous vertical bars (unless the frequency of a class is 0) of various heights to represent the frequencies of the classes.

  19. www.hndit.com Worked Example • These data represent the record high temperatures in degrees Fahrenheit (F) for each of the 50 states. Construct a grouped frequency distribution for the data using 7 classes. • Construct a histogram to represent the data shown for the record high temperatures for each of the 50 states.

  20. www.hndit.com Round the answer up to the nearest whole number if there is a remainder: Subtract one unit from the lower limit of the second class to get the upper limit of the first class. Then add the width to each upper limit to get all the upper limits. 105 - 1 =104 The first class is 100–104, the second class is 105–109, etc.

  21. www.hndit.com

  22. www.hndit.com The Frequency Polygon • Another way to represent the same data set is by using a frequency polygon. • The frequency polygon is a graph that displays the data by using lines that connect points plotted for the frequencies at the midpoints of the classes. The frequencies are represented by the heights of the points.

  23. www.hndit.com Worked Example • Using the frequency distribution given in Example in slide 20, construct a frequency polygon.

  24. www.hndit.com Answer • Find the midpoints of each class.

  25. www.hndit.com

  26. www.hndit.com The Ogive • The ogiveis a graph that represents the cumulative frequencies for the classes in a frequency distribution.

  27. www.hndit.com Worked Example • Construct an ogive for the frequency distribution described in Example in slide 20.

  28. www.hndit.com Answer

  29. www.hndit.com

  30. www.hndit.com The scatter plot • A scatter plot is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data. • The data is displayed as a collection of points, each having the value of one variable determining the position on the horizontal axis and the value of the other variable determining the position on the vertical axis.

  31. www.hndit.com

  32. www.hndit.com Line Graphs • Line Graph  - A graph that shows information that is connected in some way (such as change over time). • Eg. • You are learning facts about plannets, and each day you do a short test to see how good you are. These are the results:

  33. www.hndit.com

  34. www.hndit.com • Thank You!

More Related