Probability Statistics

Cover

Course Reader(BUS132) .pdf

📚 Course Reader(BUS132) .pdf

Brief overview

This document provides a comprehensive guide to fundamental statistical concepts and methods essential for data analysis. Mastering these topics will equip you with the tools to understand, interpret, and draw meaningful conclusions from data in various contexts.

Key points

  • Overview of statistical formulas and definitions across multiple parts.
  • Methods for data representation and descriptive statistics.
  • Core probability concepts and calculation techniques.
  • Understanding random variables and their common distributions.
  • Principles of statistical inference, including estimation and hypothesis testing.

1. Statistical formulas and definitions (part 1)

1.1 Core statistical concepts

  • Population: The complete set of all items of interest. It can be finite (fixed size) or infinite (no limits).

    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> All the leaves on a tree is a finite population.
    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> The particles in the universe represent an infinite population.
  • Parameter: A numerical value that describes a characteristic of a population. Usually denoted by Greek letters (e.g., μ\mu, σ\sigma, σ2\sigma^2).

  • Sample: A subset of data drawn from a population.

  • Sample statistic: A numerical value that describes a characteristic of a sample. Usually denoted by lowercase Roman letters (e.g., xˉ\bar{x}, ss, s2s^2). Sample statistics are used to infer properties about population parameters.

    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> If the lotto population is 49 numbers, the six drawn numbers are a sample. The maximum number in the population is a parameter ($\alpha = 49$), while the maximum in the sample (e.g., 42) is a statistic ($a = 42$). .

1.2 Purpose of statistics

Statistics is divided into two main branches:

  • Descriptive statistics: Involves collecting, organizing, summarizing, and presenting data. This includes using graphs, tables, and numerical measures to describe population characteristics and distinguish between parameters and statistics.

    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> The sample proportion of vaccinated people, $\hat{p} = X/n$, estimates the population proportion, $P$.
  • Inferential statistics: Uses sample data to make estimates, predictions, or decisions about a population. This process involves measures of reliability like confidence levels and significance levels.

    • > <span style="color: #ff9f29; font-weight: 700;">🔑 Important:</span> Conclusions drawn from samples are not always correct; reliability measures are crucial.
    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> A pharmaceutical company samples drug tablets to estimate the average weight ($\mu$) of a large production batch (50,000 tablets) because weighing every tablet is impractical.

1.3 Basic definitions and variables

  • Variable: A characteristic that takes on different values for different individuals or objects. It is typically denoted by a capital letter (e.g., XX, YY, ZZ).
  • Values: All possible observations of a variable.
  • Data: The observed values of a variable. Data collected randomly are called data of a random variable.
    • Actual observations are usually denoted by corresponding lowercase letters (e.g., x1x_1, xix_i).

Subscripts: Used to identify specific values in a dataset, often representing position or order.

Row/ColumnColumn 1Column 2Column 3
Row 1x11x_{11}x12x_{12}x13x_{13}
Row 2x21x_{21}x22x_{22}x23x_{23}
Row 3x31x_{31}x32x_{32}x33x_{33}
*   `> <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> $x_{23}$ is the value in the second row and third column.`
  • Discrete random variable (RV): A variable that can only assume a specific, distinct set of values. Data from a discrete variable are discrete data.
    • > <span style="color: #ff9f29; font-weight: 700;">📝 Example:</span> The number of children in a family (0, 1, 2, etc.) is discrete; a family cannot have 2.6 children.
    • `> 📝 Example:
Cover

CS1A00731.pdf

📚 CS1A00731.pdf

Brief overview

This document provides a comprehensive overview of statistical inference and modeling techniques. It covers fundamental concepts in Bayesian statistics, linear regression, categorical data analysis, and correlation, offering practical applications and interpretation guidelines for various analytical scenarios.

Key points

  • Overview of Bayesian inference, including posterior distributions and parameter estimation.
  • Detailed exploration of simple linear regression, hypothesis testing, and confidence intervals.
  • Statistical modeling with categorical variables, interaction effects, and error types.
  • Correlation analysis, including Pearson's and Kendall's tau coefficients, and outlier impact.

1. Bayesian inference and posterior distributions

1.1 Derivation of the posterior distribution

  • Likelihood function: For a Poisson process with rate parameter λ\lambda, where time between successive events TT follows an Exponential distribution with parameter λ\lambda, the likelihood of observing nn events with observed times t1,…,tnt_1, \dots, t_n is given by: L(λ)=∏i=1nλe−λti=λne−λ∑i=1ntiL(\lambda) = \prod_{i=1}^{n} \lambda e^{-\lambda t_i} = \lambda^n e^{-\lambda \sum_{i=1}^{n} t_i}.

  • Posterior distribution: The posterior distribution for λ\lambda is proportional to the product of the likelihood and the prior distribution. Given a Gamma prior distribution λ∼Gamma(α,β)\lambda \sim \text{Gamma}(\alpha, \beta), the posterior distribution is: λpost∝L(λ)×λprior\lambda_{\text{post}} \propto L(\lambda) \times \lambda_{\text{prior}} λpost=λne−λ∑ti×λα−1e−βλβαΓ(α)\lambda_{\text{post}} = \lambda^n e^{-\lambda \sum t_i} \times \frac{\lambda^{\alpha-1} e^{-\beta \lambda} \beta^\alpha}{\Gamma(\alpha)} λpost∝λn+α−1e−(β+∑ti)λ\lambda_{\text{post}} \propto \lambda^{n+\alpha-1} e^{-(\beta + \sum t_i) \lambda} This results in a posterior distribution that is also Gamma distributed: λpost∼Gamma(n+α,β+∑i=1nti)\lambda_{\text{post}} \sim \text{Gamma}(n+\alpha, \beta + \sum_{i=1}^{n} t_i) 1.

1.2 Bayesian estimation under different loss functions

  • Quadratic loss: The Bayesian estimate under quadratic loss is the expected value of the posterior distribution. For a Gamma posterior Gamma(n+α,β+∑ti)\text{Gamma}(n+\alpha, \beta + \sum t_i), the mean is: E(λpost)=n+αβ+∑i=1ntiE(\lambda_{\text{post}}) = \frac{n+\alpha}{\beta + \sum_{i=1}^{n} t_i}.

  • All-or-nothing loss: The Bayesian estimate under an all-or-nothing loss function is the mode of the posterior distribution. This corresponds to the value of λ\lambda that maximizes the posterior probability density function.

  • Absolute error loss: The Bayesian estimate under absolute error loss is the median of the posterior distribution. This is the value that divides the posterior probability density into two equal halves.

🔑 Important: The Gamma prior is conjugate to the Poisson likelihood, meaning the posterior distribution belongs to the same family as the prior. This simplifies calculations considerably.

1.3 Methods of moments and distribution fitting

  • Methods of moments (MoM): This method estimates distribution parameters by equating sample moments to theoretical moments. For a Poisson distribution, the mean (μ\mu) and variance are both equal to λ\lambda.

  • Sample mean: Xˉ=∑i=1nfixi∑fi\bar{X} = \frac{\sum_{i=1}^{n} f_i x_i}{\sum f_i}

  • Estimated parameter: λ^=Xˉ\hat{\lambda} = \bar{X}.

  • Sample statistics: Calculating sample statistics is a precursor to parameter estimation and model evaluation.

  • Sample mean (Xˉ\bar{X}): 0.632 (for observed frequencies)

  • Sample variance: 8.618 (for observed frequencies) 2.

🔑 Important: A fundamental assumption of the Poisson distribution is that its mean equals its variance (λ\lambda). Significant divergence between the sample mean and sample variance suggests the Poisson model may not be an appropriate fit for the data.

1.4 Non-parametric bootstrapping for expected values

  • Bootstrapping: Non-parametric bootstrapping is a resampling technique used to estimate the distribution of sample statistics or to generate expected values without assuming a specific parametric form for the underlying distribution. It involves repeatedly drawing samples with replacement from the observed data.

  • Estimated expected values from bootstrap

Cover

cursus statistiek 2VD 2025.pdf

1. Inleiding en de onderzoeksfasen

Dit deel van de studiehandleiding introduceert de centrale rol van statistiek in onderzoek en beschrijft de opeenvolgende vijf fasen die bij een wetenschappelijk onderzoek doorlopen worden.

1.1 Rol van statistiek in onderzoek

Statistiek is geen doel op zich, maar een onmisbaar hulpmiddel bij het uitvoeren van onderzoek, met name voor het weergeven, verwerken en analyseren van verkregen gegevens. Het stelt onderzoekers ook in staat om de zekerheid over hun bevindingen aan te geven6.

De cursus heeft als doel studenten de statistische achtergrond te geven die nodig is voor diverse vakken en hun toekomstige beroepsleven, zoals bij het uitvoeren van een bachelorproef of bij de interpretatie van voedingsonderzoek 2.

1.2 De vijf fasen van een onderzoek

In nagenoeg elk onderzoek worden vijf opeenvolgende fasen onderscheiden, hoewel de mate van uitwerking per fase kan verschillen.

De vijf fasen zijn:

  1. De definitiefase: oriëntatie op het probleem, inclusief de aanleiding, probleemstelling (onderzoeksvraag) en het doel van het onderzoek.
  2. De ontwerpfase: het bedenken en uitwerken van de onderzoeksopzet, inclusief de onderzoeksmethode en de manier van informatieverkrijging. Inzicht in statistiek is hier praktisch om ervoor te zorgen dat conclusies achteraf statistisch onderbouwd kunnen worden.
  3. De uitvoeringsfase: het actief verzamelen, meten en registreren van de informatie. Voorbereidend werk kan een pilot-onderzoek omvatten. Statistiek speelt hierin nauwelijks een rol, behalve bij de steekproefname.
  4. De verwerkingsfase: het combineren, analyseren van de gevonden gegevens, het nagaan van verbanden en het trekken van conclusies om de probleemstelling op te lossen.
  5. De rapportagefase: het duidelijk rapporteren van de bevindingen; dit proces start vaak al bij de start van het onderzoek 7.

Tip: Het is cruciaal om voldoende tijd en aandacht te besteden aan de ontwerpfase, aangezien een gebrekkig ontwerp kan leiden tot onbetrouwbare of foutieve conclusies tijdens de verwerkingsfase.

1.3 Detailanalyse van de fasen

1.4 De definitiefase

Deze fase is bepalend voor het gehele onderzoek. De centrale vraag (onderzoeksvraag/probleemstelling) moet nauwkeurig geformuleerd en afgebakend worden. Indien nodig, kan deze centrale vraag worden uitgesplitst in heldere deelvragen, waarbij alle gebruikte begrippen eenduidig beschreven moeten zijn.

1.5 De ontwerpfase

De ontwerpfase resulteert in het materiaal dat nodig is voor de feitelijke uitvoering. Op basis van de probleemstelling wordt een onderzoekstype gekozen.

Soorten onderzoek:

  • Beschrijvend onderzoek: Gericht op het beschrijven van eigenschappen. De probleemstelling begint vaak met ‘hoeveel’.
  • Toetsend onderzoek: Er zijn theorieën of hypothesen over verbanden tussen variabelen die gecontroleerd worden. De onderzoeksvraag is vaak concreet 8.
  • Exploratief onderzoek: Gebruikt wanneer de theorie nog onbekend is. Het doel is het formuleren of ontwikkelen van theorieën of hypothesen. Probleemstellingen zijn vaak open.

Basisvormen voor het verkrijgen van gegevens:

  • Experiment: De onderzoeker definieert de onafhankelijke variabele om het effect op de afhankelijke variabele na te gaan.
  • Enquête: Gericht op het vergaren van informatie over diverse eigenschappen van vaak omvangrijke onderzoeksonderwerpen. Statistiek wordt gebruikt om deze informatie weer te geven en te beschrijven.
  • Gevalsstudie: Alles wordt nagegaan voor een vrij beperkt onderwerp of ‘geval’, vaak gebruikt in sociaal onderzoek.
  • Literatuurstudie: Gebruikmaken van bevindingen van anderen 9.

Populatie en steekproef:

  • Populatie: De gehele groep elementen die onderzocht zou kunnen worden (bijv. alle Belgen in een volkstelling).
  • Steekproef: Een deelverzameling van de populatie. Redenen om een steekproef te gebruiken zijn tijd- en kostenefficiëntie, of het simpelweg onmogelijk maken om de gehele populatie te onderzoeken (zoals bij duurzaamheidstests van gloeilampen).
  • Representativiteit: Een voorwaarde voor een betrouwbare steekproef; dit wordt het meest gegarandeerd door een aserlecte keuze, waarbij elk element evenveel kans heeft om in de steekproef terecht te komen.
Cover

CV-Shape+parameters.pdf

Table of contents

  1. The coefficient of variation
  2. The median absolute deviation
  3. The standard error
  4. Standard deviation versus standard error
  5. Choosing a measure of dispersion
  6. Shape parameters
  7. Skewness measures distributional asymmetry
  8. Estimating skewness in a sample
  9. Pharmacy example: drug exposure is often right-skewed
  10. Medical examples of skewness
  11. Kurtosis describes tail heaviness
  12. Medical example: rare extreme biomarker values
  13. How should shape parameters be used?

1. The coefficient of variation

1.1 Definition and formula

The coefficient of variation (CV) is a statistical measure that quantifies the relative variability of data. It expresses the standard deviation as a percentage of the mean, providing a standardized way to compare the dispersion of datasets.

  • Coefficient of variation (CV): it is calculated as the ratio of the standard deviation to the mean, multiplied by 100% to express it as a percentage. CV=sxˉ×100%\text{CV} = \frac{s}{\bar{x}} \times 100\% 1.

1.2 Example calculation

This example demonstrates how to calculate the coefficient of variation for a given set of data.

  • Plasma concentration example: If the mean plasma concentration (xˉ\bar{x}) is 50 mg/L and the standard deviation (ss) is 10 mg/L, the CV is calculated as follows: CV=10 mg/L50 mg/L×100%=20%\text{CV} = \frac{10 \text{ mg/L}}{50 \text{ mg/L}} \times 100\% = 20\% 1.

📝 For a mean plasma concentration of 50 mg/L and a standard deviation of 10 mg/L, the coefficient of variation is 20%.

1.3 Use of the coefficient of variation

The CV is a valuable tool for comparing the variability of different datasets, especially when their means or units of measurement differ.

  • Comparing variability: The CV is used to compare the variability between variables that are measured in different units or that have substantially different means 1.

1.4 Caution regarding the coefficient of variation

While useful, the CV has limitations and is not always appropriate for all types of data.

  • Meaningfulness: The CV is primarily meaningful for ratio-scale variables that have a strictly positive mean.
  • Instability: The CV becomes unstable and less reliable when the mean of the data is close to zero 1.

2. The median absolute deviation

2.1 Definition of median absolute deviation

The median absolute deviation (MAD) is a measure of statistical dispersion. It is calculated as the median of the absolute deviations from the data's median.

This measure is considered robust because it is less affected by outliers compared to other dispersion measures like the standard deviation 2.

  • Median absolute deviation (MAD): calculated as MAD=mediani(∣xi−Me∣)MAD = \text{median}_i (|x_i - \text{Me}|), where xix_i represents individual data points and Me\text{Me} is the median of the dataset 2.

2.2 Normal-consistent version of MAD

For comparing the MAD with the standard deviation when the data is assumed to be normally distributed, a normal-consistent version is used. This adjusted value allows for a more direct comparison of dispersion under the assumption of normality 2.

  • Normal-consistent MAD (MADN): calculated as MADN=1.4826×MADMADN = 1.4826 \times MAD. This factor of 1.4826 scales the MAD to be comparable to the standard deviation for normally distributed data 2.

📝 For normally distributed data, the normal-consistent MAD (MADN) is calculated as MADN=1.4826×MADMADN = 1.4826 \times MAD, allowing for direct comparison with the standard deviation 2.

2.3 Advantage of MAD

The primary advantage of using the median absolute deviation is its robustness against extreme values in a dataset. Unlike measures that rely on the mean or squared deviations, the MAD is only weakly affected by outliers 2.

  • Robustness: The MAD is a robust measure of dispersion because both the median and the absolute deviations are only weakly affected by extreme observations 2.

3. The standard error

3.1 Standard error of the mean

The standard error quantifies the variability of an estimator across different samples, distinguishing it from the dispersion of individual observations within a single sample. It is a crucial measure for understanding how precisely an estimate reflects the true population parameter 3.

The standard error of the mean (SE) is calculated differently depending on whether the population standard deviation is known or needs to be estimated.

  • When population standard deviation (σ\sigma) is known: The formula for the standard error of the mean is: SE(Xˉ)=σnSE(\bar{X}) = \frac{\sigma}{\sqrt{n}} where σ\sigma is the population standard deviation and nn is the sample size 3.

  • When population standard deviation (σ\sigma) is estimated by sample standard deviation (ss): In most practical scenarios, the population standard deviation is unknown and

Cover

Daniel- Biostatistics.pdf

1. Introduction to biostatistics and basic concepts (part 1)

This section of the study guide introduces the foundational statistical concepts, terminology, and the integral role of biostatistics within health sciences research, laying the groundwork for subsequent statistical analysis and inference.

1.1 Introduction to biostatistics

Biostatistics is a discipline concerned with the collection, organization, summarization, and analysis of data, as well as the drawing of inferences about a body of data from observing only a part of it. This field is crucial for health sciences, providing the tools to understand and interpret information derived from studies and experiments. The core objectives of studying biostatistics include learning to organize and summarize data (descriptive statistics) and making decisions about large datasets by examining smaller subsets (inferential statistics). Data, in this context, are numbers obtained from measurements or counts.

1.2 Some basic concepts

The study of statistics involves learning new terminology and understanding specialized meanings of familiar words. Key terms include:

  • Data: The raw material of statistics, defined as numbers. These numbers can arise from measurements (e.g., patient weight) or counts (e.g., number of patients discharged).
  • Statistics: A field of study encompassing the collection, organization, summarization, and analysis of data. It also involves the process of drawing inferences about a larger dataset based on a smaller observed portion. Statisticians are responsible for interpreting and communicating these findings.

Note: The information within data holds meaning, and biostatistics is the discipline dedicated to investigating and evaluating the nature and significance of this information 20.

1.3 Measurement and measurement scales

Understanding different types of variables and how they are measured is fundamental in biostatistics. This involves classifying data based on the nature of the measurements and the scales used.

  • Variables: Characteristics or attributes that can take on different values.
  • Measurement Scales: The levels at which variables can be measured. These scales dictate the types of statistical analyses that can be performed. The primary measurement scales include:
    • Nominal Scale: Categorical data where categories have no inherent order (e.g., blood types: A, B, AB, O; or gender: Male, Female).
    • Ordinal Scale: Categorical data where categories have a meaningful order or rank, but the distances between categories are not necessarily equal or quantifiable (e.g., disease severity: mild, moderate, severe; or patient satisfaction: poor, fair, good, excellent).
    • Interval Scale: Numerical data where the order is meaningful, and the differences between consecutive values are equal and quantifiable. However, there is no true zero point, meaning ratios are not meaningful (e.g., temperature in Celsius or Fahrenheit).
    • Ratio Scale: Numerical data that possess all the properties of interval scales, plus a true zero point. This allows for meaningful ratios between values (e.g., height, weight, age, number of patients).

Important: The choice of measurement scale is critical as it determines the appropriate statistical methods for analysis. Ratio scale data offer the most flexibility for statistical analysis.

1.4 Sampling and statistical inference

A significant objective in biostatistics is to draw conclusions about a large group (population) by studying a smaller, representative subset (sample).

  • Population: The entire group of individuals, objects, or measurements that we are interested in studying.
  • Sample: A subset of the population from which data are collected.
  • Sampling: The process of selecting a sample from a population.
  • Statistical Inference: The process of using data from a sample to make generalizations or draw conclusions about the characteristics of the population from which the sample was drawn.
Cover

Data_AnalCh5.pdf

Table of contents

  1. Chapter 5: Regression Analyses with Excel
  2. Multiple Linear Regressions
  3. Model Diagnostic and Goodness-of-Fit
  4. Regressions with Qualitative Variables
  5. Non-linear Regressions
  6. Quiz CFA
  7. per month of each feature of the dwelling.
  8. Exercice 1 - UFL
  9. Exercise 2 - UFL
  10. Exercise 3 - UFL

1. Chapter 5: Regression Analyses with Excel

1.1 Introduction to regression analysis

Regression analysis is a fundamental tool for data analysts, aiming to describe and evaluate the relationship between a dependent variable and one or more independent variables. This analysis is crucial for managerial decisions that rely on understanding how variables interact 7 8.

  • Dependent variable: The variable whose variation is explained by independent variables. It is also known as the explained variable, endogenous variable, or predicted variable 11.
  • Independent variable(s): The variable(s) used to explain the variation of the dependent variable. These are also referred to as explanatory variables, exogenous variables, or predicting variables 12.
  • Notation: The dependent variable is typically denoted by yy, and independent variables by x1,x2,…,xkx_1, x_2, \dots, x_k, where kk is the number of independent variables 10.

The general form of a regression model is y=f(x1,x2,…,xk)+ϵy = f(x_1, x_2, \dots, x_k) + \epsilon, where ϵ\epsilon represents a random error term 11.

1.2 Types of regressions

Regression analysis encompasses various types, each suited for different data structures and analytical goals:

  • Simple Linear Regression: Models the relationship between two variables, one independent and one dependent, using a straight line 15.
  • Multiple Linear Regression: Examines the relationship between a dependent variable and multiple independent variables 16.
  • Regression with qualitative variables: Incorporates categorical predictors into the regression model.
  • Logistic Regression: Primarily used for binary classification problems, predicting outcomes that are typically yes/no 17.
  • Non-linear (e.g., polynomial) Regression: Extends linear regression to model relationships that are not linear, such as polynomial curves 18.

1.3 Simple linear regression model

The simple linear regression model describes the relationship between a dependent variable (yy) and a single independent variable (xx) through a linear equation, including an error term: y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon 21.

  • Parameters: β0\beta_0 and β1\beta_1 are the model parameters.
  • β0\beta_0 represents the intercept of the regression line.
  • β1\beta_1 represents the slope of the regression line 22.
  • Error term: ϵ\epsilon is a random variable representing unexplained variation 21.

The expected value of yy for a given value of xx is represented by the regression equation: E(y)=β0+β1xE(y) = \beta_0 + \beta_1 x. The graph of this equation is a straight line 22.

📝 The simple linear regression model is y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon, where β0\beta_0 is the intercept and β1\beta_1 is the slope 21.

1.4 Positive Linear Relationship

In a positive linear relationship, the slope β1\beta_1 is positive, indicating that as the independent variable increases, the dependent variable also tends to increase 23.

1.5 Negative Linear Relationship

In a negative linear relationship, the slope β1\beta_1 is negative, indicating that as the independent variable increases, the dependent variable tends to decrease 24.

1.6 No Relationship

If the slope β1\beta_1 is 0, there is no linear relationship between the variables, and the regression line is horizontal 25.

1.7 Estimated simple linear regression equation

The estimated simple linear regression equation provides a prediction of the dependent variable based on observed data: y^=b0+b1x\hat{y} = b_0 + b_1 x 26.

  • y^\hat{y} is the estimated value of yy for a given xx.
  • b1b_1 is the estimated slope of the regression line.
  • b0b_0 is the estimated intercept of the regression line 26.

The graph of this equation is called the estimated regression line 26.

Cover

Data-Analysis-and-Interpretation.pdf

📚 Data-Analysis-and-Interpretation.pdf

Brief overview

This document provides foundational knowledge and practical techniques for analyzing and interpreting data effectively. Understanding these concepts is crucial for drawing meaningful conclusions and making informed decisions from datasets. It covers essential statistical methods and data visualization strategies.

Key points

  • Overview of descriptive and inferential statistical approaches for data analysis.
  • How correlation coefficients measure variable relationships and thematic analysis identifies patterns in qualitative data.
  • Principles and selection of appropriate data presentation methods for clear communication.
  • The application of statistical measures for describing and generalizing from datasets.
  • Techniques for understanding the strength and direction of relationships between variables.

1. Descriptive statistics en Inferential statistics

1.1 Describing and inferring with data

Data analysis is used to examine collected data. It helps find meaningful conclusions about it 2.

1.2 Descriptive statistics

Descriptive statistics describe a dataset in a clear and organized way. They focus on summarizing existing data.

1.2.1 Measures of central tendency

These measures describe the typical response in a dataset. They include the mean, median, and mode.

1.2.2 Measures of dispersion

These measures show how spread out the data is. Common measures include range, standard deviation, and variance.

1.2.3 Practical uses

Descriptive statistics are useful for summarizing data, comparing datasets, and cleaning data. This prepares data for further analysis 3.

1.3 Inferential statistics

Inferential statistics are used to make generalizations about data. We can draw conclusions, make predictions, and conduct hypothesis testing.

1.3.1 Hypothesis testing examples

Common hypothesis tests include ANOVA tests, t-tests, and chi-squared tests. These are used for different research designs.

1.3.2 Understanding the p-value

Tests like ANOVA produce results such as a p-value. This indicates the probability that the null hypothesis is true.

🔑 Important: A p-value greater than 0.05 suggests the chance of the null hypothesis being true is too high to reject. A p-value less than 0.05 means we fail to reject the null hypothesis 4.

1.4 Descriptive vs. Inferential Statistics

The two main types of statistics serve different purposes. Descriptive statistics summarize data, while inferential statistics allow for broader generalizations.

Type of statisticsPurposeExample
Descriptive statisticsDescribe a snapshot of data.Measure average height of basketball players.
Inferential statisticsGeneralize findings to a larger population.Predict heights for all people based on a sample.

🔑 Important: Descriptive statistics focus on describing the data you have, while inferential statistics use that data to make educated guesses about a larger group 5.

2. Correlation coefficients en Thematic analysis

2.1 Correlation coefficients

  • Correlation coefficients measure the direction and strength of a relationship between two variables.
  • They range from -1 (perfect negative correlation) to +1 (perfect positive correlation).
  • A value of 0 indicates no correlation.
  • Correlations can reveal relationships, but they do not show causation 6.

2.1.1 Types of correlation

Here is a breakdown of the types of correlation:

Type of CorrelationDescriptionData Trend
PositiveAs one variable increases, the other also increases.Data points trend upward from left to right.
NegativeAs one variable increases, the other decreases.Data points trend downward from left to right.
No CorrelationThere is no discernible pattern between the two variables.Data points are scattered randomly.

7

2.2 Thematic analysis

  • Thematic analysis is a qualitative data analysis method.
  • It involves identifying, analyzing, and reporting themes within data.
  • The researcher reads through and codes the data.
  • Data is then refined and re-coded through repeated analysis.
  • Finally, themes are presented and reported.
Cover

Data Analysis.docx

Table of contents

  1. Lesson 1: 25/7 Data Introduction

  2. Dot plot and stem and leaf plot

  3. Grouped data

  4. Part C: Effect on the Mean

1. Lesson 1: 25/7 Data Introduction

1.1 What is data?

Data refers to facts and statistics collected together for reference or analysis. It is the raw material from which information and knowledge are derived.

Understanding data is fundamental to many fields, enabling informed decision-making and the identification of trends.

1.2 How data is collected

Data collection involves gathering information from various sources. The method chosen depends on the research question and the type of data required.

Common methods include surveys, experiments, observations, and the use of existing records.

  • Surveys: Questionnaires administered to a group of individuals to gather opinions, behaviors, or characteristics.

  • Experiments: Controlled studies where variables are manipulated to observe their effects.

  • Observations: Systematically watching and recording behaviors or phenomena in their natural setting.

  • Existing Records: Utilizing previously collected data from sources like databases, reports, or archives.

1.3 Types of data

Data can be broadly categorized into different types, each with its own characteristics and methods of analysis. These classifications help in choosing appropriate statistical techniques.

Data Type

Description

Examples

Qualitative Data

Describes qualities or characteristics that cannot be measured numerically.

Eye color, brand preference, texture

Quantitative Data

Represents quantities or amounts that can be measured numerically.

Height, temperature, number of customers

1.4 Primary and secondary data sources

The origin of data determines whether it is primary or secondary. Primary data is collected directly by the researcher for a specific purpose, while secondary data has already been collected by someone else for a different purpose.

Source Type

Description

Advantages

Disadvantages

Primary Data

Collected firsthand by the researcher.

Specific to research needs, more accurate.

Time-consuming, expensive

Secondary Data

Collected by others and available for reuse.

Quick to access, cost-effective.

May not fit research needs, potential for inaccuracies

1.5 Measures of center and spread

Statistical measures help summarize and understand the key features of a dataset. Measures of center describe the typical value, while measures of spread indicate the variability or dispersion of the data.

1.6 Mean

The mean, often called the average, is calculated by summing all values in a dataset and dividing by the number of values. It is sensitive to extreme values (outliers).

The formula for the mean is: xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n} where xˉ\bar{x} is the mean, xix_i represents each individual value, and nn is the total number of values.

📝 For the dataset {2, 4, 6, 8}, the sum is 2+4+6+8=202+4+6+8 = 20. With n=4n=4 values, the mean is 204=5\frac{20}{4} = 5.

1.7 Median

The median is the middle value in a dataset that has been ordered from least to greatest. If there is an even number of values, the median is the average of the two middle values.

The median is less affected by outliers than the mean.

Cover

DATA ANALYSIS L5.pdf

Table of contents

  1. Sampling theory / Study designs

1. Sampling theory / Study designs

1.1 Introduction

Sampling theory is a fundamental statistical discipline focused on selecting a representative subset (sample) from a larger group (population) using scientifically sound methods. The primary goal is to draw valid conclusions about the entire population based on the data gathered from this smaller sample.

This approach conserves time, resources, and effort while aiming for reliable information.

  • Population (N): The complete group of individuals or entities that are of interest in a study.
  • Sample (n): A subset of the population selected for study, intended to represent the larger group.
  • Objective of Sampling: To acquire dependable information about a population efficiently, minimizing time, cost, and effort.
  • Random Sampling: A method where every member of the population has an equal probability of being chosen, which is crucial for preventing bias.
  • Importance of Sample Size: Larger samples generally lead to more accurate and reliable estimations of population characteristics, as sampling theory demonstrates that variability decreases with increased sample size 3.

1.2 Research design questions

Effective research design is paramount for ensuring the reliability and validity of study outcomes. Key questions guide the selection of an appropriate design, focusing on the study's objectives and the nature of the data to be collected.

  • Intervention Change: Do you aim to measure alterations in a group after an intervention has been applied?
  • Treatment Comparison: Is the objective to compare the effectiveness of two or more different treatments or interventions?
  • Historical Data Comparison: Do you intend to compare current data with previously collected data or established benchmarks?
  • Relationship Assessment: Are you investigating potential associations or relationships between different variables within the study population 4?

📝 Do you want to measure alterations in a group after an intervention has been applied? 4

1.3 Types of research designs

Research designs can be broadly categorized based on the level of control, manipulation, and the temporal aspect of data collection.

  • True experimental design: Characterized by randomization of participants to groups, manipulation of an independent variable, and a control group for comparison.
  • Quasi-experimental design: Involves manipulation of an independent variable and a control element, but lacks full random assignment of participants.
  • Case studies: These designs are descriptive, interpretive, and evaluative, focusing on in-depth analysis of a single case or a small number of cases.
  • Longitudinal study: Data are collected from the same participants repeatedly over an extended period.
  • Cross-sectional study: Data are gathered from a population at a single point in time.
  • Retrospective study: This design involves looking back at existing data or past events to analyze them 5.

📝 True experimental design is characterized by randomization of participants to groups, manipulation of an independent variable, and a control group for comparison. 5

1.4 Sampling concepts 6 9

Sampling involves selecting a subset of individuals from a larger population. The methods used can be broadly classified into probability and non-probability techniques, each with distinct characteristics and applications.

Sampling bias, which occurs when the sample does not accurately represent the population, can significantly reduce the validity of study results.

CategoryMethodsDescription
Probability samplingSimple randomEvery member has an equal chance of selection.
Probability samplingSystematicSelecting every k-th item after a random start.
Probability samplingStratifiedDividing population into strata and sampling from each.
Probability samplingClusterDividing population into clusters, then sampling clusters.
Probability samplingMultistageCombining multiple probability sampling techniques.
Non-probability samplingConvenienceSelecting participants who are easiest to access.
Non-probability samplingVoluntaryParticipants self-select to join the study.
Non-probability samplingPurposiveResearcher selects participants based on specific criteria.
Non-probability samplingSnowballExisting participants recruit new participants.
Non-probability samplingQuotaFilling pre-set quotas for specific characteristics without random selection.
  • Sampling Bias: Occurs when the sample selected does not accurately reflect the characteristics of the population, leading to potentially misleading results 6.

1.5 Pr

Cover

DATA ANALYSIS L6.pdf

Table of contents

  1. Lecture 6 Sampling Designs Choosing Statistical Tests
  2. DATA (level of measurement)
  3. Samples
  4. Purpose
  5. Application Example
  6. YouTube videos
  7. THANK YOU

1. Lecture 6 Sampling Designs Choosing Statistical Tests

1.1 Bridging From Sampling to Testing

This lecture applies principles of sampling and study design to the selection of appropriate statistical tests. Key questions about group comparisons, sample relatedness, research goals, and data types guide this selection process 2.

  • Guiding questions for test selection:
  • Are we comparing groups?
  • Are the groups related (same individuals) or independent?
  • Is the goal to find a relationship or test a difference?
  • What type of data do we have (nominal, ordinal, interval, ratio) 2?

1.2 Core Sampling Designs & Their Tests

Statistical tests are chosen based on the study design, which dictates how samples are structured and measured. Common designs include paired, independent, and multiple-group designs, each associated with specific statistical tests depending on data distribution 3 4.

  • Paired (dependent) sample designs: Involve measuring the same individuals twice, often to assess change (e.g., pre/post measurements).
  • Test selection:
  • If data is normally distributed: T-test.
  • If data is not normally distributed: Wilcoxon signed-rank test.
  • Independent sample designs: Involve two separate groups being compared (e.g., Method A vs. Method B).
  • Test selection:
  • If data is normally distributed: Independent t-test.
  • If data is not normally distributed: Mann-Whitney U test.
  • Multiple groups or conditions: Used when comparing more than two groups.
  • Test selection:
  • ANOVA (if data is normally distributed).
  • Kruskal-Wallis test (if data is not normally distributed).
  • Control vs. experimental group: Compares two independent samples.
  • Test selection:
  • If the outcome is continuous and normally distributed: Independent t-test.
  • If the outcome is continuous and not normally distributed: Mann-Whitney U test.
  • If the outcome is categorical: Chi-square test 4.

📝 A nutritionist measures cholesterol levels in 20 individuals before and after a 2-week meal plan. This is a paired sample design, and if the cholesterol data is normally distributed, a paired t-test is appropriate; otherwise, a Wilcoxon signed-rank test is used 18.

1.3 Selecting the Right Statistical Test

Choosing the correct statistical test requires careful consideration of variables, data types, and the research question. A systematic approach involves asking key questions about the number of groups, sample relatedness, and data measurement level 5.

  • Decision-making process for test selection:
  • Question: How many groups?
  • Leads to: t-test, ANOVA (for 1, 2, or more groups).
  • Question: Are samples related?
  • Leads to: Paired test (if yes).
  • Question: What is the data type?
  • Leads to: Chi-square (for nominal data).
  • Leads to: Rank tests (e.g., Mann-Whitney) (for ordinal data).
  • Leads to: T-tests (for interval/ratio data with normal distribution) 5.

1.4 Choosing Test - YouTube Video and Slides

The selection of statistical tests is further elaborated through online resources, emphasizing the critical steps of identifying data measurement levels, the number of samples, and the analysis purpose 6.

  • Key steps in choosing a statistical test:
  1. Determine the level of measurement for the data being analyzed (DATA).
  2. Identify the number of samples involved (SAMPLES).
  3. Define the purpose of the analysis (PURPOSE) 6.

2. DATA (level of measurement)

2.1 Nominal Data

Nominal data is categorical, qualitative, and non-parametric. Summary values for nominal data include frequencies, proportions, and percentages.

Tests used for nominal data include tests for proportions and the Chi-square test for independence 7.

  • Characteristics of nominal data:
  • Categorical.
  • Qualitative.
  • Non-parametric.
  • Examples of nominal data:
  • Color.
  • Whether parts are affected or not.
  • Preference.
  • Nominal data summary values:
  • Frequencies.
  • Proportions.
  • Percentages.
  • Tests used for nominal data:
  • Test for proportion.
  • Difference of two proportions.
  • Chi-square test for independence 7.

A contingency table showing the distribution of preferences for sour apples between red and green apple consumers. ![This diagram illustrates different types of data levels and tests used for nominal data, with visual examples of apples repre