Author: Levente L. Orbán
doi: 10.69642/4593
This lecture introduces fundamental statistical concepts related to probability, effect size, and hypothesis testing. We explore the role of probability in inferential statistics, discuss the trade-offs between Type I and Type II errors, and demonstrate calculations using R programming. The importance of effect size in interpreting statistical significance is also highlighted. This document refines and expands upon the original lecture transcript to enhance coherence and depth.
Probability and inferential statistics provide the foundation for hypothesis testing, enabling researchers to draw conclusions from sample data about broader populations. This lecture covers fundamental probability principles, the logic of hypothesis testing, and effect size measurements. These topics form the backbone of scientific research, particularly in psychology and related disciplines.
Probability quantifies uncertainty and forms the basis for statistical inference. It is defined as:
P(A) = Number of favorable outcomes / Total number of possible outcomes
Consider a simple example: a bag contains 10 marbles, 6 white and 4 black. The probability of drawing a black marble is:
P(Black) = 4/10 = 0.4
Statistical conclusions are most reliable when based on random sampling, which ensures every individual has an equal chance of selection. Independent sampling requires that the probability of selecting any given individual remains constant throughout the study. Failure to meet these conditions can introduce bias.
set.seed(42)
marbles <- sample(c("White", "Black"), size=10, replace=TRUE, prob=c(0.6, 0.4))
table(marbles)
When conducting hypothesis tests, two types of errors can occur:
The probability of making a Type I error is controlled by the significance level (α), commonly set at 0.05. Lowering α reduces false positives but increases false negatives.
Significance tests tell us whether an effect exists, but effect size quantifies the magnitude of the difference. Cohen's d is defined as:
d = (M1 - M2) / s
where M1 and M2 are the sample means, and s is the pooled standard deviation.
young <- c(2.3, 2.5, 2.1, 2.6, 2.4)
old <- c(2.1, 2.2, 2.0, 2.3, 2.1)
mean_young <- mean(young)
mean_old <- mean(old)
sd_pooled <- sqrt((var(young) + var(old)) / 2)
d <- (mean_young - mean_old) / sd_pooled
d
A higher d value indicates a stronger effect. Generally, d = 0.2 is considered small, d = 0.5 medium, and d = 0.8 large.
This lecture covered key statistical principles, including probability, hypothesis testing errors, and effect size. Understanding these concepts is crucial for interpreting experimental results. By integrating probability theory and effect size measures, researchers can improve the robustness of their statistical conclusions.