BOUND REF

📚 BOUND REF.pdf

Brief overview

This document provides a foundational understanding of data analysis and statistical modeling. It covers essential concepts from data types and distributions to correlation and regression, equipping readers with the tools to interpret and analyze quantitative information.

Key points

  • Overview of data types and their distributions, including categorical and numerical variables.
  • Exploration of statistical rules and z-scores for understanding data spread and comparison.
  • Introduction to bivariate data analysis and visualization methods.
  • Detailed explanation of correlation coefficients and the coefficient of determination.
  • Application of linear regression for analyzing associations and making predictions.

1. Data types and distributions

1.1 Data types

  • Categorical variables: Represent qualities or characteristics. They group individuals into categories.
  • Numerical variables: Represent quantities that can be counted or measured.

1.1.1 Categorical variables

  • Nominal variables: Data values name the group. There is no inherent order.
  • Example: Sex (Male, Female).
  • Ordinal variables: Data values can group and order individuals.
  • Example: Fitness level (Low, Medium, High).

1.1.2 Numerical variables

  • Discrete variables: Represent quantities that are counted. Values are often whole numbers with nothing in between.
  • Question: "How many?"
  • Example: Number of mobile phones in a house.
  • Continuous variables: Represent quantities that are measured. Values can theoretically fall anywhere within a range.
  • Question: "How much?"
  • Example: Height of a person.

1.1.3 Numerical vs. categorical data

  • Arithmetic computations: Numerical data can be used for calculations; categorical data cannot.
  • Example: Calculating average weight is sensible; average house number is not.
  • Recording method: How data is recorded matters as much as the variable name.

1.2 Data displays

Data displays help visualize distributions and patterns.

Log scales are useful for data spread over many orders of magnitude 4.

1.3 Distributions

Distributions describe how data values are spread out.

  • Symmetric distributions: The data is evenly balanced around the center.
  • Positively skewed distributions: The tail of the distribution extends to the right (higher values).
  • Negatively skewed distributions: The tail of the distribution extends to the left (lower values).
  • Outliers: Values that lie far from other data points 6.

1.4 Summary statistics

Summary statistics describe the center and spread of a dataset.

  • For an even number of data values (nn), the median is the average of the two middle values 7.
  • The interquartile range is calculated as IQR=Q3−Q1IQR = Q3 - Q1 8.

1.4.1 Five number summary and box plots

  • Five number summary: Lists the minimum, Q1, median, Q3, and maximum values.

  • Box plot: A graphical display of the five number summary.

  • A box shows the middle 50% (from Q1 to Q3).

  • A line within the box shows the median.

  • Whiskers extend to the minimum and maximum values.

1.4.2 Identifying outliers

  • Outliers are values lying well away from other data.
  • Using the IQR, outliers fall outside the "fence values".

Fence values are Q1−1.5×IQRQ1 - 1.5 \times IQR and Q3+1.5×IQRQ3 + 1.5 \times IQR 9.

  • In a box plot, values beyond the upper or lower fence are considered possible outliers.

1.4.3 Choosing between mean and median

  • Symmetric distribution (no outliers): Mean or median can indicate the center.
  • Skewed distribution or outliers present: Median is a more appropriate measure of center.

1.4.4 Mean and standard deviation

  • The mean (average, xˉ\bar{x}) measures the center.
  • The standard deviation (ss) measures spread around the mean.

xˉ=∑xn\bar{x} = \frac{\sum x}{n}.

For symmetrical distributions, the mean and median are similar 10.

🔑 Important: Understanding data types is crucial for choosing appropriate display methods and summary statistics 2 3.

2. Statistical rules and z-scores

2.1 The 68-95-99.7% rule

  • Normal distribution: A bell-shaped curve where data clusters around the mean.
  • 68% rule: Approximately 68% of observations fall within one standard deviation of the mean.
  • 95% rule: Approximately 95% of observations fall within two standard deviations of the mean.
  • 99.7% rule: Approximately 99.7% of observations fall within three standard deviations of the mean 11.

The 68-95-99.7% rule provides a quick way to estimate data spread in a normal distribution.

2.2 Applying the percentage rule to quantities

  • Percentage of quantity: To find a specific amount, multiply the percentage by the total quantity.
  • Calculation: Percentage of quantity = (percentage / 100) * amount.

📝 Example: If 2.5% of a quantity of 100 falls into a certain range, that amount is (2.5 / 100) * 100 = 25.

2.3 Z-scores (standardized scores)

  • Z-score definition: A z-score measures how many standard deviations a data point is from the mean.
  • Purpose: Z-scores allow comparison of data from different distributions.
  • Z = 0: This score indicates the data point is exactly at the mean.
  • Z = 1: This score means the data point is one standard deviation above the mean.
  • Formula: z=x−xˉsz = \frac{x - \bar{x}}{s}.
  • xx: The individual data point.
  • xˉ\bar{x}: The mean of the distribution.
  • ss: The standard deviation of the distribution.

🔑 Important: A higher z-score is usually better for test scores, but a lower z-score is better for times (like race times).

2.4 Comparing results with z-scores

  • Math exam example: Score = 74, Mean = 60, Standard deviation = 12.
  • Math z-score = 74−6012=1.17\frac{74 - 60}{12} = 1.17.
  • English exam example: Score = 63, Mean = 50, Standard deviation = 8.
  • English z-score = 63−508=1.625\frac{63 - 50}{8} = 1.625.
  • Conclusion: The English exam result is better as it has a higher z-score 12.

2.5 Bivariate data

  • Bivariate data definition: Data that involves two variables.
  • Response Variable (RV): The variable that 'depends' on another.
  • Explanatory Variable (EV): The variable that is used to explain or predict the RV.
  • Also known as the independent variable (IV).
  • The response variable is also known as the dependent variable (DV).

📝 Example: Money earned (RV) depends on hours worked (EV).

2.6 Types of bivariate data and display methods

Here are the forms bivariate data can take and how to display them:

Data TypeDisplay MethodDescription
Two categorical variablesTwo-way frequency tablesExamines relationships between two categorical variables. Calculate percentages if totals differ. 13
Numerical variable and categorical var.Parallel boxplotsCompares numerical data across different categories using a common scale. 14
Numerical variable and categorical var.Back-to-back stem plotsCompares two distributions of numerical data within different categories. 15
Numerical variable and categorical var.Parallel dot plotsCompares medians and ranges of numerical data across categories.
Two numerical variablesScatterplotsDisplays the relationship between two numerical variables.

2.7 Scatterplots for two numerical variables

  • Axes: The x-axis is for the explanatory variable; the y-axis is for the response variable.
  • Assessing relationships: Look for a clear pattern in the points.
  • No association: Points are scattered randomly.
  • Association: A clear pattern exists in the points 16.

When describing an association, consider:

  • Direction: Positive (both variables increase) or negative (one increases, one decreases).
  • Form: Linear (straight line) or non-linear (curved).
  • Strength: Strong, moderate, or weak.

🔑 Important: Pearson's product-moment correlation coefficient ('r') precisely measures the strength of a linear relationship 17.

3. Correlation and regression

3.1 Pearson's correlation coefficient (r)

  • Pearson's product-moment correlation coefficient (r) measures the strength and direction of a linear association between two numerical variables.
  • Values range from -1 to 1.
  • r=1r = 1 indicates a perfect positive linear relationship.
  • r=−1r = -1 indicates a perfect negative linear relationship.
  • r=0r = 0 indicates no linear correlation.
  • A value close to 1 or -1 suggests a strong linear association.
  • A value close to 0 suggests a weak or no linear association.

🔑 Important: Correlation does not imply causation. A strong correlation means two variables move together linearly, but it doesn't mean one causes the other.

Strength of linear association

A rough guide for the strength of the linear association based on the r value is:

r value rangeStrength
±0.7\pm 0.7 to ±1.0\pm 1.0Strong
±0.4\pm 0.4 to ±0.6\pm 0.6Moderate
±0.1\pm 0.1 to ±0.3\pm 0.3Weak
00No correlation

18

Calculating Pearson's r

  • The formula for r is used for bivariate, numerical data with a linear association and no obvious outliers.
  • Calculators often have built-in functions to compute r directly from data lists.

3.2 Coefficient of determination (r2r^2)

  • The coefficient of determination (r2r^2) quantifies how well the variation in one variable explains the variation in another.
  • It is the square of Pearson's correlation coefficient (r).
  • r2r^2 values range from 0 to 1.
  • A higher r2r^2 value means the linear model better explains the variation.

🔑 Important: r2r^2 indicates the proportion of variance in the response variable explained by the explanatory variable in a linear model.

  • For example, if r2=0.74r^2 = 0.74:
  • 74% of the variation in the response variable can be explained by the variation in the explanatory variable.
  • Standard statement: "r2r^2 (as a percentage) of the variation in the response variable can be explained by variation in the explanatory variable.".

3.3 Linear regression

  • Linear regression models the association between two numerical variables using a straight line.
  • This line, known as the line of best fit or trend line, helps understand the nature of the association.
  • It also allows for predictions of one variable based on the other. For instance, predicting a child's adult height from their father's height.

Fitting lines of best fit

  • The goal is to find a line that balances the points above and below it.
  • Methods for fitting include:
  • By eye: Approximating a line with an equal number of points on either side. This is less accurate.
  • Least-squares method: A statistical method to find the line that minimizes the sum of the squared residuals (vertical distances from data points to the line).

🔑 Important: The assumptions for fitting a least-squares line are the same as for using the correlation coefficient: numerical data, a linear association, and no clear outliers.

  • The assumptions are:
  • The data is numerical.
  • The association is linear.
  • There are no clear outliers 21.

📝 Example: Predicting a young boy's adult height from his father's height using a linear regression line.

🔑 Important: The least-squares line minimizes the sum of the squares of each residual, providing the best linear fit.

🔑 Important: Regression analysis helps understand relationships and make predictions, but always verify assumptions like linearity and lack of outliers.

🔑 Important: Understanding both correlation (r) and the coefficient of determination (r^2) is crucial. r tells you the strength and direction of a linear relationship, while r^2 tells you how much of the variation in the dependent variable is explained by the independent variable 19 20.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also