Probability Statistics

Cover

LU 2_incl answers_copy.pdf

📚 LU 2_incl answers_copy.pdf

Brief overview

This document introduces statistical inference, focusing on estimation methods to draw conclusions about population parameters from sample data. It covers point and interval estimation techniques, essential for understanding data variability and making informed decisions.

Key points

  • Introduction to statistical inference and estimation principles
  • Overview of point and confidence interval estimation methods
  • Detailed calculation steps for confidence intervals for means and proportions
  • Understanding the properties and application of the Student t-distribution
  • Relationship between confidence level, precision, and sample size

1. Introduction to statistical inference and estimation

1.1 Statistical inference fundamentals

Statistical inference uses sample data to draw conclusions about population parameters. This process involves two main approaches: estimation and hypothesis testing.

This course focuses on inference for population means and proportions 2.

Three primary problem statements are addressed:

  • A single population mean (μ\mu) when the population variance (σ2\sigma^2) is known.
  • A single population mean (μ\mu) when the population variance (σ2\sigma^2) is unknown.
  • A single population proportion (π\pi) 3.

1.2 The Student's t-distribution

When the population standard deviation (σ\sigma) or variance (σ2\sigma^2) is unknown, the Student's t-distribution is used for inference about the population mean. This distribution was developed by William Gosset, who published under the pseudonym "Student".

The t-distribution applies when the random variable is normally distributed, and σ2\sigma^2 is unknown. The standardized sampling distribution of the mean then follows a t-distribution with n−1n-1 degrees of freedom (df), where nn is the sample size 4.

1.2.1 Properties of the t-distribution

The t-distribution shares several characteristics with the normal distribution but has key differences.

PropertyDescription
SymmetrySymmetric about zero
Total AreaThe total area under the curve equals 1
IdentificationDefined by degrees of freedom (df), starting from 1
ShapeBell-shaped with heavier tails than the normal curve
Relationship to ZApproaches the Z-distribution as degrees of freedom increase

The t-distribution's heavier tails mean there is more probability in the tails compared to the Z-distribution. This reflects the increased uncertainty when estimating σ\sigma from sample data 5.

This chart illustrates the t-distribution and its relationship with the Z-distribution, showing how the t-distribution with different degrees of freedom approaches the Z-distribution.

As df increases, the t-distribution becomes more like the Z-distribution.

1.3 Using t-tables for critical values

T-tables are essential for finding critical (cut-off) values for both the Z and t-distributions. These values are associated with specific tail areas.

T-tables help find critical values based on degrees of freedom and tail areas.

Key components of t-tables:

  • Degrees of Freedom (df): The first column lists df, calculated as n−1n-1.
  • Upper Tail Areas (α\alpha): The first row shows selected upper tail probabilities (e.g., 0.1, 0.05, 0.025).
  • t-values: The body of the table contains the t-values corresponding to the df and tail areas.
  • df = ∞\infty: The last row lists z-scores, representing the Z-distribution's values when df is very large 6.

1.3.1 Finding critical t-values

To find a critical t-value, identify the row for your sample's degrees of freedom and the column for the desired upper tail area. The intersection provides the t-value.

For example, with a sample size (nn) of 10, df is 10−1=910-1=9. The t-value for an upper tail area of 0.1 is 1.383.

This means P(T>1.383)=0.1P(T > 1.383) = 0.1 for df=9 7.

A table showing critical values for the Student's t-distribution based on degrees of freedom and alpha levels.

Cover

LU 3_incl answers_copy.pdf

📚 LU 3_incl answers_copy.pdf

Brief overview

This document introduces the core principles and methodologies of hypothesis testing, a critical statistical tool for drawing conclusions from data. Understanding these concepts is essential for interpreting research and making data-driven decisions.

Key points

  • Overview of the fundamental purpose and two main approaches to hypothesis testing.
  • Step-by-step details of the traditional method for hypothesis testing.
  • Explanation and interpretation of the p-value approach to hypothesis testing.
  • Identification and distinction between Type I and Type II errors in hypothesis testing.
  • Concepts of alpha, beta, and statistical power in the context of hypothesis testing.

1. Introduction to hypothesis testing

Hypothesis testing uses sample data to evaluate statements about unknown population parameters. It starts with an assumption about a population parameter, then uses sample data to see if there is evidence against this assumption.

We can prove something false but not necessarily true 2.

1.1 Logic of hypothesis testing

The core idea is to compare a sample statistic to a theoretical distribution based on an initial assumption about the population parameter. If the sample statistic is close to the center of the distribution, the assumption might be correct.

However, if the sample statistic falls in the tails (an "unusual outcome"), it suggests the original assumption may be wrong 3 4.

Unusual outcomes can occur due to:

  • Incorrect sampling methodology.
  • Pure chance.
  • An incorrect initial assumption about the parameter.

Hypothesis testing focuses on identifying unusual outcomes to challenge the initial assumption 5.

A normal distribution representing the sampling distribution of the sample mean, with the population mean (μ) at the center.

1.2 The hypothesis testing process (traditional approach)

The traditional approach involves a structured five-step process.

  1. State hypotheses: Define the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
  • H0H_0 is the neutral statement, assumed true, and always includes an equals sign.
  • H1H_1 is the statement to be tested and can be one-sided (left or right) or two-sided 6.
  1. Find the critical value: Determine the critical value(s) based on the significance level (α\alpha), typically 0.01, 0.05, or 0.1. These values define the rejection region(s).

Three types of hypothesis tests are illustrated: one-sided to the left, one-sided to the right, and two-sided.

  1. Calculate the test statistic: Compute a standardized value from the sample data. This value indicates where the sample statistic falls relative to the assumed distribution under H0H_0 8.

Common test statistics include:

  • One-sample z-test for a mean (when σ\sigma is known): z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}.
  • One-sample t-test for a mean (when σ\sigma is unknown): t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} with df=n−1df = n-1.
  • One-sample z-test for a proportion: z=p−π0π0(1−π0)/nz = \frac{p - \pi_0}{\sqrt{\pi_0(1-\pi_0)/n}} 9.
  1. Make a decision: Compare the test statistic to the rejection region.
  • If the test statistic falls within the rejection region, reject H0H_0.
  • If the test statistic falls outside the rejection region, fail to reject H0H_0.

It's important to note that we never "accept" H0H_0, only "fail to reject" it, as we cannot definitively prove it true 10.

  1. Reach a conclusion
Cover

LU 4 Lecture Notes_copy.pdf

📚 LU 4 Lecture Notes_copy.pdf

Brief overview

This document introduces Chi-squared hypothesis tests, fundamental tools for analyzing categorical data. Understanding these tests is crucial for determining relationships and distributions within datasets.

Key points

  • Introduction to the Chi-squared distribution and its properties
  • How to use the Chi-squared table for critical values
  • Overview of the Chi-squared goodness-of-fit test for single variables
  • The Chi-squared test of independence for analyzing associations between two variables
  • Detailed steps for conducting Chi-squared hypothesis tests

1. Introduction to Chi-Squared Hypothesis Tests

1.1 Understanding the Chi-squared distribution

The Chi-squared distribution (²) is a continuous distribution used in hypothesis testing. It is positively skewed and its shape depends on the degrees of freedom.

Chi-squared values are always positive. This distribution helps us compare observed frequencies with expected frequencies.

The Chi-squared table is key to finding critical values. It uses degrees of freedom and the significance level (alpha, ).

The table has critical values for upper tail areas.

Diagram illustrating the Chi-squared distribution and a table of critical values.

Chi-squared distribution: Right-skewed, always positive, depends on degrees of freedom.

1.2 Chi-squared goodness-of-fit tests

A Chi-squared goodness-of-fit test checks if a variable's observed distribution significantly differs from its expected distribution. The expected distribution can be:

  • Equal proportions across all categories.
  • Proportions that match a known distribution.

For these tests, each category must have an expected frequency of at least 5 4.

1.2.1 Steps for a Chi-squared hypothesis test

Hypothesis testing with Chi-squared follows a structured process.

  1. State Hypotheses: Define the null (H0H_0) and alternative (H1H_1) hypotheses.
  • For equal proportions: H0:π1=π2=⋯=πkH_0: \pi_1 = \pi_2 = \dots = \pi_k, H1:H_1: At least one proportion differs.
  • For a known distribution: H0:H_0: Distribution follows a known pattern, H1:H_1: At least one proportion differs 5.
  1. Identify Rejection Region: Use the significance level (α\alpha) and degrees of freedom (df=k−1df = k-1) to find the critical value from the ² table. kk is the number of categories.
  2. Calculate Test Statistic: Compute the ² test statistic using observed (fof_o) and expected (fef_e) frequencies.

χ2=∑(fo−fe)2fe\chi^2 = \sum \frac{(f_o - f_e)^2}{f_e}

  • Observed frequencies (fof_o) are the actual counts.
  • Expected frequencies (fef_e) are calculated as n×πin \times \pi_i, where nn is the total sample size and πi\pi_i is the expected proportion for category ii 6.

Formula for calculating the chi-squared test statistic, which involves the sum of squared differences between observed and expected frequencies, divided by expected frequencies.

A table showing observed values, expected values, and a formula for calculating the chi-squared statistic.

  1. Make a Decision: Compare the test statistic to the critical value. Reject H0H_0 if the test statistic falls within the rejection region.
  2. Reach a Conclusion: Interpret the decision in the context of the problem. If H0H_0 is rejected, there is sufficient evidence to support H1H_1 7.
Cover

LU4 Lecture Notes.pdf

📚 LU4 Lecture Notes.pdf

Brief overview

This document introduces statistical concepts for analyzing relationships between variables. It focuses on understanding and quantifying these relationships for prediction and interpretation. Mastering these techniques is crucial for drawing meaningful conclusions from data.

Key points

  • Understanding dependent and independent variables and their roles in relationships.
  • Visualizing variable relationships using scatterplots and identifying patterns.
  • Quantifying linear association strength and direction with Pearson's correlation coefficient.
  • Modeling predictive relationships with simple linear regression and the least squares method.
  • Interpreting the goodness-of-fit of regression models using the coefficient of determination.

1. Understanding variables in relationships

1.1 Roles of variables

  • Dependent variable (Y): Its value relies on other variables.
  • Independent variable (X): It influences the dependent variable's value.

📝 Example: Advertising expenditure (X) impacts a company's product sales (Y). Sales are dependent, advertising is independent 3.

1.2 Visualizing relationships: scatterplots

  • A scatterplot shows the link between two numerical variables.
  • The independent variable goes on the x-axis. The dependent variable goes on the y-axis.
  • This plot reveals if the relationship is:
  • Linear (positive or negative)
  • Non-linear
  • Non-existent 5.

1.3 Quantifying linear relationships: Pearson's correlation coefficient

  • The correlation coefficient measures how strong a relationship is.
  • Pearson's Product Moment Correlation Coefficient (r) is common 6.
  • It ranges from -1 to +1.

🔑 Important: The roles of X and Y are interchangeable for calculating r. If X correlates with Y, then Y correlates with X.

1.3.1 Interpretation of r

Pearson's r indicates the strength and direction of a linear link.

Value of rInterpretation
r=−1r = -1Perfect negative linear relationship
rr close to −1-1Strong negative linear relationship
rr far from −1-1 and far from 00Moderate negative linear relationship
rr negative and relatively close to 00Weak negative linear relationship
r=0r = 0No linear relationship
rr positive and relatively close to 00Weak positive linear relationship
rr far from 00 and far from +1+1Moderate positive linear relationship
rr close to +1+1Strong positive linear relationship
r=+1r = +1Perfect positive linear relationship

8

  • A value of r near 0 means a weak linear link.
  • r = 0 means no linear link, but a non-linear one might exist.
  • Outliers can greatly affect the value of r.

🔑 Important: Positive correlation means high values go with high values, and low with low. 🔑 Important: Negative correlation means high values go with low values, and vice versa 7.

1.4 Calculator steps for correlation coefficient

Use these steps to find r on your calculator.

  1. SETUP → arrow down → 3:STAT → 2:OFF
  2. MODE → 2:STAT → A + BX
  3. Enter independent variable values in column X and dependent variable values in column Y.
  4. AC
  5. SHIFT STAT → 5:REG → 3:r → = 9.
Cover

LU9_incl answers.pdf

📚 LU9_incl answers.pdf

Brief overview

This document provides a comprehensive guide to time series analysis, focusing on decomposition, trend estimation, seasonality modeling, and forecasting. Understanding these concepts is crucial for analyzing chronological data and predicting future trends in various fields.

Key points

  • Introduction to the nature and purpose of time series data.
  • Decomposition of time series using multiplicative models and moving averages.
  • Trend and seasonal analysis via the ratio-to-moving average method.
  • Methods for forecasting future time series values.
  • Practical application of forecasting with an example of ice-cream sales.

1. Introduction to time series analysis

1.1 What is time series analysis?

  • Time series data: numeric observations of a variable collected over time at regular intervals.

  • Arranged in chronological order, these data capture changes over time.

  • Examples include daily stock prices, monthly sales figures, or annual population counts.

  • The main goals of time series analysis are to:

  • Identify recurring patterns within the data.

  • Model these patterns statistically.

  • Forecast future values based on the models 2.

1.2 Components of a time series

Time series data are influenced by four main forces that can act alone or together.

ComponentDescription
Trend (T)Long-term movement, either an increase or decrease, over time.
Cycles (C)Changes related to economic activity (not covered in this topic).
Seasonal (S)Fluctuations repeating at regular intervals tied to the calendar.
Irregular (I)Random variations due to unpredictable, everyday influences.

3

🔑 Important: Every time series contains at least one of these components.

1.2.1 Identifying components in examples

Let's examine how these components appear in real-world examples.

  • Quarterly bicycle sales often show a roughly constant trend and unpredictable irregular variations 4.

  • Weekly bread sales might display an increasing linear trend along with irregular fluctuations 5.

  • Quarterly hot water bottle sales can exhibit a decreasing trend, seasonal patterns, and irregular effects.

  • Quarterly car sales typically show an increasing trend, seasonal variations, and irregular influences 7.

🔑 Important: Seasonal variations (S) are tied to calendar intervals like days, weeks, or months. The period for these variations is often denoted by kk. For quarterly data, k=4k=4 6.

🔑 Important: Time series analysis helps understand past data and predict future outcomes by modeling these underlying components.

2. Decomposition of time series and moving averages

2.1 The multiplicative time series model

  • The classical model states that a time series (YY) is a product of its components. The formula is Y=T×S×IY = T \times S \times I.
  • This model assumes a multiplicative relationship between trend (TT), seasonality (SS), and irregular fluctuations (II).
  • For this course, the focus is on modeling trend and seasonality only.

📝 Example: If YY is monthly sales, TT is the overall growth in sales over years, SS is the predictable increase in sales during holiday seasons, and II represents unexpected events like a sudden competitor launch.

  • In this model, TT has the same units as YY. Seasonality (SS) is a percentage adjustment.
  • A value of SS greater than 100% indicates an above-average seasonal effect. A value less than 100% indicates a below-average effect 8.
  • Decomposition analysis aims to isolate and model the trend and seasonal components separately.
  • Unpredictable irregular fluctuations (II) are not modeled.
  • The forecasting model uses the estimated trend and seasonal components: Y^=T^×S^\hat{Y} = \hat{T} \times \hat{S}.

2.2 Steps in decomposition analysis

  • Decomposition involves several key steps to isolate and estimate the components of a time series.
StepAction
1Estimate the trend (TT) using regression analysis
2Estimate seasonality (SS) using the ratio-to-moving average method
3Forecast future values (Y^\hat{Y})
  • The trend component is typically estimated first, often through linear regression analysis 9 11.
  • After estimating the trend, the seasonal component is isolated 12.
  • This involves removing the smoothed trend (moving average) from the original series.
  • The result is a series representing seasonal and irregular compone
Cover

LU9 Lecture Notes_5927bb2f90765bea021a57af5a93d3fa.pdf

📚 LU9 Lecture Notes_5927bb2f90765bea021a57af5a93d3fa.pdf

Brief overview

This document provides an introduction to time series analysis, focusing on identifying patterns and forecasting future values from data collected over regular intervals. It explains the fundamental components influencing time series and their decomposition for modeling and prediction.

Key points

  • Introduction to time series data and its four core components: trend, cycles, seasonal, and irregular variations.
  • Decomposition methods, including the multiplicative model (Y = T × S × I), for isolating and understanding time series components.
  • Techniques for trend estimation using moving averages and linear regression.
  • The ratio-to-moving average method for calculating and applying seasonal indices in analysis and forecasting.
  • How to build a forecasting model by combining estimated trend and seasonal components.

1. Introduction to time series analysis

1.1 What is time series analysis?

  • A time series is data collected over time at regular intervals.
  • Examples include daily stock prices or monthly sales figures.
  • Time series analysis aims to find patterns and predict future values 2.

📝 Example: Monthly rainfall data collected over many years.

1.2 Components of a time series

Time series data are influenced by four main forces:

  • Trend (T): The long-term direction (up or down) of the data.
  • Cycles (C): Changes linked to economic activity. (Note: Not covered in detail for this module.)
  • Seasonal variations (S): Predictable patterns repeating at fixed intervals, often tied to the calendar (e.g., daily, monthly).
  • Irregular variations (I): Unpredictable events or random fluctuations 3.

1.2.1 Identifying components in data

Different time series show combinations of these components.

  • Bicycle sales might have a steady trend and random noise.
  • Bread sales could show an increasing trend with random ups and downs.
  • Hot water bottle sales might decrease over time and show seasonal peaks.
  • Car sales often have an upward trend, seasonality, and random effects 4 5 6 7.

📝 Example: Quarterly car sales can show growth over years (trend), specific peaks in certain seasons (seasonal), and unexpected drops due to events (irregular).

🔑 Important: Understanding these components is key to modeling and forecasting time series data.

🔑 Important: A time series can be influenced by one or more of these four components acting together.

2. Decomposition and modeling of time series

2.1 Introduction to the multiplicative time series model

  • The multiplicative model describes how time series components combine: Y=T×S×IY = T \times S \times I.

  • Components represent:

  • Trend (T): The long-term direction of the data, in the same units as Y.

  • Seasonality (S): Recurring patterns within a fixed period (e.g., year), expressed as percentages ( > 100 is above average, < 100 is below average).

  • Irregular (I): Unpredictable, random fluctuations; these are not modeled.

  • Decomposition isolates and models trend and seasonality separately.

  • The forecasting model uses estimated components: Y^=T^×S^\hat{Y} = \hat{T} \times \hat{S}.

2.2 Steps in decomposition analysis

  1. Estimate the trend component using regression.
  2. Estimate the seasonal component using the ratio-to-moving average method.
  3. Forecast future values by combining trend and seasonal estimates.

2.3 Moving averages for smoothing

  • A moving average (MAV)
Cover

LU9 Lecture Notes.pdf

📚 LU9 Lecture Notes.pdf

Brief overview

This document introduces the fundamental concepts and techniques of time series analysis. Understanding these methods is crucial for identifying patterns, modeling temporal dependencies, and forecasting future values in sequential data.

Key points

  • Overview of time series data and the goals of time series analysis.
  • Identification of the four core components of a time series: trend, cycles, seasonality, and random effects.
  • Methods for estimating the trend component using moving averages and centered moving averages.
  • Techniques for calculating and adjusting seasonal indices using the ratio-to-moving average approach.
  • Application of estimated trend and seasonal components for forecasting future time series values.

1. Introduction to time series analysis

1.1 What is time series data?

  • Time series data: Numerical data of a random variable collected over time at regular intervals, arranged chronologically.
  • Common examples include daily stock prices, monthly sales, and annual population figures.
  • Trendline graphs visualize time series data with time on the x-axis and variable values on the y-axis.

1.2 Purpose of time series analysis

  • The main goals are to identify recurring patterns, model them statistically, and forecast future values 2.

🔑 Important: Time series analysis helps us understand past patterns to predict future outcomes.

1.3 Components of a time series

Time series data are influenced by four underlying forces that operate over time.

ComponentDescription
Trend (T)Long-term upward or downward movement in the data.
Cycles (C)Economic activity fluctuations (not covered in this course).
Seasonal (S)Repeats at regular intervals tied to the calendar (e.g., months, quarters).
Irregular (I)Unpredictable variations due to random influences. 3

1.4 Identifying components in data

Analyzing time series graphs helps identify which components are present.

📝 Example: Quarterly bicycle sales might show a trend and irregular variations, but not strong seasonality.

Here are examples of components in different data types:

Data SeriesComponents Present
Quarterly bicycle salesTrend, Irregular 4
Weekly bread salesTrend, Irregular 5
Quarterly hot water bottle salesTrend, Seasonal, Irregular 6
Quarterly car salesTrend, Seasonal, Irregular 7

1.5 Decomposition of a time series

  • The classical model for time series is the multiplicative model: Y=T×S×IY = T \times S \times I.
  • YY is the observed value, TT is the trend, SS is seasonality, and II is the irregular component.
  • Trend (TT) has the same units as YY.
  • Seasonality (SS) is a percentage; >100 means above average, <100 means below average 8.

🔑 Important: This course focuses on modeling only the trend and seasonal components.

1.6 Steps in decomposition analysis

Decomposition isolates and models trend and seasonality separately, as irregular fluctuations are unpredictable.

The forecasting model uses estimated trend and seasonal components: Y^=T^×S^\hat{Y} = \hat{T} \times \hat{S}.

The key steps are:

  1. Estimate trend: Use regression analysis.
  2. Estimate seasonality: Use the ratio-to-moving average method.
  3. Forecast: Combine trend and seasonal estimates 9.

🔑 Important: Decomposition analysis breaks down a time series into its core influences.

1.6.1 Finding the trend estimate

  • The trend component is estimated using linear regression analysis.
  • This process models the long-term movement of the data 11.

1.6.2 Calculating seasonal indices

  • Moving averages are used to smooth the trend estimate 12.
  • Dividing the original data by the smoothed trend isolates seasonal and irregular components, called seasonal ratios 13.
  • These seasonal ratios are then averaged to find adjusted seasonal indices 14.

🔑 Important: Seasonal indices represent the typical pattern of variation within a year.

1.6.3 Forecasting future values

  • The final forecast combines the estimated trend and seasonal components.
  • This involves multiplying the projected trend by the seasonal index for the future period 15.

🔑 Important: Combining trend and seasonality allows for predicting future values of the time series.

2. Moving averages and trend estimation

2.1 Smoothing time series with moving averages

Cover

LU9 Lecture Notes.pdf

📚 LU9 Lecture Notes.pdf

Brief overview

This document introduces time series analysis, a method for understanding and predicting data collected over regular intervals. Mastering these concepts is essential for identifying patterns, modeling temporal influences, and forecasting future trends across various fields.

Key points

  • Overview of time series data and its four core components: trend, cycles, seasonality, and random effects.
  • Understanding the multiplicative time series decomposition model (Y = T × S × I).
  • Methods for isolating and estimating trend and seasonal components using moving averages.
  • Practical application of the decomposition model for forecasting future time series values (Ŷ = Ť × Ŝ).
  • Adjustments for moving averages with odd and even numbers of periods.

1. Introduction to time series analysis

1.1 What is a time series?

  • Time series: A collection of numerical data for a random variable observed over time at regular intervals.
  • Data is arranged in chronological order.
  • A trendline graph visualizes time series data. Time is on the x-axis, and variable values are on the y-axis.
  • The main goals of time series analysis are to:
  • Identify recurring patterns.
  • Model these patterns statistically.
  • Forecast future values 2.

1.2 Components of a time series

Time series data are influenced by four underlying forces acting together or separately.

  • Trend (T): The long-term upward or downward movement in the data over time.
  • Cycles (C): Changes related to economic activity. (Note: Not covered in this course).
  • Seasonal variations (S): Fluctuations that repeat at regular intervals, tied to the calendar (e.g., days, weeks, months).
  • Random effects (I): Unpredictable variations caused by random influences 3.

Table 1: Time series components

ComponentDescription
Trend (T)Long-term movement (increase/decrease)
Cycles (C)Economic activity changes
Seasonal (S)Calendar-related regular fluctuations
Irregular (I)Unpredictable, random influences

1.3 Identifying components in examples

Analyzing graphs helps identify which components are present in a time series.

  • Quarterly bicycle sales show an approximate constant trend and irregular variations. This line graph displays quarterly bicycle sales over 14 time periods, showing fluctuations and an approximate constant trend..

  • Weekly bread sales exhibit an increasing linear trend and irregular variations. This line chart shows the weekly bread sales at a grocery store over a period of 14 weeks, indicating an increasing linear trend and irregular variations..

  • Quarterly hot water bottle sales demonstrate a decreasing linear trend, irregular variations, and seasonal variations. This line graph shows the quarterly hot water bottle sales at a pharmacy over time, illustrating a decreasing linear trend and seasonal variations..

  • Quarterly car sales display an increasing linear trend, irregular variations, and seasonal variations. This line graph displays quarterly car sales at a dealership over time, illustrating an increasing linear trend, irregular variations, and seasonal variations..

Table 2: Component presence in sales data

Sales DataTrend (T)Seasonal (S)Irregular (I)
Bicycle salesApproximateNoYes
Bread salesIncreasingNoYes
Hot water bottle salesDecreasingYesYes
Car salesIncreasingYesYes
Cover

MADE EASY BY LUYANDA- ADDITIONAL NOTES VERSION.pdf

Table of contents

  1. These are a little extra something for you! 칃
  2. Additional notes regression & ANOVA exam notes
  3. Linear regression
  4. Multiple regression
  5. Logistic regression
  6. One-way ANOVA
  7. Practice questions
  8. General review questions
  9. Thank you for supporting me

1. These are a little extra something for you! 칃

1.1 A note from the author

This section provides a personal introduction to the study notes, emphasizing their Honours-level nature and encouraging students to focus on material covered in their specific course. The author shares these notes with the hope of making topics easier to understand and providing extra help for Statistics exams.

Students are advised to select relevant topics, study at their own pace, and concentrate on what they have been taught 2.

  • Author's encouragement: The author wishes students well and hopes these notes are as helpful as their own undergraduate notes were 2.

2. Additional notes regression & ANOVA exam notes

2.1 Identifying the dependent variable and research question

Before interpreting statistical results, it is crucial to identify the type of dependent variable and the specific research question. This guides the selection of appropriate statistical tests 4.

The dependent variable (DV) dictates the primary statistical approach:

  • Continuous DV: Indicates the use of linear regression, multiple regression, or ANOVA. Examples include scores, marks, or stress levels.
  • Binary DV: Suggests logistic regression. Examples include yes/no outcomes, pass/fail, or happier/normal states 4.

The research question further refines the choice of test:

  • Prediction from one predictor: Linear regression is suitable.
  • Prediction from two or more predictors: Multiple regression is the appropriate method.
  • Odds, likelihood, or probability of category membership: Logistic regression is used.
  • Difference between three or more group means: One-way ANOVA is applied 4.
TestDependent VariableIndependent Variable(s)Overall Test Statistic
Linear RegressionContinuous1 predictorF
Multiple RegressionContinuous2+ predictorsF
Logistic RegressionBinary (0/1)1+ predictorsχ²
ANOVAContinuous1 categorical IV, 3+ groupsF
TestVariance Explained
Linear RegressionR², adjusted R²
Multiple RegressionR², adjusted R²
Logistic RegressionPseudo R²
ANOVAη²

2.2 Interpreting non-significant overall tests

If the overall test for a statistical model is non-significant, specific interpretations apply 4.

  • For linear and multiple regression, a non-significant overall test means retaining the null hypothesis (H0H_0), indicating no significant relationship between the predictors and the dependent variable.
  • For logistic regression, a non-significant overall test means no predictive claims can be made.
  • For ANOVA, a non-significant overall test means no post hoc tests should be conducted, as there is no significant difference between the group means 4.

3. Linear regression

3.1 What is regression?

Regression is a statistical method used to predict the value of one variable, known as the dependent variable (Y), using another variable, the independent variable (X). Simple linear regression involves one independent and one dependent variable.

It differs from correlation, which measures the relationship between variables without predicting an outcome and is symmetrical, whereas regression is directional, predicting Y from X 5.

3.2 The regression equation

The fundamental equation for simple linear regression is Y=a+bXY = a + bX. In this equation, YY represents the dependent variable, which is the outcome being predicted. XX is the independent variable, serving as the predictor.

The term aa is the intercept, indicating the value of YY when XX is zero. The term bb is the slope, which quantifies how much YY changes for a one-unit increase in XX 5.

3.3 Making predictions

Predictions in linear regression are made by substituting a given value of the independent variable (XX) into the regression equation. For instance, if the regression equation is Y=0.67X+0.12Y = 0.67X + 0.12 and a participant scores X=35X = 35, the predicted value of YY is calculated as Y=0.67×35+0.12=23.57Y = 0.67 \times 35 + 0.12 = 23.57 5.

3.4 Variance in regression

Regression analysis aims to explain the total variance observed in the dependent variable (YY). This total variance is partitioned into two components: regression variance (also known as systematic, explained, or model variance), which is the variation in YY that is accounted for by the independent variable (XX), and residual variance (also known as non-systematic, unexplained, or error variance), which is the variation in YY not explained

Cover

Made easy by Luyanda.pdf

Table of contents

  1. Parametric tests and Non-parametric tests
  2. Chi-square test
  3. Pearson Correlation Coefficient (r)
  4. Paired-Samples t-test
  5. Spearman Rank Correlation
  6. Single Sample t-test
  7. Z-TEST
  8. EXAM PRACTICE

1. Parametric tests and Non-parametric tests

1.1 Parametric tests

Parametric tests are statistical methods that make specific assumptions about the population from which the data are drawn. These assumptions primarily concern the distribution of the data and the scale of measurement.

  • Normality: Assumes data come from a population with a normal (bell-shaped) distribution.
  • Scale of measurement: Requires data to be on an interval or ratio scale, meaning they are continuous.
  • Homogeneity of variance: Assumes that the variances between the groups being compared are similar 4.

Parametric tests are generally used when these conditions are met, often with larger sample sizes where normality can be reasonably assumed. Examples include t-tests, ANOVA, Pearson correlation, and linear regression 4.

📝 Parametric tests are used when data are continuous, normally distributed, and have similar variances between groups, such as with t-tests, ANOVA, and Pearson correlation 4.

1.2 Non-parametric tests

Non-parametric tests, also known as distribution-free tests, make fewer assumptions about the data's distribution. They are suitable for a wider range of data types and situations where parametric assumptions are not met.

  • Data distribution: Can handle data that are not normally distributed.
  • Scale of measurement: Applicable to ordinal data (ranked data) or nominal data (categorical data).
  • Sample size: Can be used with small sample sizes that do not meet parametric test assumptions 4.

These tests are often preferred when dealing with ranked, categorical, or non-normally distributed data, or when a more cautious approach is desired. Examples include the Mann-Whitney U test, Wilcoxon signed-rank test, Kruskal-Wallis test, Chi-square test, and Spearman's rank correlation 4.

1.3 Choosing between parametric and non-parametric tests 5

The choice between parametric and non-parametric tests depends on the characteristics of the data and the research question. Understanding the underlying assumptions is crucial for selecting the appropriate test and ensuring the validity of the results.

Data ConditionsSuggested Test Type
Continuous, normal distribution, similar variancesParametric tests
Ordinal, non-normal distribution, small sample size, categorical dataNon-parametric tests

1.4 Assumptions underlying statistical tests

Statistical assumptions are conditions that must be satisfied for the results of a statistical test to be considered valid and reliable. Violating these assumptions can lead to misleading conclusions, such as false positives or negatives.

  • Normality: Many tests assume that the data or the errors (residuals) are normally distributed.
  • Independence: Observations within the dataset should be independent of each other. Non-independent data, such as repeated measurements on the same individuals, require different analytical approaches.
  • Homogeneity of variance: For tests comparing groups, this assumption states that the variances within each group should be roughly equal.
  • Scale of measurement: Some tests are designed for specific data types, requiring interval or ratio data, while others can accommodate nominal or ordinal data 5.

Checking these assumptions is a critical step in statistical analysis, guiding the selection of the correct test and enhancing confidence in the findings 5.

2. Chi-square test

2.1 Chi-square test for association

The chi-square test for association, also known as the test for independence, is used to determine if two categorical variables are statistically related or independent. It works by comparing the observed frequencies in your data to the expected frequencies, which represent what you would anticipate if there were no association between the variables.

The resulting chi-square statistic quantifies the difference between these observed and expected frequencies. A larger statistic indicates a greater difference, suggesting a stronger association and a higher probability of statistical significance.

This test is most effective with nominal variables, such as gender or profession, but can be applied to ordinal variables, though some information about the order may be lost. The test itself does not differentiate between dependent and independent variables; it solely assesses association 6.

  • Purpose: To determine if two categorical variables are statistically associated or independent.
  • Mechanism: Compares observed frequencies to expected frequencies under the assumption of no association.
  • Result: A ch