Probability Statistics

Cover

Sessie 1 Datareductie.pdf

Basisprincipes van factoranalyse

Factoranalyse is een techniek die wordt gebruikt om het aantal variabelen te reduceren tot een beheersbaarder aantal factoren, met als doel onderliggende constructies in de data te identificeren en te interpreteren 4.

1.1 Introductie tot factoranalyse

Factoranalyse is een statistische methode die wordt toegepast om de complexiteit van datasets te verminderen door de relaties tussen een reeks geobserveerde variabelen te analyseren en deze te groeperen in een kleiner aantal latente variabelen, ook wel factoren genoemd. Dit proces staat bekend als datareductie. Het helpt bij het identificeren van onderliggende constructies of concepten die ten grondslag liggen aan de geobserveerde variabelen 4.

1.2 Doel van factoranalyse

De primaire doelen van factoranalyse zijn tweeledig:

  • Datareductie: Het reduceren van een groot aantal variabelen tot een kleiner, beter hanteerbaar aantal factoren. Dit vereenvoudigt de analyse en presentatie van de gegevens 4.
  • Substantiële interpretatie: Het identificeren en benoemen van de onderliggende constructies (factoren) die de geobserveerde variabelen vertegenwoordigen. Dit maakt het gemakkelijker om de betekenis van de gegevens te begrijpen 4.

1.3 Vereisten voor factoranalyse

Factoranalyse vereist een zekere mate van correlatie (gerelateerdheid) tussen de variabelen die worden geanalyseerd. Als variabelen geen significante lineaire relatie vertonen, is factoranalyse minder geschikt 5.

Tip: De aanwezigheid van correlaties tussen variabelen is cruciaal. Als alle variabelen onafhankelijk zijn, kan factoranalyse geen zinvolle factoren identificeren.

1.4 Voorbeeld: Best Buy consumentenonderzoek

Best Buy identificeerde negen verschillende attributen van hun winkels en service die de winkelkeuze van consumenten beïnvloeden. De onderzoeksvraag was of consumenten evalueren in meer algemene, brede termen die samengesteld zijn uit deze negen specifieke attributen. Als dit het geval is, kan Best Buy deze bredere dimensies gebruiken voor planning en actie. Factoranalyse helpt bij het identificeren van deze brede dimensies, of factoren, uit de gegevens van gedetailleerde consumentenevaluaties 6.

1.4.1 Geëvalueerde attributen

De negen attributen die in het Best Buy onderzoek werden geëvalueerd, waren 7:

  • A1 Prijsniveau
  • A2 Winkelpersoneel
  • A3 Retourbeleid
  • A4 Productbeschikbaarheid
  • A5 Productkwaliteit
  • A6 Assortimentdiepte
  • A7 Assortimentbreedte
  • A8 Service in de winkel
  • A9 Winkelatmosfeer

Deze attributen werden beoordeeld op een schaal van "Zeer Slecht" tot "Zeer Goed" 1 7.

1.4.2 Correlatiematrix

De resultaten van de enquêtes van 100 respondenten werden geanalyseerd met behulp van een correlatiematrix. Een correlatiecoëfficiënt is een getal tussen -1 en 1 dat de mate meet waarin twee variabelen lineair gerelateerd zijn. Een veelgebruikte drempelwaarde voor een significante correlatie is groter dan 0.3 8.

De initiële correlatiematrix toont de relaties tussen de negen attributen. Voorbeeld van de correlatiematrix 8:

AttribuutA1 Prijs NiveauA2 PersoneelA3 RetourA4 BeschikbaarheidA5 KwaliteitA6 DiepteA7 BreedteA8 In-store ServiceA9 Atmosfeer
A1 Prijs Niveau10.430.30.470.770.280.350.240.37
A2 Winkelpersoneel0.4310.770.50.410.450.490.720.74
A3 Retourbeleid0.30.7710.430.310.420.470.730.77
A4 Productbeschikbaarheid0.470.50.4310.470.710.720.430.48
A5 Productkwaliteit0.770.410.310.4710.330.380.240.33
A6 Assortimentdiepte0.280.450.420.710.3310.720.310.43
A7 Assortimentbreedte0.350.490.470.720.380.7210.440.46
A8 Service in de winkel0.240.720.730.430.240.310.4410.71
A9 Winkelatmosfeer0.370.740.77
Cover

Sessie 2 Proporties en Gemiddelden.pdf

Verschiltoetsen en de keuze van de juiste test

Dit gedeelte behandelt de principes en het schema voor het selecteren van de juiste statistische verschiltoets, gebaseerd op de kenmerken van de data en onderzoeksvraag, met de nadruk op de rol van hypothesen en meetniveaus 2.

1.1 Het formuleren van hypothesen en de selectievragen

Voordat men de juiste verschiltoets kan selecteren, is het cruciaal om te starten met het formuleren van de hypothesen. Vervolgens worden drie kernvragen beantwoord die de basis vormen voor de keuze van de test 2 6 7 9:

  1. Het aantal subgroepen (steekproeven) dat je gaat vergelijken? 2 6 7.
  2. De afhankelijkheid van de subgroepen? 2 7.
  3. Het meetniveau van de variabele(n) die je gaat testen? 2 8.

1.2 De drie selectievragen in detail

1.2.1 Het aantal subgroepen

De eerste vraag betreft het aantal groepen dat vergeleken wordt. Dit kan variëren van één groep (one-sample tests) tot meerdere groepen 6 7.

  • Voorbeelden:
  • Het vergelijken van één advertentie uit drie, om te bepalen welke de langste focus op de merknaam heeft 6.
  • Het vergelijken van de voorkeur voor een product tussen zes verschillende klantsegmenten 7.

1.2.2 De afhankelijkheid van de subgroepen

De tweede vraag richt zich op de afhankelijkheid tussen de subgroepen. Dit onderscheidt of de metingen binnen dezelfde personen (afhankelijk/paired) of binnen verschillende personen (onafhankelijk/independent) plaatsvinden 2 7.

  • Afhankelijke subgroepen: Metingen worden herhaald bij dezelfde personen.
  • Voorbeeld: Het onderzoeken van merkbekendheid vóór en na een campagne bij dezelfde personen 6 7.
  • Onafhankelijke subgroepen: Metingen worden gedaan bij verschillende, niet-gerelateerde groepen personen.
  • Voorbeeld: Het vergelijken van het winkelgedrag tussen klanten die in een winkel met muziek en klanten die in een vergelijkbare winkel zonder muziek winkelden 7.

1.2.3 Het meetniveau van de variabele

De derde vraag betreft het meetniveau van de variabele die getest wordt. Dit is van cruciaal belang omdat verschillende statistische toetsen geschikt zijn voor verschillende meetniveaus 2 8.

  • Nominaal meetniveau: Variabelen met categorieën zonder inherente volgorde.
  • Voorbeelden van variabelen: Voorkeur voor een kleur voor een auto (groen, wit, geel, blauw); voorkeur voor muziek (ja/nee); geslacht 8.
  • Toepasselijke tests (indicatief): Binomial, Chi-kwadraat (X2X^2), McNemar 2 3.
  • Ordinaal meetniveau: Variabelen met categorieën die een logische volgorde hebben, maar de afstanden tussen de categorieën zijn niet uniform.
  • Voorbeelden van variabelen: Mate van overeenstemming met een stelling (sterk oneens tot sterk eens); opleidingsniveau (basisschool, middelbare school, universitair) 8.
    • Toepasselijke tests (indicatief): Afhankelijk van het aantal groepen en afhankelijkheid kunnen hier ook non-parametrische varianten van t-tests of ANOVA gebruikt worden, hoewel dit niet expliciet uitgewerkt wordt op de gegeven pagina's.
  • Interval/Ratio meetniveau: Variabelen waarbij de afstanden tussen de waarden betekenisvol zijn en er een vast nulpunt is (ratio) of niet (interval).
  • Voorbeelden van variabelen: Aantal alcoholische drankjes per week; jaarlijks huishoudinkomen; lengte, gewicht, temperatuur 8.
  • Toepasselijke tests (indicatief): One-sample t-test, Independent t-test, Paired t-test, ANOVA 2 3.

1.3 Het schema voor verschiltoetsen

Een schema biedt een visueel overzicht om de juiste test te selecteren op basis van de eerdergenoemde vragen. Het schema begint bij de hypothesen en de drie selectievragen om tot de geschikte toets te komen 2 3 9.

Cover

Sessie 3 Correlatie en Regressie.pdf

Verschiltoetsen en hun toepassing

Het kiezen van de juiste statistische toets hangt af van het meetniveau van de variabelen, het aantal te vergelijken subgroepen en de afhankelijkheid van deze groepen 2.

1.1 De basisprincipes voor het kiezen van een verschiltoets

Voordat men een specifieke toets selecteert, is het cruciaal om eerst de hypothesen te formuleren. De keuze van de toets wordt vervolgens bepaald door drie kernvragen 2:

  1. Het aantal subgroepen (steekproeven) dat je gaat vergelijken? Dit varieert van één tot meerdere groepen 2.
  2. De afhankelijkheid van de subgroepen? Dit kan gaan om onafhankelijke groepen of afhankelijke (gepaarde) groepen 2.
  3. Het meetniveau van de variabele die je gaat testen? Dit kan nominaal, ordinaal of interval/ratio zijn 3.

1.2 Overzicht van veelgebruikte verschiltoetsen

Het schema voor verschiltoetsen illustreert de relatie tussen deze factoren en de geschikte toetsen. Hieronder volgt een gedetailleerde beschrijving van enkele veelgebruikte toetsen 3:

1.2.1 Binomiale toets en Chi-kwadraat toetsen

  • Binomiale toets: Deze toets wordt gebruikt voor nominale variabelen wanneer er slechts twee uitkomsten mogelijk zijn en er één steekproef wordt geanalyseerd 2 3.
  • Chi-kwadraat toetsen (X²):
  • One-Sample Chi-kwadraat toets: Wordt gebruikt voor nominale variabelen om te toetsen of de waargenomen frequentieverdeling overeenkomt met een verwachte verdeling bij één steekproef 2 3.
  • Crosstabs/Chi-kwadraat toets: Deze toets, vaak in combinatie met "crosstabs" (kruistabellen), wordt gebruikt om de relatie tussen twee categorische variabelen (nominaal of ordinaal) te onderzoeken, waarbij de groepen onafhankelijk zijn 2 3.
  • McNemar toets: Deze toets is specifiek voor nominale variabelen en wordt toegepast bij afhankelijke (gepaarde) steekproeven om veranderingen te analyseren, bijvoorbeeld voor en na een interventie 2 3.

1.2.2 t-testen

t-testen worden doorgaans gebruikt voor variabelen op interval- of ratio-niveau.

  • One-Sample t-toets: Deze toets vergelijkt het gemiddelde van een enkele steekproef met een bekende of hypothetische populatiegemiddelde. De formule voor de t-statistiek is 2 3: t=xˉ−μ0snt = \frac{\bar{x} - \mu_0}{\frac{s}{\sqrt{n}}} waarbij xˉ\bar{x} het steekproefgemiddelde is, μ0\mu_0 het hypothetische populatiegemiddelde, ss de standaarddeviatie van de steekproef, en nn de steekproefgrootte 2 3.

  • Independent Samples t-toets: Deze toets wordt gebruikt om de gemiddelden van twee onafhankelijke groepen te vergelijken, waarbij de variabele van interval- of ratio-niveau is. De formule voor de t-statistiek (met gelijke varianties aangenomen) is 2 3: t=(xˉ1−xˉ2)−(μ1−μ2)sp2(1n1+1n2)t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sqrt{s_p^2 \left(\frac{1}{n_1} + \frac{1}{n_2}\right)}} waarbij xˉ1\bar{x}_1 en xˉ2\bar{x}_2 de gemiddelden van de twee groepen zijn, μ1−μ2\mu_1 - \mu_2 het verschil tussen de populatiegemiddelden onder de nulhypothese, sp2s_p^2 de gepoolde variantie, en n1n_1 en n2n_2 de groepsgroottes 2 3.

  • Paired Samples t-toets: Deze toets wordt gebruikt om de gemiddelden van twee gerelateerde of gepaarde metingen te vergelijken (bv. voor en na een behandeling bij dezelfde personen). Het test het gemiddelde van de verschillen tussen de gepaarde observaties. De formule voor de t-statistiek is 2 3: t=dˉ−μdsdnt = \frac{\bar{d} - \mu_d}{\frac{s_d}{\sqrt{n}}} waarbij dˉ\bar{d} het gemiddelde verschil is, μd\mu_d het hypothetische populatiegemiddelde verschil onder de nulhypothese, sds_d de standaarddeviatie van de verschillen, en nn het aantal paren 2 3.

1.3 Verdere overwegingen voor complexere analyses

  • ANOVA (Analysis of Variance): Wordt gebruikt wanneer er meer dan twee groepen worden vergeleken. Er is een Independent ANOVA voor onafhankelijke groepen en een Repeated Measures ANOVA voor afhankelijke (herhaalde metingen) groepen 2 3.
Cover

Session 20_ Linear Regression.pptx

Table of contents

  1. Learning Outcomes
  2. Simple linear regression
  3. Multi variable regression: 2 Predictors
  4. Multi variable regression
  5. Exercise

1. Learning Outcomes

This section lists the specific competencies students must achieve by the end of the session.

1.1 Learning objectives

The following objective represents the core skill required for this session:

  • LO 5: Apply various learning algorithms for agents to solve problems.

📝 An agent uses a specific learning algorithm to adjust its behavior based on new data to solve a navigation task.

2. Simple linear regression

2.1 Simple linear regression definition

Simple linear regression is a statistical method used to model the relationship between a single predictor variable and a response variable.

  • Predictor variable: also known as the independent variable, this is the input used to explain or predict the outcome.
  • Response variable: also known as the dependent variable, this is the outcome that the model attempts to predict.
  • Linear relationship: the model assumes that the change in the response variable is proportional to the change in the predictor variable.

📝 A researcher studies how the number of hours spent studying affects exam scores, where study hours is the predictor and the score is the response.

2.2 Simple linear regression least square criteria

The least square criteria is the mathematical principle used to find the best-fitting line through a set of data points.

  • Residuals: these are the differences between the observed values and the values predicted by the regression line.
  • Objective: the method aims to minimize the sum of the squared residuals to ensure the line represents the data accurately.
  • Fitted line: the resulting line is defined by the equation y=β0+β1xy = \beta_0 + \beta_1 x, where β0\beta_0 is the intercept and β1\beta_1 is the slope.
TermMathematical Role
β0\beta_0The y-intercept representing the value of yy when x=0x=0
β1\beta_1The slope representing the change in yy for a one-unit change in xx
∑(yi−y^i)2\sum (y_i - \hat{y}_i)^2The sum of squared residuals to be minimized

📝 To find the best line for a dataset, you calculate the vertical distance from every point to the line, square those distances, and choose the line that makes this total sum as small as possible.

2.3 Simple linear regression example

This section applies the regression model to a practical business scenario involving restaurant profitability.

  • Context: The Tasty Sub Shop provides data to help entrepreneurs understand factors affecting the profitability of potential franchise sites.
  • Goal: The objective is to find the fitted regression line to predict profits based on specific site characteristics.

📝 An entrepreneur uses the fitted regression line from Tasty Sub's historical data to estimate the expected annual profit for a new location based on its projected foot traffic.

3. Multi variable regression: 2 Predictors

3.1 Multi variable regression: 2 predictors example

Multi variable regression extends the simple model by using more than one predictor to explain the variation in a response variable.

  • Multiple predictors: the model incorporates two or more independent variables to improve the accuracy of the prediction.
  • Model structure: the relationship is expressed as y=β0+β1x1+β2x2y = \beta_0 + \beta_1 x_1 + \beta_2 x_2, where each xx represents a different predictor.
Model TypeNumber of PredictorsEquation Form
Simple linear regressionOney=β0+β1x1y = \beta_0 + \beta_1 x_1
Multi variable regressionTwo or morey=β0+β1x1+β2x2y = \beta_0 + \beta_1 x_1 + \beta_2 x_2

📝 To predict a restaurant's profit, a model might simultaneously use both "daily customer count" and "average transaction size" as two separate predictors.

4. Multi variable regression

4.1 Definition and formula

Multi variable regression is a statistical method used to model the relationship between a dependent variable and multiple independent variables.

  • The model: It seeks to find a linear relationship that best fits the observed data points.
  • The X matrix: To perform the calculation, the X matrix must be augmented by adding a column of 1s as the first column.
  • The goal: The process aims to determine the coefficients that minimize the sum of squared residuals.
ComponentDescription
Dependent variableThe outcome or response variable being predicted
Independent variablesThe predictor variables used to explain the outcome
Augmented X matrixThe matrix of predictors including a column of 1s for the intercept
Cover

slides-EN-261005.pdf

Table of contents

  1. Applications of Statistics (D0O70A)
  2. Linear regression
  3. Estimation
  4. Finite sample properties
  5. Large sample or asymptotic properties
  6. Goodness–of–fit
  7. Hypothesis testing
  8. Prediction
  9. Violations of assumptions
  10. Error terms are non-normal
  11. Limited dependent variables
  12. Limited dependent
  13. Logistic regression
  14. X i = 0.
  15. Probit regression
  16. General properties
  17. Goodness–of–fit
  18. Hypothesis testing
  19. Prediction
  20. The generalized linear model
  21. Causal inference
  22. Randomized controlled trials
  23. Measured confounding
  24. Assumptions
  25. Regression estimators
  26. Matching estimators
  27. Propensity score estimators
  28. The JTPA data set
  29. Unmeasured confounding
  30. Instrumental variables
  31. Effect homogeneity
  32. Monotonicity
  33. Alternative approaches

1. Applications of Statistics (D0O70A)

1.1 Instructor and communication

The course "Applications of Statistics" (D0O70A) for the 2026-2027 academic year is taught by Prof. Dr. Ingrid Van Keilegom. Communication regarding practical or administrative issues should be directed via email, while questions about course material are handled through the discussion board on Toledo 4.

  • Instructor: Prof. Dr. Ingrid Van Keilegom (ingrid.vankeilegom@kuleuven.be).
  • Teaching format: All lectures are conducted on campus, with recordings provided for student access.
  • Course materials: Slides are made available on Toledo and are updated weekly.

1.2 Prerequisites

To succeed in this course, students must possess foundational knowledge in several key areas, which are essential for understanding the advanced statistical models and methods covered 5.

  • Mathematics: Familiarity with functions, mathematical notation, vectors, matrices, linear systems, inverses, eigenvalues, and eigenvectors.
  • Probability & statistics: Understanding of conditional probability, Bayes’ rule, random variables and distributions, sampling, expectation, confidence intervals, hypothesis testing, p-values, and the central limit theorem.
  • Regression: Basic knowledge of linear regression.
  • R: Proficiency in basic data manipulation and statistical analysis using R.
  • Revision resources: Available on Toledo for students to review prerequisite topics.

1.3 Learning objectives

Upon completion of this course, students are expected to demonstrate a comprehensive understanding and practical application of statistical methodologies 6.

  • Model comprehension: Understand the statistical models and methods presented in the course.
  • Method recognition: Identify when and why specific statistical methods are appropriate and useful.
  • Method selection: Choose the most suitable method for a given research question and dataset.
  • Application: Correctly apply the learned methods using R software.
  • Interpretation and communication: Clearly and accurately interpret and communicate the results of statistical analyses.

1.4 Course content

The course covers a range of advanced statistical topics, building upon foundational knowledge to address complex data analysis challenges 7.

ChapterTopics Covered
0. Review Linear RegressionReview of fundamental linear regression concepts
1. Limited Dependent VariablesLogistic regression, Survival analysis
2. Causal InferenceMeasured and unmeasured confounding, Panel data
3. Multivariate StatisticsPrincipal component analysis, Exploratory factor analysis, Cluster analysis
4. Statistical LearningIntroduction to statistical learning, Model assessment and selection, Decision trees, Neural networks

📝 Chapter 1, "Limited Dependent Variables," covers Logistic regression and Survival analysis 7.

1.5 Exercises

Exercises are provided on Toledo to reinforce learning and prepare for the exam. These exercises are an integral part of the course material 8.

  • Availability: Exercises for each chapter are released after the chapter's completion.
  • Solutions: Solutions are provided, but exercises are not discussed during class sessions.
  • Purpose:
  • Check understanding of theoretical concepts.
  • Practice applying statistical methods.
  • Prepare for the final examination.

1.6 Exam information

The final exam is a 3-hour assessment conducted in a computer room, designed to evaluate both theoretical understanding and practical application skills 9.

  • Duration: 3 hours.
  • Environment: Computer room, with R software available.
  • Question types:
  • Multiple-choice questions, with a correction for guessing.
  • Open questions requiring detailed responses.
  • Assessment areas:
  • Understanding of statistical theory.
  • Ability to select appropriate statistical methods.
  • Application of methods to data using R.
  • Interpretation of statistical results and R output.
  • **Resou
Cover

slides_H6.pdf

Point estimators and point estimates in statistical inference

In statistical inference, point estimators and point estimates are fundamental tools used to approximate unknown population parameters based on sample data. The primary goal is to provide a single, "best guess" value for a parameter that cannot be directly observed from the entire population 8.

1.1 Definition of a point estimator and a point estimate

A point estimator is a random variable that yields a single numerical value, known as a point estimate, upon observing a sample. This point estimate serves as the best approximation for the unknown population parameter 8.

1.2 Notation and examples

  • For a population proportion pp, the sample proportion P^\hat{P} is a point estimator, and its observed value p^\hat{p} is a point estimate 9.
  • For a population mean μ\mu, the sample mean Xˉn\bar{X}_n is a point estimator, and its observed value xˉn\bar{x}_n is a point estimate 9.
  • For a population variance σ2\sigma^2, the sample variance S2S^2 is a point estimator, and its observed value s2s^2 is a point estimate 9.
  • For a population standard deviation σ\sigma, the sample standard deviation SS is a point estimator, and its observed value ss is a point estimate 9.

1.3 Properties of a good point estimator

A good point estimator possesses two key characteristics:

1.3.1 Unbiasedness

An unbiased estimator is one whose expected value is equal to the value of the population parameter it is estimating. This means that, on average, the estimator will produce correct estimates over many repeated samples 10.

  • Example:
  • P^\hat{P} is an unbiased estimator for pp because E(P^)=pE(\hat{P}) = p 10.
  • Xˉn\bar{X}_n is an unbiased estimator for μ\mu because E(Xˉn)=μE(\bar{X}_n) = \mu 10.
  • S2S^2 is an unbiased estimator for σ2\sigma^2 because E(S2)=σ2E(S^2) = \sigma^2 10.

Tip: The formula for the sample variance S2S^2 involves dividing by n−1n-1 rather than nn specifically to ensure that it is an unbiased estimator of the population variance σ2\sigma^2. S2=1n−1∑i=1n(Xi−Xˉ)2S^2 = \frac{1}{n-1} \sum_{i=1}^{n} (X_i - \bar{X})^2 10.

1.3.2 Efficiency (Smallest standard error)

A good point estimator should also have a standard error that is as small as possible. This implies that the estimates it produces tend to be closer to the true parameter value compared to other estimators. Most estimators covered in introductory statistics courses are unbiased and have relatively small standard errors 11.


Puntschatting in de praktijk en intervalschatting

This topic explores the practical application of point estimation and introduces interval estimation as a method to convey accuracy.

2.1 Point estimation in practice

A practical example illustrates point estimation by asking numerous individuals to estimate the number of candies in a jar. The expectation is that the average of these individual estimates will be closer to the true value than most individual guesses. However, in a specific experiment, 76 participants provided an average estimate of 1,697 candies, which was significantly different from the actual count of 2,845. This highlights that even an average of many estimates might not always be accurate, and some individual estimates can be better than the group's average 13.

Tip: While averaging many estimates can often improve accuracy, it's not a guaranteed solution for finding the true value.

2.2 Limitations of point estimation

A key disadvantage of point estimation is that it provides only a single value representing the estimated population parameter. It offers no information about the accuracy of this estimate or how close the estimated value is believed to be to the true parameter value 14 15.

2.3 Interval estimation

To address the limitations of point estimation, interval estimation is frequently employed. This method not only indicates where the population parameter is thought to lie but also provides a margin of error, giving an idea of the estimator's accuracy 14 15.

2.3.1 Example of interval estimation in VO2 max calculation

An article from 4endurance published in 2024 discusses the estimation of VO2 max, a crucial metric for endurance athletes. Measuring VO2 max accurately requires laboratory conditions to assess oxygen uptake directly. Smartwatches estimate VO2 max using tempo and heart rate, providing an approximation rather than an exact value. Studies indicated that Garmin smartwatches estimate VO2 max with an average error margin of 5%. While 5% might seem large, it translates to a smaller absolute error. For example, if an individual has a VO2 max of 50 ml/kg/min, a 5% error represents 2.5 ml/kg/min. This discrepancy can be significant for professional athletes but may be less critical for recreat

Cover

Slides met notities.pdf

Analysis of covariance (ANCOVA) for reducing unexplained variance

Core idea

  • ANCOVA is a statistical technique that combines ANOVA and regression to control for the effects of continuous covariates on a dependent variable 5.
  • It aims to reduce unexplained variance (error variance) by accounting for the influence of these covariates 5.

Key facts

  • The general linear model is the foundation: y=β0+β1x1+β2x2+⋯+βkxk+uy = \beta_0 + \beta_1x_1 + \beta_2x_2 + \dots + \beta_kx_k + u 5.
  • Ordinary Least Squares (OLS) estimators minimize the sum of squared residuals: min⁡b(Y−Xb)′(Y−Xb)=U^′U^\min_b (Y - Xb)'(Y - Xb) = \hat{U}'\hat{U} 7.
  • Under Gauss-Markov assumptions (E(ui)=0, var(ui)=σ², cov(ui,uj)=0), OLS estimators are unbiased and consistent 9.
  • Statistical inference on parameters (βi\beta_i) requires an additional assumption: residuals are normally distributed (ui∼Nu_i \sim N) 12.
  • Total Sum of Squares (SSTO) represents total variation in the response 13.
  • Regression Sum of Squares (SSR) is the variation explained by the model 13.
  • Error Sum of Squares (SSE) is the unexplained variation, equal to the sum of squared residuals 13.
  • Hypothesis testing compares unexplained variation in a full model versus a reduced model (under H0) 14.
  • The F-test statistic for hypothesis testing is SSE(H0)−SSE(F)q/SSE(F)n−k−1∼Fq,n−k−1\frac{SSE(H_0) - SSE(F)}{q} / \frac{SSE(F)}{n-k-1} \sim F_{q, n-k-1} 16.
  • Multicollinearity occurs when explanatory variables are highly correlated, leading to large differences in various Sum of Squares .
  • Variance Inflation Factor (VIFi_i) = 11−Ri2\frac{1}{1-R_i^2} checks for multicollinearity; VIF > 10 indicates serious issues .
  • Extreme x-values are identified by leverage values (hiih_{ii}) from the hat matrix (H=X(X′X)−1X′H = X(X'X)^{-1}X') .
  • Rule of thumb for extreme leverage: hii>2(k+1)/nh_{ii} > 2(k+1)/n .
  • Studentized deleted residuals (di∗d_i^*) are used to detect extreme y-values .
  • Cook's distance (DiD_i) assesses the influence of an observation on all parameter estimates .
  • Dummy coding uses indicator variables for categorical predictors; one category is set as the reference .

Key concepts

  • Linear Model: A model where the dependent variable is a linear combination of independent variables plus an error term 5.
  • OLS Estimation: A method to estimate model parameters by minimizing the sum of squared differences between observed and predicted values 7.
  • Gauss-Markov Assumptions: Core assumptions about the error term that ensure OLS estimators are BLUE (Best Linear Unbiased Estimators) 9.
  • R-squared (R2R^2): A measure of the proportion of variance in the response variable explained by the model 17 .
  • Adjusted R-squared (Radj2R^2_{adj}): An adjusted version of R-squared that accounts for the number of predictors .
  • Marginal Contribution: The unique explanatory value of a variable given that other variables are already in the model 19.
  • Sum of Squares Types (I, II, III): Different methods to partition the total variation and attribute it to individual predictors, especially relevant with interactions .

Implications


  • Analysis of Covariance (ANCOVA) augments ANOVA models with quantitative covariates to reduce unexplained variance and increase test power 39.
  • It's used when homogeneous blocks are impossible to form, but a covariate is related to the response and not influenced by treatments 39.
  • The covariate must be measured before the study and related to the response to effectively reduce SSE 39.
  • ANCOVA extends ANOVA by including covariates to reduce residual variance and improve conclusion validity 39.
  • The goal is to increase the power of ANOVA tests by leveraging extra information 39.
  • A valid covariate must be correlated with the response variable 39.
  • Covariates should ideally be measured before treatments are applied to avoid being influenced by them 39.
  • The time devoted to a course would not be a valid covariate if it could be influenced by the treatment 39.
  • A model with rr factor levels and 1 covariate is represented as yij=μ+αi+γxij+uijy_{ij} = \mu + \alpha_i + \gamma x_{ij} + u_{ij} 40.
  • In this model, μ\mu is the intercept, αi\alpha_i is the effect of the ii-th treatment, γ\gamma is the effect of the covariate, and xijx_{ij} is the covariate value 40.
  • The expected value is E(yij)=μ+αi+γxijE(y_{ij}) = \mu + \alpha_i + \gamma x_{ij} and the variance is σ2(yij)=σ2\sigma^2(y_{ij}) = \sigma^2 40.
  • This setup fits rr parallel lines, with αi−αj\alpha_i - \alpha_j measuring treatment effects 40.
  • Covariate: A quantitative variable added to an ANOVA model to reduce unexplained variance, aiming to improve the model's explanatory power 39.
  • Model with interaction terms: To test if the covariate's effect
Cover

SN1_2-5,6._The_normal_distribution-1,7._Central_Limit_Theorem-1.pdf

Table of contents

  1. Discrete Probability Distribution
  2. The Normal Distribution
  3. Central Limit Theorem
  4. Confidence Intervals
  5. Hypothesis Testing
  6. Inferences for Proportions
  7. The Student t-Distribution
  8. Chi-Square Tests

1. Discrete Probability Distribution

1.1 Random variables

A random variable is a variable whose values describe the outcome of an experiment. Random variables can be classified as either discrete or continuous 4 5.

Type of Random VariableDescription
Discrete random variableCan take on a list of values that are countable or finite in size.
Continuous random variableCan take on any value over an interval.

📝 If a coin is tossed three times, the number of heads (X) is a discrete random variable, taking values from {0, 1, 2, 3}. The weight of a randomly selected adult cow is a continuous random variable, as it can be any value within a range 4 5.

1.2 Probability distribution for a discrete RV

A discrete probability distribution is a function or table that assigns a probability, P(x)P(x), to each value of a discrete random variable xx. For a function to be a valid discrete probability distribution, it must satisfy two conditions:

  • Non-negativity: The probability of each value of xx must be greater than or equal to 0, meaning P(x)≥0P(x) \ge 0 for all xx.
  • Summation to one: The sum of all probabilities for all possible values of xx must equal 1, meaning ∑all xP(x)=1\sum_{\text{all } x} P(x) = 1 7.
x (Number of Heads)P(x)
01/8
13/8
23/8
31/8
Total1

📝 For three coin tosses, where xx is the number of heads, the sample space is {TTT, TTH, THT, HTT, THH, HTH, HHT, HHH}. The probability of getting 0 heads, P(x=0)P(x=0), is 1/81/8 (TTT). The sum of all probabilities is 1/8+3/8+3/8+1/8=8/8=11/8 + 3/8 + 3/8 + 1/8 = 8/8 = 1 8.

1.3 Expected value

The expected value of a discrete random variable xx, denoted as E(x)E(x) or μ\mu, represents the mean of its probability distribution. It is calculated as a weighted average where each xx value is multiplied by its corresponding probability, and these products are then summed. μ=E(x)=∑all xx⋅P(x)\mu = E(x) = \sum_{\text{all } x} x \cdot P(x) The expected value is the long-run average outcome of an experiment, even if it is not a possible outcome itself.

📝 For the number of heads in three coin tosses, the expected value is E(x)=0(1/8)+1(3/8)+2(3/8)+3(1/8)=1.5E(x) = 0(1/8) + 1(3/8) + 2(3/8) + 3(1/8) = 1.5. This means that over many sets of three coin tosses, the average number of heads would be 1.5, even though you cannot get exactly 1.5 heads in a single experiment 13.

1.4 Variance and standard deviation

Variance (σ2\sigma^2) and standard deviation (σ\sigma) measure the spread or dispersion of a discrete probability distribution.

  • Variance: It is computed by multiplying each possible value of (x−μ)2(x - \mu)^2 by its probability, and then summing these products. σ2=E(x−μ)2=∑all x(x−μ)2P(x)\sigma^2 = E(x - \mu)^2 = \sum_{\text{all } x} (x - \mu)^2 P(x)
  • Standard deviation: This is the square root of the variance 16. σ=σ2=∑(x−μ)2P(x)\sigma = \sqrt{\sigma^2} = \sqrt{\sum (x - \mu)^2 P(x)} A computational formula for variance can sometimes be easier to use: σ2=∑x2P(x)−μ2\sigma^2 = \sum x^2 P(x) - \mu^2 18.

📝 For the number of heads in three coin tosses, with an expected value μ=1.5\mu = 1.5, the variance is calculated as σ2=(0−1.5)2(1/8)+(1−1.5)2(3/8)+(2−1.5)2(3/8)+(3−1.5)2(1/8)=0.75\sigma^2 = (0-1.5)^2(1/8) + (1-1.5)^2(3/8) + (2-1.5)^2(3/8) + (3-1.5)^2(1/8) = 0.75. The standard deviation is 0.75≈0.866\sqrt{0.75} \approx 0.866 heads 17.

1.5 The binomial distribution

A binomial experiment models repeated trials with only two outcomes and constant odds. It has specific characteristics:

  • Identical and independent trials: The experiment consists of nn trials that are identical and do not influence each other.
  • Two outcomes: Each trial results in one of two possible outcomes, typically labeled "success" or "failure".
  • Constant probability of success: The probability of success, denoted as pp, remains the same for every trial.
  • Constant probability of failure: The probability of failure, denoted as qq, is 1−p1-p, and p+q=1p+q=1 20.

The binomial probability distribution, B(x;n,p)B(x; n, p), describes the probability of getting exactly xx successes in nn independent trials. P(x)=n!x!(n−x)!pxqn−xP(x) = \frac{n!}{x!(n-x)!} p^x q^{n-x} Here, xx can take integer values from 00 to nn.

  • Mean: The expected number of successes is μ=np\mu = np.
  • Variance: The variance of the number of successes is σ2=npq\sigma^2 = npq 21.
Cover

SN1Manual_Sept_2025_2nd_Edition.pdf

1. Introduction to statistics and descriptive statistics (part 1)

This section of the study guide covers the foundational concepts of statistics, focusing on the collection, analysis, presentation, and interpretation of data, as well as an introduction to descriptive statistics including frequency distributions, tables, and graphs.

1.1 Overview of statistics

Statistics is defined as the art and science of collecting, analyzing, presenting, and interpreting data. A statistical study typically involves four phases:

  • Phase I: Data Collection: This involves gathering information from relevant sources to answer research questions, test hypotheses, and evaluate outcomes. It addresses what data is needed and how to collect it.
  • Phase II: Data Analysis: This phase employs analytical and statistical tools to evaluate data, uncover useful information, and aid decision-making.
  • Phase III: Data Presentation: Data is organized into tables, graphs, or charts to derive logical and statistical conclusions. Visual representations are emphasized for their clarity.
  • Phase IV: Data Interpretation: This involves assigning meaning to the analyzed data, determining its significance, and implications. Results should be communicated clearly, even to non-statisticians.

Key Definitions:

  • Population: A collection of all elements (persons, items, or data) of interest in a study.
  • Sample: A subset of the population from which information is collected.
  • Variable: A characteristic, number, or quantity that can be measured or counted in a population or sample.
  • Data: The value of a variable assigned to one or all elements of a population or sample 5.
  • Qualitative Data (Categorical Data): Data that can be arranged into categories based on non-numerical traits.
  • Quantitative Data: Numerical data acquired through counting or measuring.
  • Parameter: A characteristic of a population.
  • Statistic: A characteristic of a sample.
  • Statistical Inference: Methods for estimating and drawing conclusions about population characteristics based on information from a sample. It allows for educated guesses about population parameters using sample statistics.

Example: Measuring the sodium content in cans of tomato soup. The population is all cans of soup, while a sample of a few cans is measured. The average sodium content in all cans (population parameter, μ\mu) is unknown, but the average from the sample (sample statistic, xˉ\bar{x}) can be calculated to estimate μ\mu.

1.2 Sampling techniques

Sampling is the process of selecting a representative sample from a target population to gather data and understand the population. Sampling techniques are broadly categorized into two types:

  • Probability Sampling: Uses random sampling techniques to create a sample, ensuring each element has an equal chance of selection.
  • Non-Probability Sampling: Employs non-random processes such as researcher judgment or convenience 6.

Types of Probability Sampling:

  • Simple Random Sampling: Every element has an equal chance of being selected. Used when no prior information about the population is available.
  • Stratified Sampling: The population is divided into distinct groups (strata), and a probability sample is drawn from each group.
  • Cluster Sampling: The population is divided into clusters or sections, clusters are randomly selected, and then all elements within the selected clusters are sampled. This can be Single Stage (entire cluster selected) or Two Stage (clusters selected, then elements within those clusters selected) 7.
  • Systematic Sampling: Elements are selected from an ordered sampling frame. An element is chosen at random, and then every kk-th element is selected, where k=N/nk = N/n (NN is population size, nn is sample size).

Types of Non-Probability Sampling:

  • Convenience Sampling: Samples are drawn from the part of the population that is most accessible. Useful for pilot testing 8.
Cover

sst6e_ppt_ch03.pptx

Table of contents

  1. Numerically summarizing data
  2. Measures of central tendency
  3. Measures of dispersion
  4. Measures of central tendency and dispersion from grouped data
  5. Measures of position and outliers
  6. The five-number summary and boxplots

1. Numerically summarizing data

1.1 Shape, center, and spread

  • Shape: This characteristic describes the overall form of the data distribution. It can be symmetric, skewed to the left, or skewed to the right.
  • Center: This refers to the typical or average value of the data. It is often described using measures like the mean, median, or mode.
  • Spread: This characteristic quantifies the variability or dispersion of the data. It indicates how spread out the data points are from the center.
  • Outliers: These are unusual data values that lie far from the rest of the data. They can significantly influence some statistical measures.

1.2 Characteristics of a distribution

Distributions of data can be characterized by three key features:

  • Shape: This describes the pattern of the data, such as whether it is symmetric or skewed.
  • Center: This represents the typical or average value of the data.
  • Spread: This indicates the variability or dispersion of the data points.

Unusual data values, known as outliers, are also important to consider when analyzing a distribution.

2. Measures of central tendency

Measures of central tendency provide a numerical description of the average or typical data value. The three most common measures are the mean, median, and mode.

2.1 The arithmetic mean

The arithmetic mean is calculated by summing all the values in a data set and dividing by the number of observations.

  • Population mean (μ\mu): This is computed using all individuals in a population and is considered a parameter. μ=∑i=1NxiN\mu = \frac{\sum_{i=1}^{N} x_i}{N} where xix_i are the NN observations from the population.
  • Sample mean (xˉ\bar{x}): This is computed using data from a sample and is considered a statistic. xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n} where xix_i are the nn observations from the sample.

The mean can be thought of as the center of gravity of a data set, where a histogram of the data would balance.

2.2 Example: Computing a population and sample mean

The following data represent the first exam scores of 10 students: 82, 77, 90, 71, 62, 68, 74, 84, 94, 88.

  • Population mean: μ=82+77+90+71+62+68+74+84+94+8810=79010=79.0\mu = \frac{82+77+90+71+62+68+74+84+94+88}{10} = \frac{790}{10} = 79.0
  • Sample mean (for a sample of size n=4: 62, 88, 77, 68): xˉ=62+88+77+684=2954=73.75\bar{x} = \frac{62+88+77+68}{4} = \frac{295}{4} = 73.75

2.3 The median

The median is the middle value in a data set when the data are arranged in ascending order.

  • Finding the median:
  1. Arrange the data in ascending order.
  2. Determine the number of observations, nn.
  3. If nn is odd, the median is the data value in the middle position: (n+12)th(\frac{n+1}{2})^{th} observation.
  4. If nn is even, the median is the mean of the two middle observations: the (n2)th(\frac{n}{2})^{th} and (n2+1)th(\frac{n}{2}+1)^{th} observations.

2.4 Example: Determining the median

Consider the following data sets:

  • Odd number of observations: 179, 201, 206, 208, 217, 222, 240, 257, 284. The median is 217.
  • Even number of observations: 62, 68, 71, 74, 77, 82, 84, 88, 90, 94. The median is the mean of 77 and 82: M=77+822=79.5M = \frac{77+82}{2} = 79.5.

2.5 Resistance of statistics

A resistant statistic is a measure that is not significantly affected by extreme values (outliers) in the data set.

  • Mean: The mean is not resistant to outliers. A single very large or very small value can substantially change the mean.
  • Median: The median is resistant to outliers. It is only affected by the order of the data, not the magnitude of extreme values.

2.6 Example: Comparing mean and median

For a sample of 12 cell phone call lengths, the mean was 7.5 minutes and the median was 3.5 minutes. A dot plot revealed one call of 30 minutes, which was an outlier.

The median of 3.5 minutes better describes the typical call length because the mean is heavily influenced by the single long call.

Histograms and box plots illustrating three types of data distribution: skewed right, symmetric, and skewed left.

2.7 The mode

The mode is the most frequent observation in a data set.

  • A data set can have:
  • No mode: If no observation occurs more than once.
  • One mode: Unimodal distribution.
  • Two modes: Bimodal distribution.
  • More than two modes: Multimodal distribution (usually not reported as it's not representative).

2.8 Example: Finding the mode

  • **O-ring fa