Exploratory Data Analysis for Univariate Quantitative Data

Statistical Analysis Process and Variable Types

  • Process of Statistical Analysis:

    • Identify the population and the parameter of interest (μ\mu).

    • Collect sample data.

    • Posit a statistical model based on sample information.

    • Draw inference about the population parameter using the model.

    • Note: Sample statistics (yˉ\bar{y}) are related to population parameters (μ\mu), but yˉμ\bar{y} \neq \mu.

  • Types of Variables:

    • Continuous Quantitative: Can take any numerical value, including decimals (e.g., percentage of bone density loss).

    • Discrete Quantitative: Can take only specific, fixed numerical values (e.g., count of bedrooms).

    • Categorical: Takes values from a fixed set of non-numerical categories (e.g., college of major).

Graphical Tools for Exploratory Data Analysis

  • Histogram:

    • Groups quantitative data into specified bin ranges and plots counts per bin.

    • Always described using Shape, Center, and Spread.

    • Sensitive to bin size selection.

Histograms illustrating bimodal, left-skewed, right-skewed, symmetric, and uniform distribution shapes.
  • Density Plot:

    • A smooth, continuous representation of a histogram.

    • Total area under the density curve is exactly 11.

  • Boxplot:

    • A visual plot of the 5-number summary (MinMin, Q1Q_1, MM, Q3Q_3, MaxMax).

Numerical Summaries

  • Measures of Center:

    • Mean (yˉ\bar{y}): The balancing point of the histogram:     yˉ=1ni=1nyi\bar{y} = \frac{1}{n}\sum_{i=1}^{n} y_i

    • Median (MM): The middle value dividing the data such that 50%50\% lies below and 50%50\% lies above.

    • Mode: The peak location corresponding to the most frequent value.

  • Measures of Spread:

    • Standard Deviation (SS): Represents the average distance of data points from the mean:     S=i=1n(yiyˉ)2n1S = \sqrt{\frac{\sum_{i=1}^{n} (y_i - \bar{y})^2}{n - 1}}

    • Interquartile Range (IQRIQR): Measures the spread of the middle 50%50\% of observations:     IQR=Q3Q1IQR = Q_3 - Q_1

    • Range: Distance between extremes (MaxMinMax - Min).

    • Properties: Spread is always 0\ge 0, equals 00 only when all values are identical, and shares the same units as the original data.

  • Measures of Shape:

    • Skewness: Quantifies symmetry within range <skew<-\infty < \text{skew} < \infty.

    • skew<0\text{skew} < 0: Left-skewed distribution.

    • skew>0\text{skew} > 0: Right-skewed distribution.

    • 0.5<skew<0.5-0.5 < \text{skew} < 0.5: Approximately symmetric distribution.

Density plots displaying numerical skewness values for symmetric, left-skewed, and right-skewed distributions.

Outliers and Selection of Descriptive Statistics

  • Outlier Detection (1.5×IQR1.5 \times IQR Rule):

    • An observation is an outlier if:     Value>Q3+1.5×IQR\text{Value} > Q_3 + 1.5 \times IQR     or     Value<Q11.5×IQR\text{Value} < Q_1 - 1.5 \times IQR

Boxplot displaying flagged outliers beyond whiskers.
  • Selecting Summary Measures:

    • Mean chases outliers and Standard Deviation becomes inflated by extreme values.

    • Presence of outliers or strong skewness: Use Median and IQR.

    • Absence of outliers and strong skewness: Use Mean and Standard Deviation.