Probability Statistics

Cover

Stats Unit 1.pdf

Table of contents

  1. Unit 1: Examining Distributions
  2. Data Distribution
  3. Histograms
  4. Symmetry & Skewness
  5. Time Plots
  6. Numerical Summaries of Data
  7. Measures of Location
  8. Mean vs. Median
  9. Weighted Mean
  10. Variability
  11. Measures of Variability – Range
  12. Measures of Variability – Interquartile Range
  13. Five-Number Summary
  14. Quantile Boxplots
  15. Boxplots – Shape
  16. Side-by-Side Boxplots
  17. Boxplots & Outliers
  18. Variability
  19. Sample Variance
  20. Sample Standard Deviation
  21. Sum of Deviations from the Mean
  22. Units for Standard Deviation & Variance
  23. Measures of Variability – Standard Deviation
  24. Mean & Std. Dev. Vs. Five-Number Summary
  25. Unit 1 Summary

1. Unit 1: Examining Distributions

1.1 What is statistics?

Statistics is the collection of methods used to obtain, organize, summarize, present, and analyze data. This data is derived from characteristics measured on individuals or units, which can encompass people, animals, places, or things.

The values obtained from these individuals or units are referred to as observations 2.

1.2 Sample vs. population

The population refers to the entire group of individuals or units about which we seek information. In contrast, a sample is a subset of the units within a population that is actually examined to gather this information 3.

📝 If 1000 voters are surveyed about their candidate preference, the sample is these 1000 voters, while the population is all eligible voters in the election region 4.

1.3 Sample vs. population examples

  • Voter support: If 1000 voters are surveyed about their candidate preference, the sample is these 1000 voters, while the population is all eligible voters in the election region.
  • Insomnia treatment: For 50 insomnia patients receiving a new treatment, the sample is these 50 patients, and the population is all insomnia patients.
  • Goose migration: When 200 Canada geese are tagged to study migration, the sample consists of the 200 tagged geese, and the population is all Canada geese 4.

1.4 Variables

A variable is a characteristic or property of an individual. Examples include the time until a light bulb burns out, the distance a taxi driver travels daily, the number of heads in five coin tosses, hair color, or a student's grade in a course 5.

1.5 Types of data

Data can be broadly classified into two main types: categorical data and quantitative data 6.

1.6 Categorical data

Categorical data represent values of categorical variables, which assign individuals to one of several distinct groups. Examples include the gender of a newborn, the reason for taking a course, a favorite television show, or eye color 7.

1.7 Categorical and ordinal data

When there is a logical order to the values of a categorical variable, it is classified as categorical and ordinal. Examples include placings in a hockey tournament (1st, 2nd, 3rd), service ratings at a restaurant (Good, Fair, Poor), or letter grades in a course (A+, A, B+,..., F) 8.

1.8 Categorical and nominal data

If a categorical variable's values lack a logical ordering, it is classified as categorical and nominal. Examples include the gender of a newborn, the reason for taking a course, a favorite television show, or eye color 9.

📝 Letter grades in a course (A+, A, B+,..., F) are categorical and ordinal because there is a logical order to the grades 8.

1.9 Quantitative data

Quantitative data represent values of quantitative variables. These variables take numerical values for which arithmetic operations, such as addition and averaging, are meaningful.

Examples include final exam scores, height, the volume of air in a balloon, or the sum of numbers shown on two rolled dice 10.

1.10 Classifying data types 11

The classification of data types depends on whether the data takes numerical values for which arithmetic operations make sense, and if so, whether these values can be logically ordered.

QuestionData Type
Do the data take numerical values for which arithmetic operations make sense?Quantitative
If no, does it make sense to put the data in order?Categorical & Ordinal
If no, and no logical order existsCategorical & Nominal

1.11 Classifying data types: Example

  • Political Party: The political party a voter supports (Liberal, Conservative, NDP, Green, etc.) is categorical and nominal because there is no inherent order among the parties.
  • Speed of a vehicle: The speed of a passing vehicle is quantitative as it is a numerical value for which arithmetic operations are meaningful.
  • Month of birth: The month of birth is categorical and ordinal because months have a natural, cyclical order (January, February,..., December) 12.
Cover

Stats Unit 2.pdf

Table of contents

  1. Unit 2: Examining Relationships
  2. Scatterplots
  3. R Code: Scatterplots
  4. Strength of Linear Relationship
  5. Correlation Coefficient
  6. Association vs. Causation
  7. Properties of Correlation
  8. Linear Regression
  9. Least Squares Regression
  10. Coefficient of Determination
  11. Regression
  12. Predicted Value of Y
  13. Residuals
  14. Extrapolation
  15. Outliers
  16. Influential Observations
  17. Association vs. Causation
  18. Experiment vs. Observational Study
  19. Categorical Variables on a Scatterplot
  20. Unit 2 Summary

1. Unit 2: Examining Relationships

1.1 Examining relationships

In statistics, we often examine relationships between the same variables for different populations or between several variables for the same population. When examining the relationship between two variables, we might be interested in the nature of the relationship itself, or one variable might be thought to explain or predict the other 2 3.

1.2 Explanatory and response variables

In situations where one variable helps explain or predict another, it is identified as an explanatory variable (denoted by X), and the other is the response variable (denoted by Y). The response variable represents the outcome of a study, while the explanatory variable provides insight into that outcome 4.

📝 Researchers interviewed 300 adults to investigate the relationship between caffeine in coffee and alertness. They asked participants about their daily coffee consumption and nightly sleep duration. In this study, the response variable (Y) is the number of hours of sleep obtained per night, and the explanatory variable (X) is the number of cups of coffee consumed daily 5.

1.3 Nature of the relationship

In some cases, the interest lies solely in understanding the connection between two variables without designating one as explanatory or response 6.

📝 A psychology professor compared the percentage grades of 450 university students in introductory English and Math courses. This scenario focuses on the general relationship between performance in the two subjects, rather than one grade explaining the other 6.

2. Scatterplots

2.1 Introduction to scatterplots 8

A scatterplot is a graphical tool used to visualize the relationship between two quantitative variables measured on the same individuals. Each individual's data for both variables is represented as a single point on the plot.

If one variable is identified as an explanatory variable and the other as a response variable, the explanatory variable is typically plotted on the x-axis and the response variable on the y-axis. If no such distinction exists, the choice of axes is arbitrary 7.

The table below shows the number of classes missed and the final exam score for eight students:

StudentClasses MissedExam Score
1560
2295
3673
41056
5181
6845
7482
8278

The scatterplot for this data visualizes the relationship between classes missed and exam scores.

This scatterplot shows the relationship between the number of classes missed and the exam score. 9.

2.2 Examining scatterplots

When examining a scatterplot, four key features are considered: direction, form, strength, and outliers 10.

📝 In the example of classes missed and exam scores, there is a negative association. This implies that students who miss more classes tend to achieve lower exam scores, and vice versa 11.

2.3 Direction

The direction of the association describes the general trend of the points.

  • A positive association is indicated when the pattern of points slopes upward from left to right. This means that as the value of one variable increases, the value of the other variable also tends to increase.
  • A negative association is indicated when the pattern of points slopes downward from left to right. This suggests that as the value of one variable increases, the value of the other variable tends to decrease.

In the example of classes missed and exam scores, there is a negative association. This implies that students who miss more classes tend to achieve lower exam scores, and vice versa 11.

2.4 Form

The form of the relationship describes the shape of the pattern in the scatterplot.

  • A linear relationship exists if a straight line can reasonably approximate the pattern of the data points.
  • Relationships are not always linear; they can also be quadratic, logarithmic, exponential, or other non-linear shapes.

The relationship between classes missed a

Cover

Stats Unit 3.pdf

Table of contents

  1. Sampling
  2. Census
  3. Summary of Types of Samples
  4. Survey Design
  5. Experimental Design
  6. Well-Designed Experiments
  7. Blocking
  8. Effective Experimental Design
  9. Unit 3 Summary

1. Sampling

1.1 Sampling

Sampling is the process of collecting data from a sample to gain information about a larger population. A representative sample is crucial; if the sample does not fairly represent the population, conclusions drawn from the data will be unreliable 3 4.

  • Goal of sampling: To collect data from a sample that fairly represents the population of interest.
  • Importance of representative samples: If a sample is not representative, conclusions about the population cannot be reliably made 3.
  • Study of statistics: Includes ensuring data is collected in a fair and representative way to draw reliable conclusions about the entire population 8.

1.2 Voluntary response sample

A voluntary response sample consists of individuals who choose to include themselves in the sample by responding to a question or survey. These samples are often unreliable because they tend to represent the opinions of people who feel strongly about the subject, potentially overestimating or underestimating the true proportion of opinions in the population 7.

📝 A news organization asks viewers to respond to a survey on their Facebook page about snow clearing. This is a voluntary response sample, likely overestimating the proportion of people who think the city needs to do a better job, as those satisfied with the current situation may not participate 5 6.

1.3 Convenience sample

A convenience sample chooses individuals who are easiest to reach. This method, like voluntary response samples, is biased because it systematically favors certain outcomes over others 11 12.

📝 A research company surveys shoppers at local malls about their spending habits since an economic decline. This convenience sample is biased because it only includes individuals who are already shopping, making spending behaviors appear higher than they might be for the general consumer 9 10.

1.4 Sampling bias

Sampling bias occurs when the design of a study systematically favors certain outcomes over others. Both voluntary response and convenience samples are examples of biased sampling methods 12.

  • Reducing bias: One way to reduce bias is to select the sample "by chance," ensuring no potential units are favored.
  • Random selection: This ensures neither the sampler nor the respondents choose who is in the sample, giving all individuals an equal chance of selection regardless of characteristics like age, race, or gender 13.

1.5 Random sampling

A process is considered random if it has two or more possible outcomes with a known probability of being observed. Random sampling aims to select a sample in a way that gives all individuals an equal chance of being selected 13 14.

  • Methods for random sampling:
  • For small populations, drawing names from a hat can be used.
  • A random digits table is another tool for random sampling.
  • Modernly, computer software is used to randomly select samples 14.

1.6 Simple random sampling

A simple random sample (SRS) of size n involves choosing n individuals from the population such that every possible group of n individuals has an equal chance of being selected. Consequently, each individual also has an equal chance of being selected into the sample 15.

📝 A researcher wants to select a random sample of 2 out of 5 patients (A, B, C, D, E) to receive a new treatment. There are 10 possible pairs of patients, and each pair has a 1/10 chance of being selected, making it a simple random sample 16 17.

A map of Canada showing randomly distributed points across provincial boundaries, illustrating a simple random sample.

1.7 Stratified random sampling

Stratified random sampling involves dividing the population into distinct groups, called strata, where individuals within each stratum are similar in ways expected to affect their response. A simple random sample is then drawn from each stratum 19.

  • Strata: Groups of individuals who are similar in ways expected to affect their response.
  • Sample size per stratum: The sample size drawn from each stratum (nᵢ) does not have to be the same 19.
  • Not an SRS: A stratified random sample is not a simple random sample because not every possible group of n individuals in the population has the same cha
Cover

Stats Unit 4.pdf

Table of contents

  1. Density curves & normal distribution
  2. Uniform distribution
  3. Triangle distribution
  4. Density curves – mean & median
  5. Density curves – variance
  6. Sample vs. population
  7. Parameters & statistics
  8. The normal distribution
  9. 68-95-99.7 rule
  10. Standard normal distribution
  11. Proportions under standard normal
  12. P(166(x190) =p
  13. Normal tables
  14. The normal distribution
  15. “Backwards” normal – percentiles
  16. P(2(z)
  17. Normal distribution – exact proportions
  18. Normal calculations
  19. Comparing normal variables
  20. Normal distribution – finding ω
  21. Normal distribution – finding µ
  22. The normal distribution
  23. Unit 4 summary

1. Density curves & normal distribution

1.1 Density curves

A density curve is a mathematical model that approximates the distribution of data, offering an idealized overall picture without small irregularities. This smooth curve is often easier to work with than a histogram, whose appearance can depend on the chosen number and length of intervals 4.

Density curves have three key properties:

  • The curve always lies on or above the x-axis.
  • The total area under the curve and above the x-axis equals one.
  • For every x-value, there is a unique y-value, meaning the curve represents a proper function 11.

The area under a density curve between two points represents the proportion of observations falling within that interval. This area closely approximates the proportion of data in the corresponding interval of a histogram 11 12.

When dealing with very large or infinite populations, such as the heights of all men in a country or the GPAs of all students at a university, histograms can be constructed with increasingly smaller intervals. As the interval length decreases and the number of intervals grows, the histogram essentially becomes a density curve.

Density curves are thus used to describe the distributions of continuous variables for large populations 13 14 16.

📝 Imagine a histogram of 5,000 student test scores. If the total area of the histogram bars is scaled to 1, the area of bars between scores 50 and 60 represents the proportion of students scoring in that range. A smooth density curve fitted to this histogram would have an area to the left of score 60 that approximates the proportion of students scoring below 60 5 8 10.

2. Uniform distribution

2.1 Definition and properties

A uniform distribution describes a variable where all values within a specified range have an equal probability of occurring. This type of distribution is represented by a density curve that forms a rectangle.

The total area under this curve must equal 1, which is a fundamental property of any valid probability density function. For a uniform distribution, the height of this rectangular curve is determined by the range of the variable 17 18.

The area of the rectangle is calculated as base times height. Since the total area must be 1, the height (hh) can be found by dividing the total area by the base (bb), which represents the range of the variable.

Thus, h=1bh = \frac{1}{b} 1 17.

PropertyDescription
ShapeRectangular density curve
ProbabilityEqual for all values within the range
Total AreaMust equal 1

2.2 Calculating proportions

To find the proportion of values of a variable X that fall within a specific interval in a uniform distribution, you calculate the area of the rectangular segment corresponding to that interval. This is done by multiplying the width of the interval (the difference between the upper and lower bounds) by the height of the density curve 18 19.

For example, to find the proportion of values of X falling between 1.6 and 3.3, you would calculate the area of a rectangle with a base from 1.6 to 3.3 and a height determined by the uniform distribution's density. If the range of X is from 0 to 4, the height is 1/4=0.251/4 = 0.25. The proportion is then (3.3−1.6)×0.25=1.7×0.25=0.425(3.3 - 1.6) \times 0.25 = 1.7 \times 0.25 = 0.425 19 20.

Cover

Study guide.pdf

Table of contents

  1. Teaching Data Handling in the Intermediate Phase
  2. Demonstrating Knowledge of Statistical Concepts and the Ability to Be Engaged in Critical Analysis of the Data-Collection and Analysing Processes in the Intermediate Phase
  3. Demonstrating Knowledge of Probability in the Intermediate Phase
  4. Integrating Technology in the Teaching and Learning of Statistics and Probability

1. Teaching Data Handling in the Intermediate Phase

1.1 Introduction

This learning unit focuses on the Curriculum and Assessment Policy Statements (CAPS) concerning data handling and probability within the Intermediate Phase. Understanding the curriculum is fundamental for its effective implementation, ensuring learners receive consistent messages and achieve better scholastic performance.

A curriculum encompasses content areas, skills, teaching methods, learning objectives, and assessments 5 6.

1.2 Overview of the curriculum

The Intermediate Phase Mathematics curriculum (Grades 4-6) is detailed in the CAPS document, specifying content for each learning stage. For data handling and probability, CAPS clearly outlines what should be taught each term.

The document also addresses programme and promotion requirements, encouraging teachers to use diverse assessment strategies to enhance learner knowledge and gather performance data 6.

📝 The formula for calculating the mean is xˉ=Sum of all the observationsNumber of observations=∑xin\bar{x} = \frac{\text{Sum of all the observations}}{\text{Number of observations}} = \frac{\sum x_i}{n} 8.

1.3 General aims of the South African curriculum

The general aims of the South African curriculum, as they relate to data handling and probability in the Intermediate Phase, are to:

  • Ensure learners acquire and apply knowledge and skills meaningfully in their own lives, promoting local contexts while being sensitive to global imperatives.
  • Equip all learners with the necessary knowledge, skills, and values for self-fulfilment and active participation in society, irrespective of their background or abilities.
  • Encourage critical and active learning over rote memorization.
  • Specify achievable and high minimum standards of knowledge and skills for each grade.
  • Ensure content and context progress from simple to complex across grades.
  • Promote human rights, inclusivity, and environmental and social justice, aligning with the Constitution and being sensitive to diversity.
  • Value indigenous knowledge systems as contributors to national values.
  • Empower learners to solve problems and make decisions using critical and creative thinking.
  • Foster effective teamwork and individual work skills.
  • Develop skills in collecting, analysing, organising, and critically evaluating information.
  • Enhance effective communication using visual, symbolic, and language skills.
  • Promote the effective and critical use of technology for problem-solving 7.

1.4 Understanding data handling

Data handling involves asking questions and finding answers to describe events across social, technological, and economic environments. It uses symbols and notations, such as the formula for calculating the mean (xˉ=Sum of all the observationsNumber of observations=∑xin\bar{x} = \frac{\text{Sum of all the observations}}{\text{Number of observations}} = \frac{\sum x_i}{n}), to represent numerical, geometric, and graphical relationships.

Mathematics, including data handling, is a human activity involving observation, representation, and investigation of patterns and quantitative relationships, with wide applications in everyday life. Studying data handling and probability develops logical thinking, critical thinking, and problem-solving skills, preparing learners for informed decision-making and further research-oriented studies 8.

1.5 Specific aims of data handling

The teaching and learning of data handling aim to develop students':

  • Critical awareness of how data is gathered, analysed, and presented.
  • Confidence and competence to handle data without fear.
  • Understanding of how to formulate claims or generalisations from data.
  • Knowledge for making data-informed decisions.
  • Appreciation for the beauty and elegance of mathematics.
  • Recognition of mathematics' applicability across various life situations 8.

1.6 Specific skills

Essential data-handling skills include the ability to:

  • Use the language of mathematics related to data handling correctly.
  • Demonstrate development of data-handling vocabulary, number concepts, and calculation/application skills.
  • Listen, communicate, think, reason logically, and apply data-handling skills in different situations.
  • Investigate, analyse, represent, and interpret findings.
  • Pose and solve problems 9.

1.7 Focus of content areas10

This module concentrates on data handling and probability in the Intermediate Phase. Although these topics constitute only 10% of the Intermediate Phase mathematics curriculum, they provide

Cover

stuvia VOS.pdf

1. Inleiding tot correlationeel onderzoek en factoranalyse

Dit gedeelte introduceert de concepten van onderzoeksvaliditeit en detailleert de doelen, stappen en typen van factoranalyse (PCA, EFA, CFA).

1.1 Onderzoeksvaliditeit

Onderzoeksvaliditeit betreft de geldigheid van de conclusies die binnen een onderzoek worden getrokken. Er zijn verschillende typen validiteit:

  • Externe validiteit: De mate waarin conclusies gegeneraliseerd kunnen worden.
  • Interne validiteit: De mate waarin de causale relatie tussen variabelen (indien onderzocht) terecht is vastgesteld.
  • Begripsvaliditeit (Instrumentele validiteit): Aangelegenheden die betrekking hebben op het gebruikte meetinstrument:
  • Inhoudsvaliditeit: Representeert de inhoud van de test het gehele inhoudsdomein? Dit wordt vaak beoordeeld via een deskundigenoordeel of indruksvaliditeit.
  • Begripsvaliditeit (Construct Validity): Meet de test het theoretische concept dat gemeten moet worden? Dit omvat de interne structuur (wat wordt geanalyseerd via factoranalyse) en de externe structuur (relaties met andere variabelen, zoals criteriumvaliditeit).
  • Criteriumvaliditeit: Voorspelt de test gedrag of prestatie (criterium) dat niet direct met de test wordt gemeten?
  • Statistische validiteit: Betrekking op de statistische conclusies van het onderzoek.

Tip: De interne structuur van een test, een cruciaal onderdeel van de begripsvaliditeit, wordt geëvalueerd met behulp van factoranalyse.

1.2 Doelen van Factoranalyse

Factoranalyse (FA) is een statistische methode die helpt bij het structureren van een set geobserveerde variabelen. De twee primaire doelen zijn:

  1. Beoordelen dimensionaliteit van de test: Nagaan of het aantal theoretisch veronderstelde dimensies (factoren) binnen de set testitems gevonden kan worden.
  • Dit leidt tot Confirmerende Factoranalyse (CFA), waarbij een bevestiging wordt gezocht over de verwachte dimensionaliteit van het instrument (bijvoorbeeld: als men 3 dimensies verwacht en deze kloppen, is dit een ondersteuning voor de begripsvaliditeit).
  1. Realiseren van datareductie: Informatie uit een groot aantal variabelen samenvatten in een kleiner aantal nieuw te construeren variabelen (factoren).
  • Dit leidt tot Explorerende Factoranalyse (EFA), de tegenpool van CFA, waarbij men vooraf geen idee heeft hoeveel factoren er te onderscheiden zijn.
  • Hoofdcomponentenanalyse (PCA) is een methode binnen deze context.

1.3 Typen Factoranalyse Modellen

Er zijn drie hoofdmodellen die in de factoranalyse worden onderscheiden, gekozen op basis van het onderzoeksdoel:

  • PCA (Hoofdcomponentenanalyse): Gericht op datareductie. Het doel is zo min mogelijk factoren te vinden die zoveel mogelijk variantie verklaren 4.
  • EFA (Exploratieve Factoranalyse): Gebruikt wanneer inhoudelijke interpretatie van een nog onbekend aantal factoren het doel is.
  • CFA (Confirmatieve Factoranalyse): Gebruikt wanneer de beoordeling van de verwachte interne structuur (validiteit) het doel is.

1.4 Stappenplan Factoranalyse

De factoranalyse doorloopt verschillende stappen:

Stap 0: Datascreening en Correlatiematrix

Voorafgaand aan de analyse moet data gescreend worden, wat resulteert in een correlatiematrix. Factoranalyse is alleen zinvol als er aanzienlijke correlatie (groter dan 0.30) is tussen de variabelen; zonder correlatie is de analyse niet betekenisvol.

Stap 1: Keuze Factormodel

De onderzoeker kiest het model (PCA, EFA of CFA) op basis van het doel 7.

Legenda Factormodel:

  • Geobserveerde variabele (XX): De individuele score op een variabele.
  • Gestandaardiseerde geobserveerde variabele (ZZ): XX getransformeerd naar een z-score.
  • Factorlading (aa): De correlatie tussen de variabele en de factor. Deze waarden worden geschat.
  • Factor (FF): De achterliggende verklaring voor de variantie en samenhang tussen de variabelen. Bij PCA spreekt men van componenten 8.
  • Unieke factor (UU): Verklaring voor specifieke en error-variantie.

Factorscores: De factorscore FF kan worden berekend als een gewogen som van de gestandaardiseerde scores: F=a1Z1+a2Z2+⋯+akZkF = a_1 Z_1 + a_2 Z_2 + \dots + a_k Z_k. Een factorscore van 0 komt overeen met een score gelijk aan het gemiddelde van de groep 9.

Stap 2: Bepalen Aantal Factoren

Het doel is met zo weinig mogelijk factoren zoveel mogelijk variantie te verklaren. Het maximum aantal factoren is gelijk aan het aantal variabelen (KK). De analyse streeft ernaar dat Factor 1 het grootste deel van de testvariantie verklaart, Factor 2 het grootste deel van de restvariantie, enzovoort.

Twee statistische criteria worden gebruikt om het aantal factoren te bepalen:

  1. Eigenwaarde Criterium (Kaiser-Guttman): De eigenwaarde (λ\lambda) van een factor vertegenwoordigt de verklaarde variantie in de KK variabelen door die factor. λ=∑i=1Kai2\lambda = \sum_{i=1}^K a_i^2.
  • Vuistregel: Se
Cover

SV_statistics 4.docx

📚 SV_statistics 4.docx

Brief overview

This document provides a comprehensive guide to advanced statistical analysis techniques. It covers methods for comparing group means, understanding interactions, analyzing longitudinal data, and predicting binary outcomes, essential for drawing robust conclusions from experimental and observational data.

Key points

  • Overview of one-way ANOVA for comparing multiple group means and interpreting F-statistics and effect sizes.
  • Analysis of core assumptions in statistical models, their impact on results, and strategies for addressing violations.
  • Understanding main effects and interactions in factorial ANOVA designs.
  • Methods for analyzing data with repeated measures, including assumptions and complex designs.
  • Application of simple and multiple linear regression for modeling relationships between variables.
  • Principles and application of logistic regression for analyzing binary outcome data.

1. One-way ANOVA: comparing group means

1.1 Introduction to one-way ANOVA

  • One-way ANOVA is a statistical method to compare the means of two or more groups.
  • It is a generalization of the independent groups t-test.
  • ANOVA uses variances to make inferences about means, particularly in experimental data.
  • The core idea is to partition the total variability in the data into components attributable to different sources.

📝 Example: In a study comparing depression treatment, ANOVA can assess if the average scores on a depression rating scale differ significantly between groups receiving placebo, cognitive therapy (CT), or antidepressant medication (ADM).

1.2 The ANOVA model and hypotheses

  • The full model assumes that population means can differ across groups (YijY_{ij} represents the score of person ii in group jj, with j=1,…,aj=1, \dots, a groups). Yij=μj+ϵijY_{ij} = \mu_j + \epsilon_{ij}
  • The reduced model is a special case where all population means are assumed to be equal. H0:μ1=μ2=⋯=μaH_0: \mu_1 = \mu_2 = \dots = \mu_a
  • This null hypothesis (H0H_0) forms the basis for the statistical test.

📝 Example: For depression treatment, the full model allows for different average HDRS scores at week 8 for placebo, CT, and ADM groups. The reduced model assumes the average HDRS score is the same across all three treatments.

1.3 Exploratory data analysis

  • Exploratory Data Analysis (EDA) is crucial before formal analysis.
  • It helps identify data errors, extreme values, and patterns.
  • Visualizing data, even just looking at data matrices, can reveal obvious trends.

🔑 Important: Sometimes, the data pattern is so clear it's called the "interocular trauma test"—the conclusion hits you between the eyes.

1.4 Parameter estimation and sums of squares

  • Unknown parameters (like population means μj\mu_j) are estimated from sample data using a criterion, typically least squares.

  • This minimizes the sum of squared differences between observations and model-predicted values (residuals).

  • Sums of squares (SS) quantify the size of residuals.

    • SSE_Reduced: Sum of squared errors from the reduced model (grand average).
    • SSE_Full: Sum of squared errors from the full model (group averages).
    • SSE_Effect: The reduction in error achieved by using the full model instead of the reduced model. SSEEffect=SSEReduced−SSEFullSSE_{Effect} = SSE_{Reduced} - SSE_{Full}.
    • SSTot: Total sum of squares, deviation from the grand sample average. SSTot=SSEReducedSSTot = SSE_{Reduced}.

📝 Example: For the depression study, SSE_Reduced measures variability around the overall average HDRS score. SSE_Full measures variability around each treatment group's average HDRS score. SSE_Effect quantifies how much the treatment groups reduce this overall variability.

1.5 Degrees of freedom (df)

  • Degrees of freedom (df)
Cover

SWO1.10_Variabelen_meetniveaus_beschrijving data.pptx

Beschrijvende statistiek en meetniveaus

Dit onderwerp introduceert de basisprincipes van beschrijvende statistiek, gericht op het herkennen van meetniveaus, het verklaren van variabeletypen en het op gepaste wijze beschrijven van data.

1.1 Doelstellingen

Na het bestuderen van dit onderwerp kunt u:

  • Het meetniveau van een variabele herkennen.
  • Verschillende soorten variabelen verklaren.
  • Data op een gepaste manier beschrijven.
  • Kruistabellen interpreteren.
  • Een correlatiematrix en scatterplot aflezen en interpreteren.
  • Een boxplot interpreteren.
  • Het verschil tussen beschrijvende en verklarende statistiek uitleggen.

1.2 Beschrijvende versus Verklarende Statistiek

Beschrijvende statistiek is gericht op het samenvatten en beschrijven van data. Verklarende statistiek (ook wel inferentiële statistiek genoemd) gebruikt deze beschrijvingen om conclusies te trekken over grotere populaties, gebaseerd op steekproeven.

1.3 Meetniveaus van Variabelen

Meetniveaus classificeren de aard van de data en bepalen welke statistische bewerkingen zinvol zijn. Ze worden geordend van laag naar hoog:

1.3.1 Nominaal niveau

  • Kenmerken: Categorieën zonder inherente volgorde of numerieke waarde. Variabelen zijn exclusief; een observatie behoort tot slechts één categorie.
  • Voorbeelden: Geslacht, haarkleur, land van herkomst.
  • Bewerkingen: Tellen van frequenties per categorie is mogelijk. Berekeningen van waarden per item zijn niet zinvol ("Hoe geel is deze citroen?").

1.3.2 Ordinaal niveau

  • Kenmerken: Categorieën met een inherente rangschikking of volgorde, maar de afstanden tussen de categorieën zijn niet noodzakelijk gelijk of meetbaar.
  • Voorbeelden: Opleidingsniveau (lager, middelbaar, hoger), tevredenheidsschaal (zeer ontevreden, ontevreden, neutraal, tevreden, zeer tevreden), rangen in een wedstrijd.
  • Bewerkingen: Rangschikking is mogelijk. Berekeningen zijn beperkt tot het tellen van frequenties en het bepalen van de rangorde. Het absolute verschil tussen waarden is niet zinvol.

1.3.3 Intervalniveau

  • Kenmerken: Numerieke data waarbij de afstanden tussen opeenvolgende waarden gelijk zijn. Er is een rekenkundige waarde, maar het nulpunt is arbitrair (niet de afwezigheid van de gemeten eigenschap).
  • Voorbeelden: Temperatuur in graden Celsius of Fahrenheit, IQ-scores.
  • Bewerkingen: Optellen, aftrekken, vermenigvuldigen en delen zijn mathematisch toegestaan en zinvol. Dit niveau vormt de basis voor veel statistische tests.
  • Nulpunten: Het nulpunt is niet altijd een absoluut nulpunt. Bijvoorbeeld, 0 graden Celsius betekent niet de afwezigheid van temperatuur.

1.3.4 Rationiveau (of Ratio)

  • Kenmerken: Het hoogste meetniveau. Numerieke data met gelijke intervallen én een absoluut nulpunt (de afwezigheid van de gemeten eigenschap).
  • Voorbeelden: Lengte, gewicht, leeftijd, inkomen, aantal kinderen.
  • Bewerkingen: Alle mathematische bewerkingen zijn toegestaan en zinvol, inclusief verhoudingen.
  • Nulpunten: Een absoluut nulpunt is aanwezig. Bijvoorbeeld, 0 euro betekent de afwezigheid van geld.

Tip: Hoe hoger het meetniveau van een variabele, hoe meer statistische bewerkingen mogelijk zijn. Indien nodig, kan data van een hoger meetniveau worden omgezet naar een lager meetniveau, maar dit gaat gepaard met informatieverlies.

1.4 Soorten Variabelen

Variabelen kunnen worden ingedeeld op basis van hun meetniveau en aard:

  • Discontinue variabelen: Kunnen slechts een beperkt aantal, discrete waarden aannemen. Dit zijn typisch nominale of ordinale variabelen, maar kunnen ook numerieke waarden zijn (bv. aantal kinderen).
  • Continue variabelen: Kunnen in principe elke waarde binnen een bepaald bereik aannemen. Dit zijn typisch interval- en rationiveau variabelen.

Classificatie op basis van aantal categorieën:

  • Dichotoom: Slechts twee tegengestelde categorieën (bv. ja/nee, aanwezig/afwezig, ziek/niet ziek). Vaak gecodeerd als 0 en 1.
  • Polychotoom: Twee of meer categorieën.
  • Nominaal polychotoom: Categorieën zonder rangorde (bv. woonplaats).
  • Ordinaal polychotoom: Categorieën met een rangorde (bv. hoe voelt u zich?).

1.5 Beschrijving van Data

De manier waarop data wordt beschreven, hangt af van het meetniveau en het type variabele (discontinu of continu).

1.5.1 Beschrijving van continue data

Voor continue data zijn drie kernaspecten belangrijk:

  1. Vorm van de frequentieverdeling: Hoe vaak komt elke waarde voor?
  2. Centrale tendentie: Waar bevindt het 'midden' van de data zich?
  3. Spreiding of variabiliteit: Hoe zijn de gegevens verspreid rond het centrum?
1.5.1.1 Centrale tendentie

Maten die het typische of centrale punt van de data samenvatten.

  • Modus: De waarde die het vaakst voorkomt in de dataset. Geschikt voor alle meetniveaus.
  • Mediaan: De middelste waarde wanneer de data geordend is. Bij een even aantal waarden is het de gemiddelde
Cover

SWO1.13 Verklarende statistiek_verschillen_verbanden(1).pptx

Inleiding tot verklarende statistiek en foutenconcepten

Dit document introduceert de fundamenten van verklarende statistiek, waarbij het onderscheid tussen beschrijvende en verklarende statistiek wordt belicht, en de concepten van Type I en Type II fouten, inclusief het significantieniveau, worden uitgelegd.

1. Inleiding tot verklarende statistiek en foutenconcepten

Verklarende statistiek richt zich op het vaststellen van verbanden en het doen van uitspraken over een populatie op basis van steekproefgegevens. Dit staat in contrast met beschrijvende statistiek, die data enkel samenvat en beschrijft. Het hoofddoel van verklarende statistiek is om conclusies te trekken over mogelijke oorzaken en effecten, vaak uitgedrukt in termen van kansen.

1.1 Beschrijvende versus verklarende statistiek

  • Beschrijvende statistiek: Samenvatten en presenteren van data om inzichten te verkrijgen.
  • Voorbeeld: "Vijftig procent van de studenten in de aula heeft een laptop."
  • Verklarende statistiek: Verklaren van verbanden en het onderzoeken van de waarschijnlijkheid van bepaalde uitkomsten.
  • Voorbeeld: "Mannelijke studenten kopen vaker een Mac pc dan vrouwelijke studenten."

1.2 Kansrekening in verklarende statistiek

De kern van verklarende statistiek is kansrekening, het bepalen van de waarschijnlijkheid van een bepaald resultaat ten opzichte van alle mogelijke uitkomsten.

  • Voorbeeld dobbelsteen: De kans om een specifieke zijde (bv. 2) te gooien bij een eerlijke dobbelsteen is 1/61/6, wat ongeveer 0,1670,167 of 16,7%16,7\% is.
  • Voorbeeld munt: De kans om 'kop' te gooien bij een eerlijke munt is 1/21/2, wat 0,500,50 of 50%50\% is.

Voorbeeld berekening kans op meerdere uitkomsten: Stel de vraag: "Wat is de kans om 4 keer 'munt' te gooien bij 5 opeenvolgende worpen met een munt?"

a. Aantal gunstige combinaties: Er zijn 6 verschillende manieren om precies 4 keer 'munt' te gooien in 5 worpen. b. Totaal aantal mogelijke combinaties: Bij elke worp zijn er 2 uitkomsten (kop of munt). Bij 5 worpen zijn er 25=322^5 = 32 mogelijke combinaties. c. Kansberekening: De kans is het aantal gunstige combinaties gedeeld door het totaal aantal mogelijke combinaties: P(4x munt in 5 worpen)=632=0,1875P(\text{4x munt in 5 worpen}) = \frac{6}{32} = 0,1875 Dit betekent dat de kans om 4 keer 'munt' te gooien bij 5 worpen ongeveer 18,75%18,75\% is.

1.3 Foutenconcepten: Type I en Type II fout

Bij het toetsen van hypothesen in verklarende statistiek is er altijd een risico op het maken van fouten. De twee belangrijkste fouten zijn de Type I en Type II fout.

1.3.1 Type I fout (vals positief)

  • Definitie: Het onterecht verwerpen van de nulhypothese (H0H_0) wanneer deze in werkelijkheid waar is.
  • Synoniem: Vals positief.
  • Oorzaak: De gemeten data lijken een effect te tonen, terwijl dit in werkelijkheid door toeval komt.
  • Significantieniveau (alfa, α\alpha): De vooraf bepaalde maximale kans op een Type I fout. Gangbare waarden zijn 0,050,05, 0,010,01, en 0,0010,001.
  • Een α=0,05\alpha = 0,05 betekent dat er een 5%5\% kans is om een Type I fout te maken.
  • Gevolgen:
  • Het verlagen van α\alpha (bv. van 0,050,05 naar 0,010,01) vermindert het risico op een Type I fout.
  • Echter, een lagere α\alpha verkleint ook de kans om een werkelijk bestaand effect te detecteren.

1.3.2 Type II fout (vals negatief)

  • Definitie: Het onterecht aanvaarden van de nulhypothese (H0H_0) wanneer deze in werkelijkheid onjuist is.
  • Synoniem: Vals negatief.
  • Oorzaak: De gemeten data tonen geen significant effect, terwijl er in werkelijkheid wel een effect bestaat.
  • Bèta (β\beta): De kans om een Type II fout te maken.
  • Gerelateerd aan: De steekproefgrootte en de effectgrootte.
  • Poweranalyse: Een methode om te bepalen welke steekproefgrootte nodig is om een bepaald effect met een acceptabele kans te kunnen aantonen. De power van een test is 1−β1 - \beta. Een gangbare consensus voor β\beta is 0,200,20 of 0,100,10.

Tip: Het vinden van de juiste balans tussen het minimaliseren van Type I en Type II fouten is cruciaal in statistisch onderzoek. Vaak wordt er een compromis gesloten afhankelijk van de context en de consequenties van elke fout.

1.4 Nulhypothese en regressie naar het gemiddelde

  • Nulhypothese (H0H_0): Een stelling die stelt dat er geen verschil of verband bestaat tussen variabelen (bv. "je bent niet zwanger").
  • Regressie naar het gemiddelde (Regression to the mean): Het fenomeen waarbij extreme metingen bij herhaalde metingen de neiging hebben om dichter bij het populatiegemiddelde te liggen. Dit is een statistisch fenomeen en geen oorzakelijk verband. Bij het analyseren van data is het belangrijk om de verwachte distributie (nuldistributie) te onderscheiden van de gemeten distributie.

1.5 Statistische toetsen: Verschillen en verbanden

Verklarende statistiek maakt gebruik van statistische toetsen om hypotheses te testen. De keuze van de toets hangt af van de onderzoeksvraag, het mee

Cover

SWO1.14 non-parametrische statistiek_13nov.pptx

Inleiding tot niet-parametrische statistiek

Deze sectie introduceert de principes en toepassingen van niet-parametrische statistiek, die gebruikt wordt wanneer data niet voldoen aan de aannames van parametrische tests, zoals normaliteit.

1. Inleiding tot niet-parametrische statistiek

Niet-parametrische statistiek, ook wel distributievrije statistiek genoemd, vormt een alternatief voor parametrische statistiek wanneer aan de aannames van de laatstgenoemde niet is voldaan. Dit is vaak het geval bij ordinale data of wanneer continue data een scheve verdeling vertonen. In plaats van de werkelijke waarden te gebruiken, focussen niet-parametrische methoden op de rangorde van de data.

1.1 Doel van niet-parametrische statistiek

Het hoofddoel van niet-parametrische statistiek is het bieden van methoden voor het analyseren van data die niet voldoen aan de strikte assumpties van parametrische toetsen, met name de aanname van een normale verdeling. Dit maakt het mogelijk om statistische conclusies te trekken in een breder scala aan onderzoeksscenario's.

1.2 Criteria voor toepassing van niet-parametrische statistiek

Niet-parametrische toetsen zijn met name geschikt in de volgende situaties:

  • Ordinale afhankelijke variabelen: Wanneer de afhankelijke variabele van ordinaal niveau is, wat betekent dat de waarden gerangschikt kunnen worden maar de afstanden tussen de waarden niet per se gelijk zijn (bv. een Likert-schaal).
  • Scheve verdeling van continue variabelen: Als zowel de afhankelijke als de onafhankelijke variabele van continue aard zijn, maar de verdeling van de data significant afwijkt van een normale verdeling.
  • Discontinue variabelen: Normaliteit wordt niet getoetst bij discontinue variabelen.

1.3 Basisvaardigheden en kernconcepten

1.3.1 Verdeling en frequentiedistributies

Het begrijpen van de verdeling van data is cruciaal. Verschillende vormen van verdelingen kunnen worden waargenomen:

  • Symmetrisch: De linker- en rechterhelft van de verdeling zijn spiegelbeelden van elkaar.
  • Scheefheid (Skewness):
  • Positief scheef (positively skewed): De staart van de verdeling wijst naar rechts; de meeste waarden liggen aan de lage kant. De modus is kleiner dan de mediaan, die kleiner is dan het gemiddelde (modus<mediaan<gemiddeldemodus < mediaan < gemiddelde).
  • Negatief scheef (negatively skewed): De staart van de verdeling wijst naar links; de meeste waarden liggen aan de hoge kant. De modus is groter dan de mediaan, die groter is dan het gemiddelde (modus>mediaan>gemiddeldemodus > mediaan > gemiddelde).
  • Kurtosis: Beschrijft de "piekigheid" of "afplatting" van de verdeling ten opzichte van een normale verdeling.
  • Leptokurtisch: Een scherpe piek en dikke staarten (hoge kurtosis).
  • Mesokurtisch: Gelijk aan de normale verdeling (kurtosis van ongeveer 0).
  • Platykurtisch: Een platte piek en dunne staarten (lage kurtosis).
  • Modaliteit:
  • Unimodaal: Eén duidelijke piek.
  • Bimodaal: Twee duidelijke pieken, wat kan wijzen op de aanwezigheid van twee verschillende populaties in de steekproef.
  • Multimodaal: Meer dan twee pieken.

1.3.2 Centrale tendentie

  • Gemiddelde (Mean): Het rekenkundig gemiddelde, berekend als de som van alle waarden gedeeld door het aantal waarden. Gevoelig voor uitschieters.
  • Mediaan (Median): De middelste waarde in een gesorteerde dataset. Minder gevoelig voor uitschieters dan het gemiddelde.
  • Modus (Mode): De meest voorkomende waarde in een dataset.

1.3.3 Het bepalen van de verdeling

De normaliteit van een verdeling kan worden beoordeeld met behulp van:

  • Statistische toetsen:
  • Kolmogorov-Smirnov test: Vaak conservatief en streng, kan leiden tot het verwerpen van de nulhypothese van normaliteit, zelfs bij kleine afwijkingen.
  • Shapiro-Wilk test: Over het algemeen een betere keuze, minder conservatief en gevoeliger voor afwijkingen van normaliteit, vooral bij kleinere steekproeven.
  • Interpretatie: Bij een significant resultaat (p<0.05p < 0.05) wordt de nulhypothese dat de verdeling normaal is, verworpen. Een pp-waarde groter dan 0.050.05 suggereert dat de data normaal verdeeld zijn.
  • Visuele evaluatie:
  • Histogrammen: Bieden een grafische weergave van de frequentieverdeling.
  • Boxplots: Tonen de mediaan, kwartielen en eventuele uitschieters.
  • Normal Q-Q plots (Quantile-Quantile plots): Vergelijken de kwantielen van de data met de kwantielen van een theoretische normale verdeling. Punten die dicht bij een rechte lijn liggen, duiden op normaliteit.
  • P-P plots (Probability-Probability plots): Vergelijken de cumulatieve kansen van de data met de cumulatieve kansen van een theoretische normale verdeling.

1.3.4 Interpreteren van SPSS-output

Bij het beoordelen van normaliteit met SPSS worden vaak Z-scores voor scheefheid en kurtosis gerapporteerd, alsook resultaten van de Kolmogorov-Smirnov en Shapiro-Wilk tests.

  • Z-score interpretatie: Een Z-score voor scheefheid