Basic Data Analysis: Descriptive Analysis Study Guide

Fundamentals and Categories of Statistics

Statistics is defined as the science of collecting, organizing, and interpreting data. Statistical methods are broadly split into two primary categories:

  • Descriptive Statistics: Numerical and graphical values that present, organize, summarize, and describe the essential characteristics of a sample or population.
  • Inferential Statistics: Numerical methods used to draw conclusions, make predictions, or infer results about an entire population based on empirical data observed within a representative sample.

Hierarchy of Statistics

Nature and Role of Descriptive Analysis

Descriptive analysis represents the most elementary transformation of raw data in a manner that illuminates fundamental properties such as central tendency, distribution, and variability.

  • Summarization: It compresses large volumes of raw responses from hundreds or thousands of survey participants into concise, readable summary metrics.
  • Population Inferences: When working with sample data, descriptive statistics serve as the foundational baseline from which inferences about the broader population of interest are formed.
  • Practical Application Example: Consider a business research scenario where responses are collected from 1,0001,000 American consumers regarding their favorite soft drink brand and the price they expect to pay for a six-pack. Calculating the mean, median, and mode for brand preference and expected price allows researchers to define central tendency across the entire sample from three distinct perspectives.

Measures of Central Tendency

Central tendency identifies a single central value that summarizes an entire distribution of data points.

  • Mean (Average): The arithmetic average computed by summing all data values and dividing by the total count of observations. The mean is highly sensitive to extreme values or outliers.
    • Sample Mean formula:

Xˉ=∑Xn\bar{X} = \frac{\sum X}{n}

  • Population Mean formula:

μ=∑XN\mu = \frac{\sum X}{N}

  • Where ∑X\sum X represents the sum of all individual data values, NN represents the total number of items in the population, and nn represents the total number of items in the sample.

    • Representativeness of the Mean:
  • Compare Data Set A: {30,50,70}\left\{30, 50, 70\right\} (Mean = 5050)

  • Compare Data Set B: {40,50,60}\left\{40, 50, 60\right\} (Mean = 5050)

  • While both sets yield an identical mean of 5050, the distance of individual observations from the mean in Set A is greater than in Set B. Consequently, the mean of Set B provides a more accurate representation of its constituent data than the mean of Set A.

    • Median (Midpoint): The exact middle value in an ordered sequence of observations. Data must be sorted in ascending or descending order prior to identification.
  • For an odd number of observations: The median is the single middle score. For example, sorting {9,3,6,7,5}\left\{9, 3, 6, 7, 5\right\} yields {3,5,6,7,9}\left\{3, 5, 6, 7, 9\right\}, where the middle value is 66.

  • For an even number of observations: The median is the arithmetic average of the two middlemost values. For example, sorting {9,3,6,7,5,2}\left\{9, 3, 6, 7, 5, 2\right\} yields {2,3,5,6,7,9}\left\{2, 3, 5, 6, 7, 9\right\}, where the median is calculated as:

5+62=5.5\frac{5 + 6}{2} = 5.5

  • Mode: The most frequently occurring value in a data set. If no value repeats, the mode is undefined. It is the primary measure of central tendency used for nominal scale data (e.g., gender, store locations, grades).

  • Mean vs. Median Comparison:

    • The median is robust against outliers, whereas the mean can be severely skewed by extreme values.
    • Example dataset: {20,30,40,990}\left\{20, 30, 40, 990\right\}
    • Mean calculation:

20+30+40+9904=270\frac{20 + 30 + 40 + 990}{4} = 270

- Median calculation:

30+402=35\frac{30 + 40}{2} = 35

  • In this dataset, three out of four values fall between 2020 and 4040. The calculated mean of 270270 fails to reflect the reality of the majority of the data due to the single outlier of 990990. The median (3535) provides a significantly more realistic central anchor.

Measures of Variability and Dispersion

Variability quantifies how spread out or clustered data points are relative to one another and to the central value.

  • Range:
    • The difference between the highest score and the lowest score in a sample:

Range=Highest Score−Lowest Score\text{Range} = \text{Highest Score} - \text{Lowest Score}

  • Range is considered a weak metric of variability because it relies strictly on the two extreme values, ignoring all intermediate data, and is heavily influenced by sample size.
  • Numerical Comparison Example:
    • Data Set 1: −10,0,10,20,30-10, 0, 10, 20, 30
      • Mean:

−10+0+10+20+305=10\frac{-10 + 0 + 10 + 20 + 30}{5} = 10

  - Range:

30−(−10)=4030 - (-10) = 40

- Data Set 2: 8,9,10,11,128, 9, 10, 11, 12
  - Mean:

8+9+10+11+125=10\frac{8 + 9 + 10 + 11 + 12}{5} = 10

  - Range:

12−8=412 - 8 = 4

- Data Set 1 exhibits higher dispersion (Range=40\text{Range} = 40) despite having the same mean (1010) as Data Set 2 (Range=4\text{Range} = 4).
  • Practical Example: Ages of children playing in a playground ranging from 33 to 1010 years (Range=10−3=7 years\text{Range} = 10 - 3 = 7\,\text{years}).

    • Standard Deviation (SD):
  • Quantifies the degree of dispersion of values relative to the average/mean.

  • A low standard deviation indicates that data points closely cluster around the mean.

  • A high standard deviation indicates that data points are widely distributed across a broad spectrum.

  • Empirical Rule in a Normal Distribution:

    • 68%68\% of the population falls within 11 standard deviation of the mean (μ±1σ\mu \pm 1\sigma), with 34.1%34.1\% situated on either side of μ\mu
    • 95.4%95.4\% of the population falls within 22 standard deviations of the mean (μ±2σ\mu \pm 2\sigma), adding 13.6%13.6\% on each tail.
    • 99.6%99.6\% of the population falls within 33 standard deviations of the mean (μ±3σ\mu \pm 3\sigma), adding 2.1%2.1\% on each tail.
    • 0.1%0.1\% lies beyond 3σ3\sigma on each extreme tail.

Empirical Rule for Normal Distribution

  • Variance:
    • Defined as the squared standard deviation, measuring the spread of numbers.
    • Sample Variance Formula:

s2=∑(X−Xˉ)2N−1s^2 = \frac{\sum (X - \bar{X})^2}{N - 1}

  • Variance is reported less frequently in descriptive presentations than standard deviation because its units are squared relative to the original measurements.

Sample Variance Formula

Skewness and Distribution Shapes

Skewness measures the symmetry or asymmetry of a data distribution around its central point.

  • Symmetrical Curve (No Skew / Normal Distribution):
    • The left and right halves of the distribution are mirror images.
    • Measures of central tendency coincide exactly at the peak:

Mean=Median=Mode\text{Mean} = \text{Median} = \text{Mode}

  • Real-world Example: Heights of students, centered around an average height of 1.5 mtrs1.5\,\text{mtrs} (ranging from 0.9 mtrs0.9\,\text{mtrs} to 2.1 mtrs2.1\,\text{mtrs}).

Normal Distribution Curve for Student Heights

  • Positively Skewed (Right-Skewed):
    • The distribution tail extends farther toward higher positive values (to the right).
    • Outliers pull the mean to the right of the median and mode:

Mode<Median<Mean\text{Mode} < \text{Median} < \text{Mean}

  • Real-world Example: Household income distribution, where most individuals earn modest incomes ($10,000\$10,000–$40,000\$40,000), while a small tail of high earners ($90,000\$90,000–$100,000+\$100,000+) pulls the tail rightward.

Positively Skewed Income Distribution

  • Negatively Skewed (Left-Skewed):
    • The distribution tail extends farther toward lower values (to the left).
    • Outliers pull the mean to the left of the median and mode:

Mean<Median<Mode\text{Mean} < \text{Median} < \text{Mode}

  • Real-world Example: Marks scored on an extremely easy test, where the majority of students score high marks (7070–8080), while a small tail of low scores (2020–4040) drags the tail leftward.

Negatively Skewed Test Marks Distribution

  • General Rule for Skewness: The greater the degree of skewness in a distribution, the greater the distance separating the mean, median, and mode.

Comparison of Distribution Skewness Types

Tabulation and Measurement Scales

Tabulation is the systematic arrangement of raw data into tabular format by counting observations across distinct variable categories.

  • Simple Tabulation:
    • Counts response frequencies for each assigned category code.
    • Frequency Table Components:
    • Frequency: Absolute count of responses in each category.
    • Percent: Percentage proportion of total responses represented by a category.
    • Cumulative Percentage: Running sum of percentages including the current category and all preceding categories.
    • Soft Drink Outlet Survey Example:
Response CategoryFrequencyPercent (%\%)Cumulative Percentage (%\%)
Drug store505010101010
Convenience store22522545455555
Grocery store17517535359090
Specialty store3535779797
Other151533100100
  • In this table, convenience store represents the mode (45%45\% of responses, N=225N = 225).

  • Cumulative percentage is particularly informative for ordinal, interval, and ratio scales with numerous categories.

    • Selecting Descriptive Statistics by Measurement Level:
  • Nominal & Ordinal Scales: Best presented via Frequency Tables, Proportions (Percentages), and Mode. Represented graphically via bar charts.

  • Interval & Ratio Scales: Best summarized using Means and Standard Deviations. Represented graphically via continuous histograms and fitted density curves.

Measurement Levels and Suggested Statistics

Cross-Tabulation Analysis

Cross-tabulation (cross-tab) is an analytical technique used to evaluate relationships between two or more categorical variables simultaneously by cross-classifying responses in a matrix of rows and columns.

  • Examples of Cross-Tabular Findings:

    • Favorite TV personality preference varies across age demographics:
    • Ages 1818–2424: Conan O'Brien (Modal response).
    • Ages 3030–3939: Bill O'Reilly (Modal response).
    • Ages 65+65+: Oprah Winfrey (Modal response).
    • Frequency of Visit by Age Group Cross-Tabulation (N=204N = 204 Total Base):
    • Under 1818: 5959 respondents (29%29\%)
    • 1818–2424: 4343 respondents (21%21\%)
    • 2525–3434: 3838 respondents (19%19\%)
    • 3535–4444: 3636 respondents (18%18\%)
    • 4545–5454: 2020 respondents (10%10\%)
    • 55+55+: 88 respondents (4%4\%)
    • Breakdown by visit frequency: Daily (1818, 9%9\%), Twice a week (3535, 17%17\%), Weekly (6464, 31%31\%), Monthly (8787, 43%43\%).
  • Target Shopping Survey Cross-Tabulation Example (N=450N = 450 Total Respondents):

    • (A) Raw Frequency Cross-Tabulation:
GenderYes (Shop at Target)No (Do Not Shop at Target)Total
Men1501507575225225
Women1801804545225225
Total330330120120450450
  • (B) Row Percentage Cross-Tabulation:
GenderYes (%\%)No (%\%)Total Base
Men66.7%66.7\%33.3%33.3\%100%100\% (225225)
Women80.0%80.0\%20.0%20.0\%100%100\% (225225)
  • (C) Column Percentage Cross-Tabulation:
GenderYes Base (330330)No Base (120120)
Men45.5%45.5\%62.5%62.5\%
Women54.5%54.5\%37.5%37.5\%
Total100%100\%100%100\%

Target Shopping Cross Tabulation

Correlation Analysis

Correlation measures the direction and strength of the linear association between two continuous variables.

  • Correlation Coefficient (rr):
    • Ranges strictly from +1.0+1.0 through 0.00.0 to −1.0-1.0
    • r=+1.0r = +1.0: Perfect positive linear relationship (as X increases, Y increases proportionally).
    • r=−1.0r = -1.0: Perfect negative linear relationship (as X increases, Y decreases proportionally).
    • r=0.0r = 0.0: Complete absence of linear correlation.
    • Non-linear relationships (e.g., quadratic curves) may yield r≈0r \approx 0 despite having a strong mathematical relationship.

Correlation Coefficient Types

  • Excel Calculation Method:
    • Spreadsheet function formula:

=CORREL(array1, array2)

  • Ice Cream Sales vs. Outdoor Temperature Sample Data:
Temperature (∘C^{\circ}\text{C})Ice Cream Sales (\)
14.214.2215215
16.416.4325325
11.911.9185185
15.215.2332332
18.518.5406406
22.122.1522522
19.419.4412412
25.125.1614614
23.423.4544544
18.118.1421421
22.622.6445445
17.217.2408408
  • Formula applied: =CORREL(A2:A13, B2:B13)
  • Result: r=0.96r = 0.96, indicating a strong positive linear relationship between temperature and ice cream sales.

Ice Cream Sales vs Temperature Dataset

Data Transformation and Summary Output

Data transformation (or data conversion) involves modifying raw values or creating new variables to prepare data for specific analytical objectives.

  • Reducing Response Bias: Asking respondents for their exact year of birth rather than their age reduces bias. The raw birth year is then converted to age via:

Age=Current Year−Birth Year\text{Age} = \text{Current Year} - \text{Birth Year}

  • Likert Scale Tabulation Example:

    • Survey Item: "I am satisfied with my college experience at this university"
    • Frequency Results:
    • Strongly Disagree: 110110
    • Disagree: 3030
    • Neutral: 1515
    • Agree: 3535
    • Strongly Agree: 210210
  • Standard Descriptive Statistics Output Table Example (State=NY\text{State} = \text{NY}, Sample Size N=10N = 10):

VariableNNMeanStandard DeviationMinimum ValueMaximum ValueStd. Error of MeanSumVarianceC.V. (%\%)
EMP1010142.930142.930232.665232.66512.80012.800788.800788.80073.57573.5751429.3001429.30054133.054133.0162.782162.782
SALES10105807.8005807.80011905.12711905.127307.000307.00039401.00039401.0003764.7323764.73258078.00058078.000141732049.1141732049.1204.985204.985
  • Variable Key: EMP = number of employees (in thousands); SALES = sales volume (in thousands); C.V. = Coefficient of Variation.

Descriptive Statistics Output for NY EMP and SALES Data

  • Essential Excel Descriptive Statistics Functions:
    • =AVERAGE(first_cell:last_cell): Calculates the arithmetic mean.
    • =MEDIAN(first_cell:last_cell): Calculates the median midpoint.
    • =MODE(first_cell:last_cell): Calculates the most frequent value.
    • =VAR(first_cell:last_cell): Calculates sample variance.
    • =STDEV(first_cell:last_cell): Calculates sample standard deviation.
    • Functions can be entered directly into cells, in the formula bar, or generated via the Function Wizard (fx button on toolbar).