Probability Statistics

Cover

Review Exercise for Medical Statistics.docx

📚 Review Exercise for Medical Statistics.docx

Brief overview

This document provides a review of essential medical statistics concepts and methods. It is designed to solidify understanding of foundational statistical principles and their application in medical research and practice.

Key points

  • Overview of basic statistical concepts and data types, including normal distribution, categorical/numerical data, and sampling error.
  • Principles and applications of hypothesis testing, covering t-tests, chi-square tests, ANOVA, and p-values.
  • Calculation and interpretation of confidence intervals for population means and proportions.
  • Exploration of various probability distributions and their uses in statistical inference.
  • Detailed coverage of statistical analysis methods like ANOVA, regression, and chi-square tests.

1. Basic statistical concepts and data types

1.1 Data types

  • Categorical data: Represents qualities or characteristics that can be grouped.
  • Numerical data: Represents quantities that can be measured.
Data TypeDescriptionExamples
CategoricalGroups or categories, no inherent order.Blood type, gender, nationality
NumericalMeasured quantities, can be ordered.Height, weight, age, temperature
  DiscreteCountable, distinct values.Number of children, number of units sold
  ContinuousCan take any value within a range.Lifetime of rats, weight of dogs, temperature

1.2 Measures of central tendency

Measures of central tendency describe the center or typical value of a dataset.

  • Mean: The average of all values. It is calculated by summing all values and dividing by the number of values.
  • The sum of deviations from the mean is always zero.
  • The mean is sensitive to extreme values.
  • Median: The middle value in a sorted dataset. It is resistant to extreme values.
  • Mode: The value that appears most frequently in a dataset.

Mean is easily influenced by extreme values; Median is resistant.

1.3 Data distribution shapes

The shape of a distribution describes how data is spread.

  • Symmetric distribution: The left and right sides of the distribution are mirror images.
  • In a symmetric distribution, the mean, median, and mode are typically equal.
  • Negatively skewed distribution: The long tail is on the left.
  • The mean is typically less than the median.
  • Positively skewed distribution: The long tail is on the right.
  • The mean is typically greater than the median.

For a positively skewed distribution, mean > median. For a negatively skewed distribution, median > mean.

Distribution TypeTail DirectionRelationship: Mean vs. Median
SymmetricN/AMean = Median
Negatively skewedLeftMean < Median
Positively skewedRightMean > Median

1.4 Normal distribution

The normal distribution, or Gaussian distribution, is a fundamental probability distribution.

  • It is characterized by its bell shape and symmetry about the mean.
  • It has two parameters: the mean (μ\mu) and the standard deviation (σ\sigma).
  • The area under the normal curve represents probabilities.
  • A key property is that approximately 68.27% of the data falls within 1 standard deviation of the mean, 95% within 1.96 standard deviations, and 99.7% within 3 standard deviations.

Under a standard normal distribution, the area between -1 and +1 standard deviation is about 0.6827.

Standard Deviation RangeApproximate Area Under Curve
μ±1σ\mu \pm 1\sigma68.27%
μ±1.96σ\mu \pm 1.96\sigma95%
μ±2.58σ\mu \pm 2.58\sigma99%
μ±3σ\mu \pm 3\sigma99.7%

1.5 Samples and sampling error

Statistical inference uses samples to draw conclusions about populations.

  • Sample: A subset of individuals selected from a larger population.
  • Samples should be selected randomly to be representative.
  • There should be enough individuals in a sample for meaningful analysis.
  • Population: The entire group of individuals or items being studied.
  • Sampling error
Cover

Review+Probability+Answers.pdf

Table of contents

  1. Probability Review

1. Probability Review

1.1 Dependent and independent events

Events are considered independent if the outcome of one event does not affect the outcome of another event. In contrast, dependent events are those where the outcome of the first event influences the outcome of the second event 1.

  • Card dealing scenario: Dealing two cards to a friend and then two to yourself involves dependent events because the cards dealt to the friend are no longer in the deck for your turn.
  • Dice roll and spinner: Rolling a dice and spinning a spinner are independent events, as the result of the dice roll has no impact on the spinner's outcome 1.

1.2 Mutually exclusive and overlapping events

Mutually exclusive events cannot occur at the same time. Overlapping events, on the other hand, can occur simultaneously 1.

  • Face card or heart: Drawing a face card (like a King, Queen, or Jack) and drawing a heart from a standard deck are overlapping events because some cards are both face cards and hearts (e.g., the King of Hearts).
  • State of birth survey: A survey about where people were born, with categories like Ohio, Indiana, Kentucky, North Carolina, and Alaska, presents mutually exclusive events because a person can only be born in one state 1.

1.3 Probability calculations from survey data

This section involves calculating probabilities based on survey results, often using conditional probabilities 1.

The table below shows the results of a survey on preferred pet types among freshmen and sophomores:

GradeBirdCatDogFishTotal
Freshman3495322127
Sophomore7366410117
Total108511732244
  • Probability of preferring a cat: The probability of a randomly selected student preferring a cat is the total number of students who prefer cats divided by the total number of students surveyed. P(Cat)=85244≈0.348P(\text{Cat}) = \frac{85}{244} \approx 0.348.
  • Probability of a freshman preferring a dog: The probability of a student being a freshman and preferring a dog is the number of freshmen who prefer dogs divided by the total number of students. P(Freshman and Dog)=53244≈0.217P(\text{Freshman and Dog}) = \frac{53}{244} \approx 0.217.
  • Conditional probability of preferring fish given freshman: The probability that a student prefers fish, given that they are a freshman, is the number of freshmen who prefer fish divided by the total number of freshmen. P(Fish | Freshman)=22127≈0.173P(\text{Fish | Freshman}) = \frac{22}{127} \approx 0.173.
  • Conditional probability of being a sophomore given preference for birds: The probability that a student is a sophomore, given that they prefer birds, is the number of sophomores who prefer birds divided by the total number of students who prefer birds. P(Sophomore | Bird)=710=0.7P(\text{Sophomore | Bird}) = \frac{7}{10} = 0.7 1.

📝 The probability of the sum being prime when rolling two dice is 1536=512≈0.417\frac{15}{36} = \frac{5}{12} \approx 0.417 2.

1.4 Probability with colored and numbered balls

This section deals with calculating probabilities involving a set of colored and numbered balls 1.

A game contains 10 red balls, 10 green balls, and 10 white balls, with each color numbered 1-10.

  • Probability of picking a number 7 ball: The probability of picking a ball with the number 7 is the total number of balls numbered 7 (one of each color) divided by the total number of balls. P(Number 7)=330=110=0.1P(\text{Number 7}) = \frac{3}{30} = \frac{1}{10} = 0.1.
  • Probability of picking an odd-numbered red ball: The probability of picking a red ball that is also odd-numbered is the count of odd-numbered red balls divided by the total number of balls. There are 5 odd numbers (1, 3, 5, 7, 9) for each color. P(Odd Red)=530=16≈0.167P(\text{Odd Red}) = \frac{5}{30} = \frac{1}{6} \approx 0.167.
  • Probability of not picking a prime number: Prime numbers in the range 1-10 are 2, 3, 5, and 7. There are 4 prime numbers for each of the 3 colors, totaling 12 prime numbers. The probability of not picking a prime number is the count of non-prime numbers divided by the total number of balls. P(Not Prime)=30−1230=1830=35=0.6P(\text{Not Prime}) = \frac{30 - 12}{30} = \frac{18}{30} = \frac{3}{5} = 0.6.
  • Probability of picking a white ball or a multiple of 5: This involves the addition rule for probabilities. The probability of picking a white ball is 1030\frac{10}{30}. The multiples of 5 are 5 and 10. There are 2 multiples of 5 for each of the 3 colors, totaling 6 balls. The probability of picking a white ball OR a multiple of 5 is P(White)+P(Multiple of 5)−P(White and Multiple of 5)P(\text{White}) + P(\text{Multiple of 5}) - P(\text{White and Multiple of 5}). P(White or Multiple of 5)=1030+630−230=1430=715≈0.467P(\text{White or Multiple of 5}) = \frac{10}{30} + \frac{6}{30} - \frac{2}{30} = \frac{14}{30} = \frac{7}{15} \approx 0.467 1.

1.5 Probability with playing cards

This section focuses on calculating probabil

Cover

S1100E.pdf

📚 S1100E.pdf

Brief overview

This document introduces fundamental statistical concepts and their applications. It covers essential terminology, methods for analyzing single and multiple variables, and the principles of probability. Understanding these elements is crucial for interpreting data and statistical findings.

Key points

  • Overview of basic statistical terminology, including populations, samples, and data types.
  • Methods for analyzing single variables with graphical and numerical summaries.
  • Understanding bivariate statistics, correlation, and simple linear regression.
  • Introduction to combinatorial analysis for counting possibilities.
  • Core concepts of probability, including conditional probability and Bayes' theorem.

1. Basic statistical concepts and terminology (part 1)

1.1 Introduction to statistics

  • Statistics: The science of collecting, analyzing, presenting, and interpreting data. It helps in making decisions under uncertainty. .
  • Two main areas:
    • Descriptive statistics: Methods for organizing, displaying, and describing data. .
    • Inferential statistics: Using sample results to make decisions about a population. .

1.2 Key terminology

A population is the entire group studied. A statistical unit is a single member of that group.

4. A sample is a smaller, representative part of the population.

The sample size (nn) is the number of observations in the sample. .

A census includes every member of the population. A sample survey collects data from a portion.

A representative sample closely reflects the population's characteristics. .

A statistical variable (or character) is a characteristic of individuals. Modalities are the specific values a variable can take.

.

A sample is chosen to represent the population. Sampling is the process of selecting it. .

Statistical series

  • Statistical series: All results of a study, showing values and their frequencies. .

Here are the types of statistical series:

Type of seriesDescriptionExample
Individual seriesAll observations listed; each has a frequency of 1.10, 9, 12, 14
Discrete seriesObservations listed with their frequencies in a table.xi: 9, 10, 12, 14; ni: 1, 4, 2, 2
Continuous seriesClass intervals listed with their frequencies in a table.[2, 6[, [6, 10[; frequencies...

5.

  • Data set: A collection of observations for one or more variables. .

1.3 Types of variables

Variables are classified as qualitative or quantitative.

Qualitative or categorical variables

  • Cannot be numerical, but are classified into non-numeric categories. .
  • Data collected from them is called qualitative data. .
  • Nominal categories: No natural order (e.g., gender, religion). .
  • Ordinal variables: Categories have a natural order (e.g., small, medium, large). .

Quantitative variables

  • Can be measured numerically. .

  • Data collected is called quantitative data. .

  • Two types:

    TypeDescriptionExample
    Quantitative discreteValues are countable; no intermediate values between them.Number of students at LU
    Quantitative continuousCan assume any numerical value within an interval.Weight, employee salaries

[ -7] 6.

2.1 Basic notation in univariate analysis

  • Frequency (nin_i): The number of times a value (xix_i) appears. .
  • Total frequency (nn): The total number of observations. n=∑nin = \sum n_i. .
Cover

S3005_chp4_correlation.pdf

Table of contents

  1. Chapter 4: Correlation problem
  2. Proofs
  3. R-codes
  4. Exercises

1. Chapter 4: Correlation problem

1.1 Introduction

In statistics, the term "relationship" between two random variables (RVs) X and Y is often referred to as dependence, association, or correlation. While these terms are used interchangeably, they can have specific meanings.

Pearson's correlation is the most widely recognized measure of correlation. A correlation measure, denoted by ρ(⋅,⋅)\rho(\cdot, \cdot), quantifies the strength of the relationship between two RVs and is generally expected to fall within the range of.

A value of 0 indicates that the variables are uncorrelated, while a value of ±1\pm1 signifies a perfect correlation. A strong correlation measure is one where ρ(X,Y)=0\rho(X, Y) = 0 if and only if X and Y are independent.

If this condition is not met, the correlation measure is considered weak 1.

It is important to note that some correlation measures are always non-negative, as the sign of a correlation may not always be meaningful, especially for V-shaped or W-shaped relationships. However, many classical measures, like Pearson's correlation, do allow for negative values to capture signed relationships.

A significant challenge in correlation analysis is that most measures do not satisfy the strong correlation property. For instance, Pearson's correlation can be zero even when variables are dependent, such as when Y = X2^2 and X follows a standard normal distribution 1 2.

1.2 Correlation measures

Pearson's correlation is a common measure of the linear relationship between two random variables. The sample Pearson's correlation, denoted by ρ^P\hat{\rho}_P, is calculated from a dataset, while the population Pearson's correlation, ρP\rho_P, is defined for the underlying distributions 1.

MeasureDefinition
Sample Pearson's correlation (ρ^P\hat{\rho}_P)ρ^P=∑i=1n(Xi−Xˉ)(Yi−Yˉ)∑i=1n(Xi−Xˉ)2∑j=1n(Yj−Yˉ)2=XYˉ−Xˉ⋅YˉXˉ2−Xˉ2Yˉ2−Yˉ2\hat{\rho}_P = \frac{\sum_{i=1}^{n}(X_i - \bar{X})(Y_i - \bar{Y})}{\sqrt{\sum_{i=1}^{n}(X_i - \bar{X})^2} \sqrt{\sum_{j=1}^{n}(Y_j - \bar{Y})^2}} = \frac{\bar{XY} - \bar{X} \cdot \bar{Y}}{\sqrt{\bar{X}^2 - \bar{X}^2} \sqrt{\bar{Y}^2 - \bar{Y}^2}}
Population Pearson's correlation (ρP\rho_P)ρP:=Corr(X1,Y1):=Cov(X1,Y1)Var(X1)Var(Y1)\rho_P:= \text{Corr}(X_1, Y_1):= \frac{\text{Cov}(X_1, Y_1)}{\sqrt{\text{Var}(X_1)} \sqrt{\text{Var}(Y_1)}}

Despite its widespread use, Pearson's correlation can be misleading. This chapter introduces alternative correlation measures that address some of its limitations.

A correlation measure ρ(⋅,⋅)\rho(\cdot, \cdot) is defined as a measure of the strength of the relationship between two random variables, with values typically ranging from -1 to 1. A value of 0 indicates no correlation, while ±1\pm1 indicates a perfect correlation. A correlation measure is considered "strong" if it equals 0 if and only if the variables are independent; otherwise, it is "weak." 1 2.

1.3 Types of Relationship

Dependence between variables can be categorized into three main types: linear, monotonic, and general. Pearson's correlation (ρP\rho_P) is specifically designed to capture linear dependence.

Spearman's correlation (ρS\rho_S) and Kendall's correlation (ρK\rho_K) are used for monotonic dependence, while Bergsma–Dassios's correlation (ρBD\rho_{BD}) and Chatterjee's correlation (ρC\rho_C) are designed for general dependence 2.

1.4 Principles

When analyzing the relationship between two continuous random variables (X, Y) with joint cumulative distribution function (CDF) FX,Y(⋅,⋅)F_{X,Y}(\cdot, \cdot) and marginal CDFs FX(⋅)F_X(\cdot) and FY(⋅)F_Y(\cdot), two primary inference procedures are employed: using ranks or using signs 3.

  • Ranks: The ranks of the data (RX,RY)(R_X, R_Y) are expected to mimic the structure of the raw data (X,Y)(X, Y) without being overly influenced by the specific distributions. Relative ranks, such as RX∣YR_{X|Y}, which represent the rank of X values when Y values are sorted, can also be used.
  • Signs: The signs of differences between pairs of observations, such as ψX,ij=sgn(Xi−Xj)\psi_{X,ij} = \text{sgn}(X_i - X_j), are model-free when X and Y are independent. These signs mimic the structure of the differences Xi−XjX_i - X_j without strong distributional assumptions 3.

The principle of signs implies the principle of ranks because the rank of XiX_i can be expressed as a function of the signs of differences between XiX_i and other XjX_j values. This suggests that if the principle of signs is trusted, the principle of ranks should also be trusted 3.

1.5 Rank-based measure of correlation — Spearman’s correlation 2

Spearman's correlation (ρS\rho_S) is a rank-based measure that adapts Pearson's correlation to the ranks of the data. It quantifies the monotonic relationship between two variables 4.

MeasureDefinition
Sample Spearman's correlation (ρ^S\hat{\rho}_S)$\h
Cover

Samenvatting-biostatistiek.docx

Fundamentele statistische concepten en metingen

Hier is een gedetailleerde samenvatting over fundamentele statistische concepten en metingen, opgesteld als een examenklare studiegids.

1. Fundamentele statistische concepten en metingen

Dit hoofdstuk legt de basisprincipes van statistiek uit, met focus op het onderscheid tussen populatie en steekproef, de doelen van beschrijvende en inferentiële statistiek, en de berekening van locatie- en spreidingsmaten.

1.1 Het doel van statistiek

Statistiek is essentieel voor het trekken van betrouwbare conclusies uit gegevens. Het belangrijkste doel is om conclusies te formuleren over een gehele populatie, gebaseerd op de observaties van een willekeurige steekproef. Hierbij is het cruciaal om te beoordelen hoe waarschijnlijk het is dat geobserveerde verschillen puur door toeval ontstaan. Grote verschillen wijzen mogelijk op een werkelijk effect, terwijl waarschijnlijke verschillen aan toeval toe te schrijven zijn.

1.1.1 Populatie versus willekeurige steekproef

  • Populatie: Dit is de hypothetische groep van alle huidige en toekomstige subjecten met een specifieke conditie, waarover conclusies getrokken zullen worden.
  • Steekproef: Dit is een subgroep van de populatie waarvan daadwerkelijk observaties worden verzameld.

Randomisatie is van groot belang om de effecten die in de steekproef worden waargenomen, te kunnen generaliseren naar de gehele populatie.

1.1.2 De twee doelen van statistiek

  1. Beschrijvende statistiek: Het samenvatten en beschrijven van de geobserveerde gegevens op een duidelijke manier. Voorbeelden hiervan zijn het gebruik van tabellen, grafieken en het berekenen van gemiddelden.
  2. Inferentiële statistiek: Het onderzoeken in hoeverre geobserveerde trends of effecten veralgemeend kunnen worden naar een algemene, mogelijk oneindige, populatie. Dit vereist een sterke link tussen steekproef en populatie, correcte statistische methodologie en een accurate interpretatie van de resultaten.

1.2 Metingen van locatie

Locatiematen geven een indicatie van het centrum of de typische waarde van een dataset.

  • Steekproefgemiddelde (Xˉ\bar{X}): Xˉ=∑i=1nXin\bar{X} = \frac{\sum_{i=1}^{n} X_i}{n} Dit is de som van alle observaties (XiX_i) gedeeld door het aantal observaties (nn). Het steekproefgemiddelde is erg gevoelig voor extreme waarden (outliers).

  • Steekproefmediaan: De middelste observatie in een geordende dataset. De mediaan is niet gevoelig voor extreme waarden.

  • Steekproefmodus: De waarde die het vaakst voorkomt in de dataset. Deze maat is niet altijd informatief.

Tip: Bij datasets met outliers is het raadzaam om de steekproefmediaan te gebruiken. In afwezigheid van outliers is het gemiddelde een geschikte maat.

1.2.1 Symmetrische versus scheve verdelingen

  • Symmetrische verdelingen: Gemiddelde en mediaan zijn gelijk.
  • Scheve verdelingen:
  • Positief scheef (rechtsscheef): Gemiddelde > Mediaan.
  • Negatief scheef (linksscheef): Mediaan > Gemiddelde.

1.3 Metingen van spreiding

Spreidingsmaten geven aan hoe gelijkend of verschillend de observaties in een dataset zijn.

  • Gemiddelde afwijking van het gemiddelde: ∑i=1n(Xi−Xˉ)n\frac{\sum_{i=1}^{n} (X_i - \bar{X})}{n} Dit geeft het gemiddelde verschil tussen elke observatie en het steekproefgemiddelde.

  • Gemiddelde kwadratische afwijking van het gemiddelde: ∑i=1n(Xi−Xˉ)2n\frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n} Dit is het gemiddelde van de gekwadrateerde verschillen. Het is erg gevoelig voor outliers.

  • Steekproefvariantie (s2s^2): s2=∑i=1n(Xi−Xˉ)2n−1s^2 = \frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n-1} Dit is een schatting van de populatievariantie, waarbij gedeeld wordt door n−1n-1 (Bessel's correctie) voor een zuivere schatting. De variantie is erg gevoelig voor outliers.

  • Standaardafwijking van de steekproef (ss): s=∑i=1n(Xi−Xˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n-1}} Dit is de vierkantswortel van de variantie en drukt de spreiding uit in dezelfde eenheid als de oorspronkelijke data. Ook de standaardafwijking is erg gevoelig voor outliers.

  • Steekproefbereik (Range, RR): R=max⁡(X)−min⁡(X)R = \max(X) - \min(X) Dit is het verschil tussen de hoogste en de laagste observatie. Het is erg gevoelig voor outliers en is afhankelijk van de steekproefgrootte (nn).

  • Interkwartielbereik (IQR): IQR=Q3−Q1IQR = Q_3 - Q_1 Dit is het verschil tussen het derde kwartiel (Q3Q_3, de 75e percentiel) en het eerste kwartiel (Q1Q_1, de 25e percentiel). Het IQR meet de spreiding van de middelste 50% van de gegevens en is niet gevoelig voor outliers. Het is ook onafhankelijk van de steekproefgrootte.

Cover

Samenvatting-biostatistiek.pdf

Basisprincipes van statistiek en data-analyse

Dit onderwerp behandelt de fundamentele concepten van statistiek, waaronder het verschil tussen populatie en steekproef, het doel van statistiek (beschrijvend en inferentieel), en de basisprincipes van data-interpretatie 1.

1.1 Het doel van statistiek

Statistiek is essentieel voor het trekken van conclusies over een populatie, gebaseerd op observaties van een willekeurige steekproef. Het belangrijkste doel is om te bepalen hoe waarschijnlijk het is dat geobserveerde verschillen of effecten te wijten zijn aan puur toeval, in plaats van aan een onderliggende oorzaak zoals een behandeling 1.

1.1.1 Populatie versus willekeurige steekproef

  • Populatie: Een hypothetische groep van huidige en toekomstige subjecten met een specifieke conditie, over wie conclusies worden getrokken 1.
  • Steekproef: Een subgroep van de populatie waaruit observaties worden verzameld 1.

Randomisatie is cruciaal om de effecten die in de steekproef worden waargenomen te kunnen generaliseren naar de totale populatie 1.

1.1.2 Beschrijvende en inferentiële statistiek

Statistiek kent twee hoofddoelen 1:

  • Beschrijvende statistiek: Dit omvat het samenvatten en beschrijven van geobserveerde gegevens om relevante aspecten te verduidelijken. Voorbeelden hiervan zijn tabellen, grafieken, en berekeningen van gemiddelden 1.
  • Inferentiële statistiek: Dit richt zich op het bestuderen van de mate waarin geobserveerde trends of effecten kunnen worden veralgemeend naar een algemene, oneindige populatie. Dit vereist een sterke link tussen steekproef en populatie, correcte statistische methodologie en een accurate interpretatie van de resultaten 1.

1.2 Metingen van locatie

Metingen van locatie beschrijven het centrale punt van een dataset. Belangrijke maten zijn 2:

  • Steekproefgemiddelde (Xˉ\bar{X}): De som van alle observaties gedeeld door het aantal observaties (nn). Dit is gevoelig voor extreme waarden (outliers) 2. Xˉ=∑i=1nXin\bar{X} = \frac{\sum_{i=1}^{n} X_i}{n}
  • Steekproefmediaan: De middelste observatie wanneer de data geordend is. Dit is robuust tegen extreme waarden 2.
  • Steekproefmodus: De meest geobserveerde waarde in de dataset. Deze is niet altijd informatief 2.

Tip: Bij de aanwezigheid van outliers is de steekproefmediaan de geprefereerde maat voor locatie. Zonder outliers is het gemiddelde een goede keuze 2.

1.2.1 Verdelingen en scheefheid

  • Symmetrische verdelingen: Hier valt het gemiddelde en de mediaan vaak samen 2.
  • Scheve verdelingen:
  • Positief scheef: Het gemiddelde is groter dan de mediaan (staart aan de rechterkant) 2.
  • Negatief scheef: De mediaan is groter dan het gemiddelde (staart aan de linkerkant) 2.

1.3 Metingen van spreiding

Metingen van spreiding kwantificeren hoe ver de observaties van elkaar verwijderd zijn en hoe gelijkend ze zijn 2.

  • Gemiddelde afwijking van het gemiddelde: De gemiddelde absolute verschil tussen elke observatie en het gemiddelde 3. Gemiddelde afwijking=∑i=1n∣Xi−Xˉ∣n\text{Gemiddelde afwijking} = \frac{\sum_{i=1}^{n} |X_i - \bar{X}|}{n}
  • Gemiddelde kwadratische afwijking van het gemiddelde: De gemiddelde gekwadrateerde verschil tussen elke observatie en het gemiddelde. Gevoelig voor outliers 3. Gemiddelde kwadratische afwijking=∑i=1n(Xi−Xˉ)2n\text{Gemiddelde kwadratische afwijking} = \frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n}
  • Steekproefvariantie (s2s^2): De gemiddelde gekwadrateerde afwijking, gedeeld door n−1n-1. Dit is een schatting van de populatievariantie en is gevoelig voor outliers 3. s2=∑i=1n(Xi−Xˉ)2n−1s^2 = \frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n-1}
  • Standaardafwijking van de steekproef (ss): De vierkantswortel van de steekproefvariantie. Het is de meest gebruikte maat voor spreiding en is gevoelig voor outliers 3. s=∑i=1n(Xi−Xˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^{n} (X_i - \bar{X})^2}{n-1}}
  • Steekproefbereik (Range, RR): Het verschil tussen de hoogste en laagste observatie. Zeer gevoelig voor outliers en afhankelijk van de steekproefgrootte 3. R=Xmax−XminR = X_{max} - X_{min}
  • Interkwartielbereik (IQR): Het verschil tussen het derde kwartiel (75e percentiel) en het eerste kwartiel (25e percentiel). Niet gevoelig voor outliers en redelijk onafhankelijk van de steekproefgrootte 3. IQR=Q3−Q1IQR = Q_3 - Q_1
Cover

Samenvatting HB statistiek.pdf

Associatiematen op nominaal en ordinaal niveau

Associatiematen kwantificeren de sterkte en richting van de relatie tussen variabelen, waarbij verschillende maten geschikt zijn voor variabelen van nominaal of ordinaal niveau.

1.1 Principes voor het opstellen van tabellen

1.1.1 Onafhankelijke en afhankelijke variabelen

  • Afhankelijke variabelen zijn kenmerken die worden beïnvloed door andere kenmerken, doorgaans weergegeven in rijen 17.
  • Onafhankelijke variabelen oefenen invloed uit op andere kenmerken en worden doorgaans in kolommen weergegeven 17.
  • De manier waarop percenteren plaatsvindt, is afhankelijk van de positie van afhankelijke en onafhankelijke variabelen in een tabel 17.
  • Het is niet altijd mogelijk om afhankelijke en onafhankelijke variabelen te onderscheiden 17.

1.1.2 Richtlijnen voor het percenteren van tabellen

  • Vermeld altijd het totaal aantal waarnemingen als alleen percentages of proporties worden getoond 17.
  • Bereken geen percentage als het aantal gevallen kleiner is dan 30, omdat de kans op foute interpretatie dan groot is; in dit geval is het beter om met absolute waarden te rekenen 17.

1.2 Associatiematen op nominaal niveau

1.2.1 De odds ratio

De odds ratio is een maat om de relatie tussen twee nominale kenmerken te bestuderen 17.

  • Odds: de verhouding tussen het voorkomen van een gebeurtenis en het niet voorkomen ervan 17.
  • Odds ratio: de verhouding tussen twee odds, ook wel de kruisproduct ratio genoemd 17.
  • Eigenschappen:
  • Niet gevoelig voor marginale verdelingen 17.
  • Een alternatief voor percenteren bij kleine steekproeven 17.
  • De basis voor logistische regressie-analyse 17.
  • Neemt de waarde 1 aan bij afwezigheid van een verband 17.
  • Wijkt af van 1 naarmate het verband sterker wordt, naar nul of naar plus oneindig 17.

1.2.2 Chi-kwadraat (X²)

De chi-kwadraattoets kijkt of waargenomen celfrequenties systematisch afwijken van de verwachte celfrequenties bij afwezigheid van een verband tussen twee kenmerken 17.

  • Vaak gebruikt om kruistabellen te analyseren 17.
  • Een maat voor de sterkte van de relatie tussen twee nominale variabelen, of tussen een nominale en ordinale variabele 17.
  • De waarde van X² neemt toe naarmate de associatie tussen de variabelen sterker is 17.
  • Interpretatie: Moeilijk te interpreteren als absolute maat. De X² varieert van 0 bij afwezigheid van een verband tot zeer hoge waarden zonder absolute begrenzing 18.
  • Formule: X2=∑(fo−fe)2feX^2 = \sum \frac{(f_o - f_e)^2}{f_e} waarbij fof_o de geobserveerde frequentie is en fef_e de verwachte frequentie 18.
  • Gevoeligheid: X² is gevoelig voor het aantal meeteenheden; als het aantal respondenten verdubbelt, verdubbelt X² ook. Daarom is het nuttig om sterktematen te berekenen die X² ongevoelig maken voor de steekproefgrootte 18.
  • Voorwaarden voor berekening:
  1. Data in de contigentietabel moeten ruwe frequenties zijn, geen scores of percentages 18.
  2. De variabelen moeten categorisch zijn en de meetwaarden elkaar uitsluiten; elke observatie mag slechts in één cel voorkomen 18.
  3. Maximaal 20% van de cellen mag een verwachte frequentie <5 bevatten, en geen enkele cel mag een verwachte frequentie van 0 hebben; indien dit niet voldaan is, moeten cellen worden samengevoegd 18.

1.2.3 Gecorrigeerde chi-kwadraat maten

Om de gevoeligheid van X² voor steekproefgrootte en het aantal rijen/kolommen te corrigeren, worden normeringsmethoden gebruikt:

  • Phi (𝜑):

  • Gebaseerd op X² 18.

  • Varieert van 0 (geen associatie) tot 1 (perfecte statistische associatie) 18.

  • Gebruikt bij de berekening van associaties in een 2x2 tabel 18.

  • Formule: ϕ=X2n\phi = \sqrt{\frac{X^2}{n}} waarbij nn het totaal aantal waarnemingen is 18.

  • Cramer's V:

  • De meest aangewezen coëfficiënt voor associatiematen die op X² steunen 18.

  • Corrigeert voor de gevoeligheid van X² voor steekproefgrootte en het aantal rijen/kolommen 18.

  • Varieert van 0 tot 1 18.

  • Gebruikt bij berekening van associaties in een r×kr \times k tabel 18.

  • Formule: V=X2n(k−1)V = \sqrt{\frac{X^2}{n(k-1)}} waarbij k=min⁡(r,c)k = \min(r, c), met rr het aantal rijen en cc het aantal kolommen 18.

1.3 Associatiematen op ordinaal niveau

1.3.1 Gamma

Gamma is een maat voor de samenhang tussen variabelen van het ordinale niveau 19.

  • Bereik: Loopt van -1 tot +1 19.
  • -1: perfect negatief verband 19.
  • +1: perfect positief verband 19.
  • 0: afwezigheid van een verband 19.
  • Interpretatie: Hoe verder van 0, hoe sterker de associatie [19](#page=
Cover

Samenvatting HB statistiek.pdf

bivariate lineaire regressieanalyse

Bivariate lineaire regressieanalyse is een statistische techniek die wordt gebruikt om de variatie in een afhankelijke variabele te verklaren op basis van een onafhankelijke variabele door middel van een lineaire vergelijking 22.

1.1 Doel en toepassingen

Het hoofddoel van regressieanalyse is het statistisch verklaren van de variatie in een afhankelijke variabele (Y) door een onafhankelijke variabele (X). Dit kan twee hoofddoelen dienen 22:

  • Theorietoetsend onderzoek: Hierbij wordt een causaal verband tussen de variabelen verondersteld en tracht men de afhankelijke variabele te verklaren 22.
  • Predictieonderzoek: In dit geval wordt niet altijd een causaal verband verondersteld, maar wil men weten of een variabele een voorspellend karakter heeft, vaak rekening houdend met meerdere kenmerken van een persoon 22.

1.2 De lineaire regressievergelijking

De lineaire regressieanalyse wordt uitgedrukt met een statistische vergelijking die de afhankelijke variabele voorspelt op basis van de onafhankelijke variabele:

Y=β0+β1X+eY = \beta_0 + \beta_1X + e

of ook:

Y=a+b1X+eY = a + b_1X + e

Hierin staat:

  • YY: de afhankelijke variabele 22.
  • XX: de onafhankelijke variabele 22.
  • aa: het intercept, wat de waarde van YY is wanneer X=0X=0 22.
  • b1b_1: de slope of richtingscoëfficiënt, die de verandering in YY aangeeft bij elke eenheidstoename in XX 22.
  • ee: de errorterm of foutenterm, het verschil tussen de werkelijke waarde van YY en de door het model voorspelde waarde van YY 22.

Tip: De som van alle residuen is gelijk aan nul. De variantie van de errorterm is constant, ongeacht de waarde van XX 22.

De voorspelde waarde van YY op basis van XX wordt aangeduid als y^i\hat{y}_i 22.

1.3 Bepalen van het intercept en de hellingshoek: OLS

Het intercept (aa) en de hellingshoek (b1b_1) worden bepaald via de 'ordinary least squares' (OLS) methode. Deze methode bepaalt de parameters aa en b1b_1 zodanig dat de gekwadrateerde afwijking van de regressierechte minimaal wordt. Dit minimale verschil tussen de punten en de regressierechte dient als kwaliteitsmaat voor het model 22.

De formules voor de regressiecoëfficiënten zijn: a=Yˉ−b1Xˉa = \bar{Y} - b_1\bar{X} b1=rXYsYsXb_1 = r_{XY} \frac{s_Y}{s_X} waar rXYr_{XY} de Pearson correlatiecoëfficiënt is, sYs_Y de standaardafwijking van YY en sXs_X de standaardafwijking van XX. Een alternatieve formule voor b1b_1 is gebaseerd op de covariantie: b1=sXYsX2b_1 = \frac{s_{XY}}{s_X^2} waar sXYs_{XY} de covariantie tussen XX en YY is en sX2s_X^2 de variantie van XX 24.

De afwijkingen van het gemiddelde van YY kunnen worden opgesplitst in twee componenten: toevallige afwijkingen (residuen) en verklaarde afwijkingen die door de regressielijn worden verklaard 22.

1.4 Variatie en de determinatiecoëfficiënt (R²)

De totale variatie in YY (SSTtotalSST_{total}) kan worden opgesplitst in twee delen 23:

  • Regression Sum of Squares (SSRSSR): Het deel van de variatie in YY dat verklaard wordt door XX. Dit deel wordt groter naarmate YY-waarden beter voorspeld worden die significant afwijken van het gemiddelde van YY. Zonder informatie is de beste voorspelling het rekenkundig gemiddelde van YY 23. SSR=∑i=1n(y^i−Yˉ)2SSR = \sum_{i=1}^{n} (\hat{y}_i - \bar{Y})^2
  • Residual Sum of Squares (SSESSE): De foutenvariatie, die aangeeft in hoeverre de voorspelde waarden van YY afwijken van de geobserveerde waarden van YY 23. SSE=∑i=1n(yi−y^i)2SSE = \sum_{i=1}^{n} (y_i - \hat{y}_i)^2

De totale variatie in YY is de som van deze twee delen: SSTtotal=∑i=1n(yi−Yˉ)2SST_{total} = \sum_{i=1}^{n} (y_i - \bar{Y})^2 En geldt: SSTtotal=SSR+SSESST_{total} = SSR + SSE

De determinatiecoëfficiënt (R2R^2) is een maat voor de kwaliteit van de regressievoorspelling en wordt berekend als de verhouding van de verklaarde variatie tot de totale variatie 23: R2=SSRSSTtotal=1−SSESSTtotalR^2 = \frac{SSR}{SST_{total}} = 1 - \frac{SSE}{SST_{total}} Het vertegenwoordigt de proportionele reductie in de voorspellingsfout door gebruik te maken van de regressielijn. R2R^2 geeft de proportie van de totale variatie in YY weer die door XX wordt verklaard. De waarden van R2R^2 liggen tussen 0 en 1 23.

Cover

samenvatting statistiek (1).pdf

Types of research and variables

This section outlines the fundamental types of research designs and the classification of variables crucial for scientific inquiry.

1. Types of research and variables

1.1 Research designs

Medical and epidemiological research can be broadly categorized into observational and experimental studies 1.

1.1.1 Observational research

In observational research, researchers observe participants and collect measurements without actively influencing them. The goal is to identify relationships between different measurements 1.

  • Case-control study: This design compares a group with a specific condition or disease (cases) to a similar group without the condition (controls). The comparison focuses on potential causes, making it inherently retrospective as the causes of a condition are typically in the past 1.
  • Cohort study: A cohort refers to a group of patients being observed. Cohort studies can be classified based on their timeframe 1:
  • Retrospective: Looking back in time 1.
  • Transversal/Cross-sectional: Data collected during the research period 2.
  • Prospective: Looking into the future 1.

1.1.2 Experimental research

In experimental research, participants are influenced by an intervention, and the aim is to measure the effect of this intervention. These studies are always prospective cohort studies. Typically, participants are divided into two groups: one receiving the intervention and a control group that does not 1.

Tip: Applied statistics involves analyzing data to answer a scientific question. Data are observations where variables are measured. Researchers often use a sample from a target population to make inferences about that population 1.

1.2 Variables

Variables are characteristics of a population that can vary 1.

1.2.1 Outcome variable

The outcome variable is the primary variable the researcher aims to make a statement about. It is also known as the dependent variable, and researchers seek to predict or explain it. Outcome variables are usually continuous or dichotomous 2.

1.2.2 Independent variables

Independent variables are all other variables in a study, serving as determinants, explanatory variables, predictors, or covariates 2.

1.2.3 Categorical variables

Categorical variables have a limited number of distinct outcomes 2.

  • Nominal: Categories are not ordered. Examples include blood type or occupation 2.
  • Ordinal: Categories are ordered based on a degree or rank. An example is asking about the extent of depressive feelings on a scale from "low" to "high" 2.
  • Dichotomous: Variables with only two possible outcomes 2.
  • Dummy coding: A form of dichotomous variable where categories are coded as 1 or 0, for instance, coding gender 2.

1.2.4 Numerical variables

Numerical variables are those that can be used in calculations 2.

  • Discrete: These variables take on whole numbers. An example is the number of times a person visited the doctor in a year 2.
  • Continuous: These variables can theoretically take on an infinite number of values within a range. Examples include weight and height 2.
  • Interval scale: The distance between any two points is the same. Weight in kilograms is an example 2.
  • Ratio scale: These scales have a true, natural zero point, indicating the absence of the measured quantity. For example, 0 kilograms represents the absence of weight, whereas 0 degrees Celsius does not represent the absence of temperature 2.

1.3 Types of statistics

Statistics are broadly divided into two main types:

  • Descriptive statistics: This is the initial phase of research, focusing on summarizing data clearly through graphical or numerical representations without exploring relationships between variables. It directly answers the research question 2.
  • Explanatory/Inferential statistics: This second stage involves estimating effects or relationships, testing hypotheses, and assessing the reliability of research findings. It includes formulating research questions and testing hypotheses 2.

Descriptive statistics: data representation and summary measures

Descriptive statistics are used to summarize and visualize data through graphical and numerical representations, providing an overview of the dataset without analyzing relationships between variables 2 3.

2.1 Graphical data representation

Graphical representations help visualize data distribution and patterns 3.

  • Bar chart (staafdiagram): Used for categorical variables 3.
  • Clustered/segmented bar chart (geclusterd/gesegmenteerd staafdiagram): Useful for comparing two categor
Cover

SAMPLE Space and events (4).pptx

Table of contents

  1. Topic 5: Probability Overview
  2. Probability
  3. Sample space
  4. Example

1. Topic 5: Probability Overview

1.1 Sample space and events

The sample space is the set of all possible outcomes of an experiment. An event is a specific outcome or a set of outcomes within the sample space.

1.2 Theoretical probability

Theoretical probability is the ratio of the number of favorable outcomes to the total number of possible outcomes. It is calculated based on logical reasoning and the assumption that all outcomes are equally likely.

The formula for theoretical probability is: P(event)=Number of favorable outcomesTotal number of possible outcomesP(\text{event}) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}

1.3 Hook starter

When a coin is tossed once, the possible outcomes are getting a head (H) or getting a tail (T).

  • The probability of getting a head is P(H)=12P(H) = \frac{1}{2}.
  • The probability of getting a tail is P(T)=12P(T) = \frac{1}{2}.
  • The probability of getting a dog is P(Dog)=0P(\text{Dog}) = 0, as it is not a possible outcome.

📝 If you roll a standard six-sided die, the sample space is {1, 2, 3, 4, 5, 6}. The event of rolling an even number has 3 favorable outcomes (2, 4, 6). Therefore, the theoretical probability of rolling an even number is 36=12\frac{3}{6} = \frac{1}{2}.

2. Probability

2.1 Definition of probability

Probability measures the chance or likelihood that a specific event will happen. The value of any probability is always between 0 and 1, inclusive.

  • Impossible event: An event with a 0% chance of occurring has a probability of 0.
  • Certain event: An event with a 100% chance of occurring has a probability of 1.

📝 If you flip a fair coin, the probability of it landing on its edge is extremely low, close to 0. The probability of it landing on either heads or tails is 1, as one of those outcomes is certain.

3. Sample space

3.1 Definition of sample space

The sample space of an experiment is the set of all its possible outcomes. This means it includes every single result that could happen.

3.2 Representing sample spaces

Sample spaces can be shown in several ways to make them easier to understand. These methods help visualize all the potential results of an experiment.

  • Lists
  • Two-dimensional grids
  • Tree diagrams

3.3 Example: Rolling a die

When you roll a standard six-sided die, there are six possible outcomes. Each face of the die represents one possible result.

📝 The possible outcomes when rolling a six-sided die are 1, 2, 3, 4, 5, and 6. This set of numbers forms the sample space for this experiment.

4. Example

4.1 Events

An event is a collection of outcomes from the sample space that share a specific characteristic. For instance, if we consider rolling a die, the event "rolling a number greater than 4" includes the outcomes 5 and 6.

4.2 Complementary events

A complementary event, also known as the complement of an event, includes all outcomes from the sample space that are not in the original event. If event A is "rolling a number greater than 4," its complement (let's call it event D) would be "rolling a number that is not greater than 4," which includes outcomes 1, 2, 3, 4.

4.3 Coin toss outcomes

When tossing two coins, there are four possible outcomes. These outcomes represent the sample space for this experiment.

Illustrations of the possible outcomes when tossing two coins, showing two heads, head and tail, tail and head, and two tails.

The possible outcomes are:

  • Two heads (HH)
  • Head and tail (HT)
  • Tail and head (TH)
  • Two tails (TT)

4.4 Example: Drawing marbles

Consider drawing two marbles from a bag containing red, green, and yellow marbles. Let event E be the event that at least one red marble is drawn.

To illustrate the sample space, a tree diagram can be used. This diagram visually maps out all possible sequences of draws.

The outcomes corresponding to event E, where at least one red marble is drawn, would be highlighted on this diagram.

Using set notation, the outcomes in event E can be listed. For example, if the bag contained marbles R, G, Y, and we draw two, outcomes like (R, G), (R, Y), (G, R), (Y, R) would be part of event E.

4.5 Think-Pair-Share Activity

This activity likely involves students considering a set of numbers, possibly related to probability or data analysis, and working through a problem in stages. The numbers provided (1, 2, 2, 3, 3, 4, 4, 5) might represent data points or possible outcomes in a scenario.

4.6 Questions

The document refers to exercises from "Ex 19A Page 310" and "Ext Q4, Q5, Q6." These questions likely test understanding of concepts related to probability, sample spaces, ev