Stat 200 Lesson 2: Describing Data - Categorical and Quantitative Variables
Review of Foundational Terminology
Variable Types Review: * Categorical Variables: These refer to groupings with no inherent logical order (categories) or a logical order where the differences between groups are inconsistent (rankings). For example, in a race, the difference between first and second place is not necessarily the same as the difference between tenth and eleventh place. * Quantitative Variables: These consist of numerical values characterized by consistent intervals.
Populations vs. Samples: Distinguishing between these is vital for notation. * Populations: Characteristics (parameters) are often denoted by Greek symbols. * Population Mean: * Population Standard Deviation: * Population Proportion: or * Samples: Characteristics (statistics) are denoted by Roman letters. * Sample Mean: * Sample Standard Deviation: * Sample Proportion:
Standard Probability Tools: * Standard Die: A six-sided die numbered . * Standard Deck of Cards: A -card deck consisting of four suits: spades, hearts, diamonds, and clubs. * Face Cards: These include the King, Queen, and Jack.
Describing One Categorical Variable: Proportion, Risk, and Odds
Proportion, Risk, and Probability: These terms are synonymous in statistics. They must always result in a value between and . * Formula: , where is the number in the group with the trait and is the total number. * Notation: * Population Proportion: or * Sample Proportion: * Risk: Usually written as the word "risk." * Probability: Written as , such as .
Odds: This measures likelihood by comparing the probability of an event happening to the probability of it not happening. Unlike risk, odds can be any non-negative number. * Formulas: * * * * Example Calculation: According to the CDC, of American children (aged months) received the MMR vaccine. * Proportion: * Odds Calculation: * Interpretation: For every children who received the vaccine, there is child who did not ().
Visual Representations of Categorical and Quantitative Data
One Categorical Variable: * Frequency Table (Tally): Lists counts and percentages for each category. * Pie Chart: Each slice represents a proportion. In Minitab Express, the default order is alphabetical clockwise (e.g., Beer (), Water, then Wine). * Bar Chart: Displays categories on the x-axis and counts/percents on the y-axis. Bars have gaps between them to denote categorical data.
Two Categorical Variables: * Two-Way Table (Contingency Table or Cross Tabulation): A multi-dimensional table (e.g., a table for preferred beverage and sex). * Segmented Bar Chart (Stacked Bar Chart): A single bar representing the total for one category (e.g., Females) broken into segments representing a second category (e.g., Beverage choice). * Clustered Bar Chart: Groups bars side-by-side to compare frequencies across two categorical variables.
One Quantitative Variable: * Dot Plot: Each dot represents an observation (or a grouping, e.g., one dot for up to two observations). Variables are on the horizontal axis. * Histogram: Similar to a bar chart but the bars touch, signifying a continuous quantitative scale. * Box Plot: Used to summarize quantitative data (detailed in Lesson 3).
Minitab Express Procedures for Data Visualization
Frequency Tables: Statistics Describe Tally. Select the variable and check "Percents."
Pie Charts: Graphs Pie Chart Counts of unique values. For raw data, select the categorical variable.
Bar Charts: Graphs Bar Chart Counts of unique values. Select "Simple" for one variable or "Clustered" for two.
Two-Way Tables: Statistics Cross Tabulation and Chi-Square. Assign variables to Rows and Columns.
Histograms/Dot Plots: Graphs Histogram (or Dot Plot) Simple. Quantitative graphs in Minitab Express often include automatic summary statistics (mean, SD).
Probability Rules: Complements, Intersections, Unions, and Conditionals
The Complement: The probability that an event does not occur. * Notation: or . * Rule: , therefore .
Intersections (AND): The probability that two events occur together. * Notation: or . * Calculation from Table: . * General Formula: . * Disjoint Events: If , the events are disjoint (they never occur together).
Unions (OR): The probability that event A, event B, or both occur. * Notation: or . * General Formula: . * Calculation from Table: .
Conditional Probability (GIVEN): The probability of an event given that another event is already known to have occurred. * Notation: , read as "Probability of A given B." * Calculation from Table: Limit the denominator to the total of the "given" group (e.g., for , the denominator is the total number of males). * Formula: . * Independence: If , the events are independent/unrelated.
Quantitative Data: Distribution Shapes and Outliers
Outliers: Observations that fall outside the general scope of the dataset. Identifying them visually is currently subjective, using dot plots or histograms to spot isolated points.
Distribution Shapes: * Symmetrical: The left and right sides are roughly mirror images. * Normal Distribution: A specific bell-shaped, symmetrical curve. * Skewed Right: The tail of the distribution pulls to the right (higher values are more spread out). * Skewed Left: The tail pulls to the left (lower values are more spread out).
Measures of Central Tendency and Skewness
The Mean (Average): * Calculation: Sum of all values divided by the number of values. * Symbols: (population) or (sample).
The Median: The middle value of an ordered dataset. For an even number of observations, it is the average of the two middle values.
The Mode: The most frequently occurring value.
Impact of Skewness: * Symmetrical Distribution: . * Right Skewed: The mean is pulled toward the long right tail. \text{Mean} > \text{Median} > \text{Mode}. * Left Skewed: The mean is pulled toward the long left tail. \text{Mean} < \text{Median} < \text{Mode}.
Measures of Variability: Calculating Standard Deviation
Standard Deviation (): Represents the average difference between each observation and the mean. * Step-by-Step Manual Calculation: 1. Compute the sample mean (). 2. Compute deviations for every observation (). Note: the sum of all deviations must always equal . 3. Square every deviation (). 4. Sum the squared deviations (Sum of Squares or SS). 5. Divide by to find the Variance (). 6. Take the square root of the variance to find the Standard Deviation (). * Formula: .
Standardized Scores and Percentiles
Percentiles: The proportion of values falling below a given value. For instance, the percentile means the score was better than of peers.
Z-Scores (Standardized Scores): Measures how many standard deviation units an observation falls above or below the mean. * Formulas: * Sample: * Population: * Interpretation: A positive z-score is above the mean; a negative z-score is below the mean. * The Standard Normal Distribution (Z-distribution): A normal distribution where and .
The Empirical Rule (68-95-99.7 Rule)
Applies only to normal distributions. It defines where specific proportions of data reside relative to the mean (): * 68% of observations fall within . * 95% of observations fall within . * 99.7% of observations fall within .
Example (SAT Math): \mu = 500, ̄\sigma = 100. * Middle : . * Middle : . * Middle : .
Five-Number Summary and Range Measures
The Five-Number Summary: 1. Minimum: The lowest observation. 2. Q1 (First Quartile): The percentile. 3. Median: The middle observation ( percentile). 4. Q3 (Third Quartile): The percentile. 5. Maximum: The highest observation.
Range Metrics: * Range: . Note: Heavily affected by outliers. * Interquartile Range (IQR): . Represents the spread of the middle of observations.