STAT 2040 Lecture 2: Jan 16-Jan 20
Document Summary
In descriptive statistics, plots and numerical summaries are used to describe a data set. A categorical variable is a variable that falls into one of two or more categories. Examples: a university student"s major, the province in which a canadian resides, a per- son"s blood type. We illustrate the distribution of a categorical variable by displaying the count or proportion of observations in each category. We might use bar charts, pareto diagrams (an ordered bar chart) or pie charts. Gun calibre for buyback guns and guns used in homicides and suicides. (from a buyback program in milwaukee. ) Large (a) bar chart for the homicide guns. (b) pie chart for the homicide guns. y c n e u q e r. Small y c n e u q e r. Suicides (c) side-by-side bar charts. (d) stacked bar charts. red. A quantitative variable is a numeric variable that represents a measurable quantity.