Probability Statistics

Cover

chap 3 moodle u.pptx

Table of contents

  1. Descriptive statistics: Tabular and graphical presentations
  2. Exploratory data analysis: Bivariate descriptive analyses
  3. Case 3: Quantitative x Qualitative
  4. Measures of Location
  5. Measures of Distribution Shape
  6. Detecting Outliers
  7. Measures of Variability
  8. Measures of Association Between Two Variables

1. Descriptive statistics: Tabular and graphical presentations

1.1 Summarizing qualitative data

This section covers methods for summarizing qualitative data, which represents categories or labels rather than numerical values. The primary tools for this are frequency distributions, bar graphs, and pie charts.

A frequency distribution is a table that organizes data by showing the count of items within distinct, non-overlapping categories. This helps reveal patterns that are not obvious from the raw data.

  • Relative frequency distribution: This table shows the proportion or fraction of the total data that falls into each category.
  • Percent frequency distribution: This table presents the relative frequency multiplied by 100, indicating the percentage of data in each category.

A bar graph is a visual representation of qualitative data. It uses bars of equal width, with their heights corresponding to the frequency, relative frequency, or percent frequency of each category.

The bars are separated to highlight that each category is distinct.

A pie chart is another graphical tool for displaying relative frequencies of qualitative data. A circle is divided into sectors, where each sector's size is proportional to the relative frequency of its corresponding category.

1.2 Holiday Inn guest ratings example

This example illustrates the creation of a frequency distribution for qualitative data using guest ratings of accommodations.

The ratings provided by 20 guests were: Below Average, Above Average, Above Average, Average, Above Average, Average, Above Average, Average, Above Average, Below Average, Poor, Excellent, Above Average, Average, Above Average, Above Average, Below Average, Poor, Above Average, Average.

RatingFrequency
Poor2
Below Average3
Average5
Above Average9
Excellent1

The total frequency is 20.

The relative and percent frequencies are calculated as follows:

RatingRelative FrequencyPercent Frequency
Poor0.1010%
Below Average0.1515%
Average0.2525%
Above Average0.4545%
Excellent0.055%
Total1.00100%

A bar graph visually represents these ratings, with bars for each category and heights indicating their frequency.

Distribution of the Moroccan population by age groups in thousands in 2019.

A pie chart further illustrates the distribution of ratings, showing the proportion of each rating category as a sector of a circle. For instance, "Above Average" accounts for 45% of the ratings.

1.3 Ring charts

Ring charts are an alternative graphical presentation for qualitative variables, similar in concept to pie charts but with a hole in the center.

1.4 Univariate descriptive analysis with Excel

Excel can be used for univariate descriptive analysis. For qualitative variables, pivot tables can be created by dragging the variable into the 'Rows' area and its count into the 'Values' area.

A pie chart can then be inserted to visualize this data.

1.5 Summarizing quantitative data

This section focuses on methods for summarizing quantitative data, which involves numerical values. The techniques include frequency distributions, histograms, and cumulative distributions.

A frequency distribution for quantitative data groups numerical values into mutually exclusive and collectively exhaustive classes. This allows for a structured overview of the data's spread.

Guidelines for selecting the number of classes include using between 5 and 20 classes, with more classes generally needed for larger datasets. The class width should be chosen to adequately represent the data's variation without having too few data points per class.

A common method is to use the square root of the number of data points to estimate the number of classes.

For example, if data ranges from 10 to 90 with 40 data points, the range is 80. The square root of 40 is approximately 6.34, suggesting 6 or 7 classes. A class width of approximately 14 (80/6) would be suitable, leading to intervals like 10-24, 25-39, and so on.

1.6 Auto repair parts cost example

This example demonstrates creating a frequency distribution for the cost of parts used in 50 engine tune-ups. The costs are rounded to the nearest dollar.

If six classes are chosen for the parts costs, rang

Cover

Chapitre-1.pdf

Table of contents

  1. Combinatorial Analysis
  2. Exercises
  3. Random Experiment
  4. Event Tribe
  5. Probability
  6. Exercises
  7. Independence and Conditional Probability

1. Combinatorial Analysis

1.1 Introduction to Combinatorial Analysis

Combinatorial analysis is a branch of mathematics dedicated to counting techniques. It provides essential methods for calculating probabilities and understanding the number of possible outcomes in various scenarios 3.

1.2 The Multiplicative Principle

The multiplicative principle is used to count the total number of outcomes for experiments that can be broken down into a sequence of sub-experiments. If an experiment consists of pp steps, where the first step can be performed in n1n_1 ways, the second in n2n_2 ways, and so on, up to the last step in npn_p ways, the total number of possible outcomes is the product of the number of ways for each step 4 5.

  • The total number of results is calculated as n=∏i=1pni=n1×n2×⋯×npn = \prod_{i=1}^{p} n_i = n_1 \times n_2 \times \dots \times n_p 4 5.

1.3 Arrangements Without Repetition

Arrangements without repetition, also known as permutations of pp distinct objects chosen from a set of nn objects, involve creating ordered sequences where each object can be used only once. The number of such arrangements is denoted by AnpA^p_n or PnpP^p_n 6.

  • The formula for arrangements without repetition is Anp=n!(n−p)!A^p_n = \frac{n!}{(n-p)!}7.
  • This concept applies when selecting pp distinct items from a set of nn items and the order of selection matters 6.

📝 To find the number of possible choices of 2 elements from the set {A,B,C,D}, we calculate A42=4!(4−2)!=12A^2_4 = \frac{4!}{(4-2)!} = 12 7.

1.4 Arrangements With Repetition

Arrangements with repetition allow for the selection of objects where an object can be chosen multiple times. This corresponds to sampling with replacement and where order matters.

In this case, pp can be greater than nn 8.

  • The number of arrangements with repetition of pp objects from a set of nn is npn^p 8 9.

1.5 Permutations Without Repetition

A permutation without repetition of nn distinct elements is an ordered sequence of all nn elements. This is a special case of arrangements where p=np=n 10.

  • The number of permutations of nn objects is denoted by PnP_n or AnnA^n_n, and is calculated as Pn=n!P_n = n! 10 11.

1.6 Permutations With Repetition

When calculating permutations of a set of nn objects where some objects are identical, the total number of permutations must be adjusted. If there are kk identical objects, the number of distinct permutations is found by dividing the total permutations of nn objects by the factorial of kk 12.

  • The formula for permutations with repetition is n!k!\frac{n!}{k!}, where nn is the total number of objects and kk is the number of identical objects 12 13 14 15 16.

1.7 Combinations Without Repetition

A combination without repetition refers to selecting a subset of pp objects from a set of nn objects, where the order of selection does not matter. This is equivalent to drawing pp items simultaneously without replacement 17.

  • The number of combinations without repetition of pp objects from a set of nn is denoted by CnpC^p_n or (np)\binom{n}{p}, and is calculated as Cnp=n!p!(n−p)!C^p_n = \frac{n!}{p!(n-p)!} 17 18 19.

1.8 Combinations With Repetition

Combinations with repetition involve selecting pp objects from a set of nn elements, where repetition is allowed and the order of selection does not matter. This is equivalent to drawing with replacement and without regard to order 20.

  • The number of combinations with repetition of pp objects from a set of nn is given by Knp=Cpn+p−1=(n+p−1)!p!(n−1)!K^p_n = C^{n+p-1}_p = \frac{(n+p-1)!}{p!(n-1)!} 20.

1.9 Properties of Combinations

Combinations have several useful properties that simplify calculations and relationships 20.

  • Identity: Cn0=Cnn=1C^0_n = C^n_n = 1.
  • Complementary Property: Cnp=Cnn−pC^p_n = C^{n-p}_n.
  • Pascal's Triangle: Cnp=Cn−1p+Cn−1p−1C^p_n = C^p_{n-1} + C^{p-1}_{n-1}.
  • Binomial Theorem: (x+y)n=∑k=0nCnkxn−kyk(x+y)^n = \sum_{k=0}^{n} C^k_n x^{n-k} y^k 20.
ConceptFormulaDescription
Arrangements without repetitionAnp=n!(n−p)!A^p_n = \frac{n!}{(n-p)!}Ordered selection of pp distinct items from nn.
Arrangements with repetitionnpn^pOrdered selection of pp items from nn, with replacement.
Permutations without repetitionPn=n!P_n = n!Ordered arrangement of all nn distinct items.
Permutations with repetitionn!k1!k2!...\frac{n!}{k_1!k_2!...}Ordered arrangement of nn items with kik_i identical items of type ii.
Combinations without repetition$C^p_n = \binom{n
Cover

chapitre1. ProbabilityDistributions.pdf

Table of contents

  1. Chapter 1: Probability Distributions
  2. Common Probability Distributions
  3. Exercises

1. Chapter 1: Probability Distributions

Probability theory investigates random phenomena using the concept of a random experiment, which has a set of all possible outcomes called the sample space (Ω\Omega). When the outcomes are numerical, they are represented by a random variable 1.

1.1 Random variables

A random variable is a function that maps outcomes from the sample space (Ω\Omega) to real numbers (R\mathbb{R}). It is typically denoted by an uppercase letter, such as XX or YY 1.

  • Definition: A random variable is a real-valued function defined on a sample space.
  • Formal definition: Given a probability space (Ω,A,P)(\Omega, \mathcal{A}, P), a random variable XX is a measurable function X:(Ω,A)→(R,B)X: (\Omega, \mathcal{A}) \to (\mathbb{R}, \mathcal{B}), where B\mathcal{B} is the Borel σ\sigma-algebra on R\mathbb{R} 1.

📝 When tossing a coin, a function XX that assigns 1 to "heads" and 0 to "tails" is a random variable 1.

1.2 Discrete random variables

A discrete random variable takes a finite or countably infinite number of values, meaning its domain is a subset of natural numbers (N\mathbb{N}). For these variables, we define the set of possible values and their associated probabilities 1.

  • Definition: A random variable is discrete if it can assume a finite or countably infinite number of distinct values 1.

📝 The outcome of rolling a single die is a discrete random variable XX, with possible values X(Ω)={1,2,3,4,5,6}X(\Omega) = \{1, 2, 3, 4, 5, 6\} 1.

1.3 Continuous random variables

A continuous random variable can take any value within an interval, meaning its domain contains an interval of real numbers (R\mathbb{R}). For continuous variables, probabilities are calculated for the variable falling within a given interval, not for specific values 1 2.

  • Definition: A random variable that can assume an uncountably infinite number of values is called a continuous-type random variable 2.

📝 The waiting time TT a person spends at an automated teller is a continuous random variable, as its possible values form the interval (0,∞)(0, \infty) 2.

1.4 Probability distribution

A random variable is fully characterized by its probability distribution, which includes the set of values it can take and the probabilities assigned to each possible value P(X=x)P(X=x) 2.

Type of Random VariableKey FunctionProperties
DiscreteProbability Mass Function (pmf) P(xk)P(x_k)['P(xk)≥0P(x_k) \ge 0 for all kk', '∑k=1∞P(xk)=1\sum_{k=1}^{\infty} P(x_k) = 1']
ContinuousProbability Density Function (pdf) f(x)f(x)['f(x)≥0f(x) \ge 0 for all xx', '∫−∞+∞f(x)dx=1\int_{-\infty}^{+\infty} f(x) dx = 1']
  • Probability density function (pdf): For a continuous random variable XX, the pdf f(x)f(x) describes the relative likelihood for the random variable to take on a given value. It does not directly give the probability P(X=x)P(X=x).
  • Cumulative distribution function (cdf): For a continuous random variable XX, the cdf F(x)F(x) is defined as F(x)=P(X≤x)=∫−∞xf(u)duF(x) = P(X \le x) = \int_{-\infty}^{x} f(u) du. Where FF is differentiable, its derivative is the pdf: ddxF(x)=f(x)\frac{d}{dx}F(x) = f(x).
  • Probability mass function (pmf): For a discrete random variable XX, the pmf PP assigns to each possible value its probability 2.

📝 If the waiting time XX at a bank counter has a density function f(x)=12f(x) = \frac{1}{2} for 0≤x<10 \le x < 1 and f(x)=32x4f(x) = \frac{3}{2x^4} for x≥1x \ge 1, and f(x)=0f(x) = 0 for x<0x < 0, this is a valid density function because ∫−∞∞f(x)dx=∫0112dx+∫1∞32x4dx=1\int_{-\infty}^{\infty} f(x) dx = \int_0^1 \frac{1}{2} dx + \int_1^{\infty} \frac{3}{2x^4} dx = 1 2.

2. Common Probability Distributions

This section presents a catalog of frequently used probability distributions in statistical modeling, categorized into discrete and continuous types 3.

2.1 Discrete Distributions

Discrete distributions model random variables that can take on a finite or countably infinite number of distinct values 3.

  • Bernoulli distribution B(p): This is the simplest distribution, modeling an experiment with only two possible outcomes, typically coded as 1 (success) and 0 (failure).
  • Parameters: pp is the probability of success (outcome 1), and q=1−pq = 1-p is the probability of failure (outcome 0).
  • Use: Often used as an indicator function for a specific event 3.
PropertyValue
Probability mass function P(X=x)P(X=x)px(1−p)1−xp^x(1-p)^{1-x} for x∈{0,1}x \in \{0, 1\}
Expected value E[X]E[X]pp
Variance Var(X)Var(X)p(1−p)p(1-p)
Moment-generating function E[etX]E[e^{tX}]pet+(1−p)pe^t + (1-p)
  • Binomial distribution B(n, p): This distribution models the number of successes in nn independent
Cover

Chapitre I - Premières notions statistique discriptive.pdf

Table of contents

  1. Introduction and Basic Concepts
  2. Population, Individual, and Statistical Variable
  3. Types of Variables
  4. Frequencies and Statistical Series
  5. Grouping into Classes for Continuous Variables
  6. Statistical Surveys
  7. Graphical Representations
  8. Summary: Graphs and Series Types

1. Introduction and Basic Concepts

1.1 Objectives

At the end of this presentation, the student will be able to:

  • Understand the role of descriptive statistics.
  • Identify a population, an individual, and a characteristic.
  • Distinguish between different types of characteristics.
  • Construct a statistical table.
  • Calculate frequencies and counts.
  • Graphically represent statistical data 2 3 4 5 6 7 8.

1.2 Introduction

Taking important decisions requires reliable information. Statistics plays a crucial role in providing this information by organizing, summarizing, and interpreting data 9.

1.3 Situation: Selection at EST

The director of the EST needs to review admission applications for the first year. They have an Excel file containing the baccalaureate scores of 5000 candidates.

The challenge is to quickly present these results to the director 10 11 12.

📝 The EST director has an Excel file with the baccalaureate scores of 5000 candidates and needs to quickly present these results 10 11 12.

1.4 The Role of Descriptive Statistics

Descriptive statistics encompasses all methods used to describe, organize, summarize, and interpret a set of data. This process transforms raw data into understandable information 13 14.

1.5 Terminological Distinction

It is essential to differentiate between three commonly confused terms:

  • Statistics: This refers to the scientific and mathematical discipline itself.
  • A statistic: This is a mathematical formula or a parameter calculated from a dataset, such as a mean or a mode.
  • Statistics: This refers to the raw numerical data collected during an observation, like a list of grades or stock market indices 15 16.

📝 "Statistics" is the discipline, "a statistic" is a calculated parameter like a mean, and "statistics" are the raw numerical data, such as a list of grades 15 16.

1.6 Illustration of Concepts: Baccalaureate Results Example

Consider the EST director analyzing baccalaureate results:

  • When the director uses tables and graphs to organize the data, they are engaging in statistics.
  • An average grade of 14.5 out of 20 obtained by the students is a statistic.
  • The complete list of 5,000 grades published by the ministry constitutes statistics 17.

2. Population, Individual, and Statistical Variable

2.1 Population

A population, also known as a statistical set, is the collection of objects, references, or observations that are the subject of a statistical study. This set is denoted by Ω\Omega.

The total number of elements in this set is called the total size, often denoted by NN, where N=Card(Ω)N = \text{Card}(\Omega) 19 20.

Populations can be finite or infinite.

  • Finite population: The stock of PCs in a computer science lab.
  • Infinite population: The potential number of visitors to a startup's website 20.

2.2 Individual

An individual, or statistical unit, is any element of a statistical population Ω\Omega. It is denoted by ω\omega, where ω∈Ω\omega \in \Omega.

If the population has a finite size NN, it can be represented as a collection of distinct individuals: Ω={ω1,ω2,…,ωN}\Omega = \{\omega_1, \omega_2, \dots, \omega_N\} 21 22.

2.3 Statistical character and modality space

A statistical character is the property being studied for each individual in the population. Mathematically, it is a function, denoted by XX, defined from the fundamental set Ω\Omega to a codomain EE.

This codomain EE groups all possible responses or measurements and is called the modality space 23 24.

The function is represented as: X:Ω→EX: \Omega \to E ω↦X(ω)=x\omega \mapsto X(\omega) = x

The value x∈Ex \in E is the observed modality for the individual ω\omega 24.

2.4 Observation of the character

Consider 5000 students applying to a school. The director studies their grades.

  • Population Ω\Omega: The 5000 students.
  • Individual ω∈Ω\omega \in \Omega: Each of the 5000 students.
  • Character XX: The grade of each student.
  • Modality space EE: The set of possible grade values, e.g., E={7,4,20,0,… }E = \{7, 4, 20, 0, \dots\}. If the first student on the list (ω1\omega_1) received a grade of 8, this is formally written as X(ω1)=8X(\omega_1) = 8 25.
Cover

Chapitre n2 Introduction au Calcul de Proba EST 20262027.pdf

Table of contents

  1. Constituent Elements
  2. Calculation of P(A) in Equiprobability
  3. Conditional Probability
  4. Partition and Compound Probabilities
  5. Law of Total Probability
  6. Bayes' Theorem
  7. Independent Events
  8. End of Chapter 2

1. Constituent Elements

1.1 Random experiment

A random experiment is a procedure that can be repeated under identical conditions, with outcomes determined by chance. The set of all possible results is known, but the specific outcome cannot be predicted beforehand 3.

1.2 Sample space

The sample space, denoted by SS, is the set of all possible outcomes of a random experiment 4.

  • Dice roll: If a die is rolled, the sample space is S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}.
  • Coin toss: If a coin is tossed, the sample space is S={H,T}S = \{H, T\} (Heads or Tails) 4.

1.3 Fundamental space

A sample space is considered fundamental if each of its possible outcomes has an equal chance of occurring. When a sample space is fundamental, the situation is described as equiprobalistic 4.

  • Rolling two dice: When rolling two non-defective, balanced dice (one red 'r', one green 'v'), the sample space of pairs is S={(r,v)∣r,v∈{1,2,3,4,5,6}}S = \{(r, v) | r, v \in \{1, 2, 3, 4, 5, 6\}\}. The sample space for the sum of the dice is S′={2,3,4,5,6,7,8,9,10,11,12}S' = \{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\}. Both are fundamental spaces because each outcome has an equal probability of occurring 5.

1.4 Event

An event is defined as a subset of the sample space SS 6.

  • Rolling a die: Given the sample space S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}:
  • Event A: "Obtaining an even number" is the subset {2,4,6}\{2, 4, 6\}.
  • Event B: "Obtaining a prime number" is the subset {2,3,5}\{2, 3, 5\}.
  • Event C: "Obtaining a multiple of 3" is the subset {3,6}\{3, 6\} 6.

2. Calculation of P(A) in Equiprobability

2.1 Fundamental formula

When the sample space S consists of equally likely outcomes (equiprobability), the probability of an event A, denoted P(A), is calculated using the formula: P(A) = Number of favorable outcomes for A / Number of possible outcomes This can be expressed as: P(A)=#A#SP(A) = \frac{\#A}{\#S} 7.

For example, if the sample space is S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\} and the event A is "Obtaining an even number," then A={2,4,6}A = \{2, 4, 6\}. If the die is fair (equiprobable), the probability of event A is: P(A)=#A#S=36=0.5P(A) = \frac{\#A}{\#S} = \frac{3}{6} = 0.5 7.

2.2 Application examples

  1. Ticket probability: A hat contains 200 tickets, 15 of which are for M.E. students. The probability of drawing one of these tickets is calculated as the number of M.E. tickets divided by the total number of tickets.
  2. Family composition probability: In a family with 3 children, the probability that the eldest is a boy and the two younger are girls is determined by the number of favorable birth order combinations divided by the total possible combinations.
  3. Family composition probability (alternative): The probability of a family with 3 children having exactly 1 boy and 2 girls is found by counting the specific arrangements of boys and girls and dividing by the total possible arrangements 8.

2.3 Definitions and properties

Definitions are provided for key event types:

  • An impossible event is one with a probability of 0.
  • A certain event is one with a probability of 1.
  • Disjoint (incompatible) events A and B are those that cannot occur simultaneously, meaning their intersection is the empty set (A∩B=∅A \cap B = \emptyset) 9.

The empty set (∅\emptyset) represents an impossible event, while the entire sample space (S) represents a certain event 9.

Properties of the probability calculation formula include:

  • For any event A, 0≤P(A)≤10 \le P(A) \le 1.
  • P(∅)=0P(\emptyset) = 0 and P(S)=1P(S) = 1.
  • If events A and B are disjoint (A∩B=∅A \cap B = \emptyset), then P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B) 9.

2.4 Theorems of probability 10

Several theorems extend the basic probability calculations:

TheoremFormulaDescription
Theorem 1P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A)The probability of the complement of an event A (event A not occurring) is 1 minus the probability of event A.
Theorem 2P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)The probability of the union of two events A and B (either A or B or both occurring) is the sum of their individual probabilities minus the probability of their intersection.
Theorem 3P(A∖B)=P(A)−P(A∩B)P(A \setminus B) = P(A) - P(A \cap B)The probability of event A occurring but not event B is the probability of A minus the probability of the intersection of A and B.

3. Conditional Probability

3.1 Definition and notation

Conditional probability, denoted as P(B∣A)P(B|A), represents the probability of event B occurring given that event A has already occurred. This concept is fundamental when analyzing the likeliho

Cover

Chapter-10-Inference from Small Samples.pdf

1. Student's t-distribution and its properties

The Student's t-distribution is a probability distribution that arises in statistical inference when estimating the mean of a normally distributed population with an unknown variance.

1.1 Origin and definition of the t-distribution

The Student's t-distribution was derived by W. S. Gosset in 1908 and published under the pseudonym "Student." It is specifically used for statistical inference from small samples when the population standard deviation is unknown. The t-statistic is defined as:

t=xˉ−μs/nt = \frac{\bar{x} - \mu}{s/\sqrt{n}}

where:

  • xˉ\bar{x} is the sample mean.
  • μ\mu is the population mean.
  • ss is the sample standard deviation.
  • nn is the sample size.

Both xˉ\bar{x} and ss are random variables, which contributes to the characteristics of the t-distribution 3.

1.2 Relationship to the standard normal distribution

The t-distribution shares similarities with the standard normal distribution (z-distribution) but possesses "heavier tails." This means that extreme values are more probable in a t-distribution than in a z-distribution. This difference arises because the z-statistic only involves the sample mean (xˉ\bar{x}), while the t-statistic incorporates both the sample mean (xˉ\bar{x}) and the sample standard deviation (ss). As the sample size (nn) increases, the t-distribution gradually approaches the standard normal distribution (mean 0, variance 1).

1.3 Degrees of freedom

The shape of the t-distribution is determined by a parameter called the degrees of freedom (df). For the t-distribution derived from a sample variance s2s^2, the degrees of freedom are typically n−1n-1, where nn is the sample size. The formula for sample variance is:

s2=∑i=1n(xi−xˉ)2n−1s^2 = \frac{\sum_{i=1}^{n} (x_i - \bar{x})^2}{n-1}

The term "degrees of freedom" refers to the number of independent pieces of information that are free to vary when estimating a parameter. As the degrees of freedom increase, the t-distribution becomes more concentrated and closely resembles the standard normal distribution.

Note: The concept of degrees of freedom is also used in other statistical methods.

1.4 Properties and characteristics of the t-distribution

The t-distribution is a continuous probability distribution with the following key properties:

  • Symmetry: It is symmetric about its mean, which is 0 8.
  • Shape: The shape is bell-shaped and resembles the standard normal distribution but has heavier tails and a lower peak.
  • Dependence on df: The specific shape of the t-distribution is dictated by its degrees of freedom 5.
  • Convergence: As the degrees of freedom approach infinity, the t-distribution converges to the standard normal distribution 4.

1.5 Assumptions for using the t-distribution

To ensure reliable inferences using the t-distribution, certain assumptions about the data and sampling process must be met:

  • Random Sampling: The sample must be selected randomly from the population.
  • Normal Population: The population from which the sample is drawn must be normally distributed 9.

1.6 Applications and comparisons

The t-distribution is particularly useful in scenarios where the population standard deviation (σ\sigma) is unknown, and the sample size (nn) is small (typically n<30n < 30). In such cases, the t-statistic follows a t-distribution with n−1n-1 degrees of freedom.

In contrast, if the population standard deviation (σ\sigma) is known, or if the sample size is large (n≥30n \ge 30) and the Central Limit Theorem (CLT) can be applied, the standard normal (z) distribution is used. The CLT states that for large sample sizes, the distribution of sample means will be approximately normal, even if the population distribution is not.

The following table summarizes the comparative conditions for using the t-distribution versus the z-distribution:

ConditionPopulation DistributionSample SizePopulation Std. Dev. (σ\sigma)Statistic UsedDistribution
Case 1Normaln<30n < 30Unknownt=xˉ−μs/nt = \frac{\bar{x} - \mu}{s/\sqrt{n}}t-distribution (df = n−1n-1)
Case 2Unknownn≥30n \ge 30Unknownz≈xˉ−μs/nz \approx \frac{\bar{x} - \mu}{s/\sqrt{n}}Standard normal distribution (CLT)
Case 3Normaln<30n < 30Knownz=xˉ−μσ/nz = \frac{\bar{x} - \mu}{\sigma/\sqrt{n}}Standard normal distribution
Cover

Chapter 18.pdf

1. Introduction to chi-square tests and one-variable analysis

This section introduces the foundational concepts of the chi-square (χ2\chi^2) test, focusing initially on its application to categorical variables, defining expected frequencies under the null hypothesis, and illustrating its use in simple one-row (goodness-of-fit) analyses before moving toward more complex contingency tables.

1.1 Overview and application of chi-square tests

The chi-square (χ2\chi^2) test is exclusively concerned with categorical variables, which produce nominal data summarized as frequencies or counts by category or level. This statistical tool is versatile, applicable in several scenarios:

  • Analyzing a simple division of one variable into two frequency categories.
  • Testing for an association between two categorical variables using cross-tabulation tables.
  • Serving as a goodness-of-fit test to assess if an observed frequency distribution closely matches a theoretical distribution (e.g., comparing observed degree classifications to national averages).

The data requirements for using chi-square tests are strict:

  • Data must be in the form of frequencies (counts), not ratios, means, or proportions.
  • Each case must belong exclusively to one category; subjects cannot be counted in multiple cells of the data table.

Tip: Chi-square tests are used when looking for an association or a difference in proportions between two categorical variables in a between-groups design. The Greek letter χ\chi (chi) is pronounced 'kye'.

1.2 Categorical data presentation: Cross-tabulation

When data involves two categorical variables, the observed frequencies are presented in a cross-tabulation (cross-tabs) table. The values within the cells of these tables are the raw counts of cases observed in that specific combination of categories.

An example involves analyzing the relationship between the age of a car (New vs. Old) and driver behavior at a pedestrian crossing (Stopped vs. Did not stop). The hypothesis might be that drivers of newer cars conform more often, perhaps due to being older or more experienced.

The data for this example illustrates the need for statistical testing to determine if observed differences in proportions (e.g., stopping behavior between new and old car drivers) are statistically significant or merely due to chance.

Frequencies of drivers by age of car and whether they stopped at an amber light or not.

Another example involves observing whether people dropped litter based on the existing amount of litter present (categorized as 0/1 piece, 2/4 pieces, or 8/16 pieces). Since the dependent variable (dropped litter or didn't drop litter) was categorical, the independent variable's measured values were reduced to three categories for analysis 3.

1.3 One-variable analysis: Goodness-of-fit and expected frequencies

Chi-square testing begins with analyzing a single variable divided into categories, often relating observed counts to counts expected under the null hypothesis (H0H_0). This is known as a goodness-of-fit test.

The core of the test relies on comparing observed frequencies (OO), which are the actual counts from the study, against expected frequencies (EE), which are the counts predicted if the null hypothesis is true.

Defining Expected Frequencies

The null hypothesis in chi-square analysis posits that the population distribution matches the pattern of proportions defined by the expected frequencies. For a simple one-row analysis, if there are kk categories and the total number of cases is NN, the expected frequency in each cell, assuming randomness or no effect (H0H_0 true), is calculated by dividing the total sample size by the number of categories: E=NkE = \frac{N}{k} For the case where women either 'lost' or 'gained' up to 1 inch from their hips after using a product (two categories, k=2k=2), with N=550N=550 total respondents, the expected frequencies under H0H_0 are 550/2=275550/2 = 275 for both 'loss' and 'gain'.

Cover

Chapter 1 Biostatistics.pptx

Table of contents

  1. Biostatistics 1
  2. Identifying the problem
  3. Building a conceptual pre-model
  4. The choices: material, approach, population
  5. The quasi-experimental design
  6. Preparing data for computer processing
  7. Data collection
  8. SUMMARY
  9. TEST YOURSELF

1. Biostatistics 1

1.1 The place of statistics in the research process

Biostatistics is essential for drawing reliable conclusions from biological data, especially given the inherent variability in living organisms. It provides the tools to systematically collect, process, and interpret data, thereby enabling researchers to address biological questions rigorously.

The application of statistical methods is integral to the scientific research process, guiding the transition from initial observations to testable hypotheses and ultimately to robust conclusions.

  • Variability in living things: Even within the same species, under identical conditions, significant differences in traits (e.g., height) can exist between individuals. This natural variation necessitates statistical approaches to discern meaningful patterns from random fluctuations.
  • Role of biostatistics: Biostatistics enables researchers to make reliable inferences despite biological variability, transforming raw observations into actionable insights.

1.2 Learning objectives

The course aims to equip students with the methodological skills to apply statistical concepts to biological problems. Upon completion of this chapter, students will be able to:

  • Formulate testable research questions from field observations.
  • Construct preliminary models, identifying variables, their roles, and hypothesized relationships.
  • Select appropriate biological materials, research approaches, and statistical populations.
  • Recognize and design quasi-experimental designs, such as BACI (Before-After-Control-Impact).
  • Organize data tables suitable for computational analysis.
  • Implement reliable data collection protocols in the field.

1.3 The scientific process as a cycle

The scientific method is best understood as a cyclical process rather than a linear progression. This iterative approach involves continuous observation, questioning, hypothesizing, planning, data collection, analysis, and conclusion, which then leads to new questions and further investigation.

  • Observation: Identifying a surprising or unexplained phenomenon in the natural world.
  • Question: Formulating a specific inquiry about the observed phenomenon.
  • Hypothesis: Proposing a tentative explanation for the phenomenon that can be tested.
  • Plan: Designing an experiment or study to collect data relevant to the hypothesis, specifying what, where, how, and how much to measure.
  • Collect: Gathering data in the field or laboratory according to the established protocol.
  • Analyse: Using statistical tools to describe the data and test the hypothesis.
  • Conclude: Interpreting the results to confirm, qualify, or reject the hypothesis, often leading to new observations and questions.

1.4 The importance of planning in statistical analysis

A critical warning in statistical research is the timing of the statistician's involvement. Engaging a statistician only after data collection is often too late, akin to a post-mortem examination that can identify the causes of failure but cannot salvage the experiment.

Proactive planning, involving the statistician before fieldwork begins, is crucial for ensuring the validity and utility of the research.

  • Late involvement: Consulting a statistician after an experiment is completed often means they can only explain why the experiment failed, not how to prevent failure.
  • Early involvement: Planning the statistical analysis before data collection is essential. This includes defining the research question, identifying variables, establishing control groups, determining sample sizes, and planning the data table format. Statistical preparation occurs at the desk, not after fieldwork.

📝 Example

Cover

Chapter 1 - Introduction to Statistics.pdf

Table of contents

  1. Chapter 1: Introduction To Statistics
  2. Unit 2: Variables, Data Types & Levels of Measurement
  3. Unit 3: Data Collection Methods
  4. Unit 4: Sampling Techniques
  5. Unit 5: Types of Statistics
  6. Exercise 2

1. Chapter 1: Introduction To Statistics

1.1 Unit 1: An overview

This unit outlines the step-by-step process of statistical inquiry, moving from an initial research question to drawing conclusions based on data. It details the key stages involved in conducting a statistical study.

  • Research Question: The initial step, defining what needs to be investigated.
  • Population: The entire group of individuals or objects that are of interest for the study.
  • Sample: A subset of the population that is actually studied to gather data.
  • Variables: The specific pieces of information collected from the sample.
  • Type of Data: Categorizes the nature of the information collected.
  • Level of Measurement: Determines how the values of variables are quantified.
  • Data Collection: The methods used to obtain the necessary information.
  • Sampling: The techniques used to select the sample from the population.
  • Descriptive Statistics: Methods used to summarize and describe the collected data.
  • Inferential Statistics: Techniques used to draw conclusions about the population based on sample data 1.

1.2 What is statistics?

Statistics is the scientific method used to conduct studies, process information, and derive meaningful insights from data. It provides the tools and techniques necessary to obtain information and support decision-making in various fields.

  • Statistics: The science of learning from data and using it to answer questions and support decisions 2.

1.3 Types of statistics

Statistics is broadly categorized into two main branches, each serving distinct purposes in data analysis and interpretation. These categories help in understanding the scope and application of statistical methods.

  • Descriptive Statistics: Focuses on summarizing and describing the main features of a dataset.
  • Inferential Statistics: Involves making predictions or inferences about a larger population based on a sample of data 2.

1.4 Statistics in everyday life 2

Statistics plays a crucial role across numerous sectors, enabling data-driven analysis and informed decision-making. Its applications range from business and healthcare to government and research.

AreaExample of Statistics
BusinessSales and profit analysis
AccountingFinancial data analysis
EconomicsInflation and unemployment rates
EducationStudent performance
HealthcarePatient outcomes
MarketingCustomer preferences
GovernmentPopulation and economic statistics
SportsPlayer performance
ResearchTesting research hypotheses

1.5 Fundamental terminology 3

This section defines key terms used in statistics, clarifying their meaning and application within the context of data collection and analysis. Understanding these terms is essential for comprehending statistical concepts.

TermDefinition
PopulationAll elements (individuals, items, or objects) whose characteristics are being studied. Who do we want to know about? e.g.: All employees in a company
SampleA portion taken from a population for the purpose of a study. Who will we actually study? e.g.: 150 selected employees in a company
CensusA survey that takes all members in a defined population. Normally taken if the population to be studied is small.
SurveyA survey that takes only a portion of a population. This study is best done when the population is large.
Sampling FrameA list of all members in a population. It is prepared so that samples can be selected from a population. (e.g.: A list of employee’s names in a company)
Sampling UnitA unit of sample that has been selected from a population randomly or non-randomly. Example: An employee
Pilot SurveyA survey that is carried out before the actual survey. The purpose is to identify any problem that may arise during the actual survey.
VariableCharacteristic that can take different values. What do we want to know about them?
DataThe values (measurement or observations) that the variable can assume.
ParameterNumerical measure describing a population. What is the value for the population?
StatisticNumerical measure describing a sample. What is the value for the sample?
Cover

Chapter 2_0e8011d1b26e873a27bc5dc6a41e2b00.pdf

Table of contents

  1. Numerical Description of Data
  2. Comparison of Dispersion Measures
  3. Exercises

1. Numerical Description of Data

1.1 Measures of Central Tendency (Position)

Measures of central tendency provide a single value that represents the typical or middle value of a dataset. These measures help in understanding the center of the data distribution 1.

1.2 Arithmetic Mean

The arithmetic mean, commonly known as the average, is calculated by summing all values in a dataset and dividing by the total number of values. It is best suited for data that are additive, such as heights, ages, or temperatures 1.

  • Raw Data: For NN values x1,x2,…,xNx_1, x_2, \dots, x_N, the mean xˉ\bar{x} is ∑i=1NxiN\frac{\sum_{i=1}^{N} x_i}{N}.
  • Frequency Data: If a value xix_i appears nin_i times, and N=∑i=1kniN = \sum_{i=1}^{k} n_i, the mean is xˉ=∑i=1knixiN\bar{x} = \frac{\sum_{i=1}^{k} n_i x_i}{N} 1.
  • Grouped Data (Classes): For data grouped into classes, the midpoint mi=ai+bi2m_i = \frac{a_i + b_i}{2} of each class is used. The mean is xˉ=∑i=1knimiN\bar{x} = \frac{\sum_{i=1}^{k} n_i m_i}{N} 2.

Example 2.2. Arithmetic Mean - Raw Data Data: 2, 4, 6, 8 (N = 4). xˉ=2+4+6+84=204=5\bar{x} = \frac{2+4+6+8}{4} = \frac{20}{4} = 5 2.

Example 2.3. Arithmetic Mean - Frequency Data

Value (xix_i)Frequency (nin_i)nixin_i x_i
122
224
3618
414
Total1026

xˉ=2610=2.6\bar{x} = \frac{26}{10} = 2.6 2.

Example 2.4. Arithmetic Mean - Grouped Data

Classnin_imim_inimin_i m_i
[10, 20[41560
[20, 30[625150
[30, 40[835280
[40, 50[24590
Total20—580

xˉ=58020=29\bar{x} = \frac{580}{20} = 29 2.

  • Properties of the Arithmetic Mean: 2.
  • It uses every value in the data.
  • It is sensitive to outliers.
  • The sum of deviations from the mean is always zero: ∑(x−xˉ)=0\sum (x - \bar{x}) = 0.

1.3 Weighted Mean

The weighted mean is used when certain values in a dataset are considered more important than others. Each value xix_i is multiplied by a weight wi>0w_i > 0, which reflects its significance 3.

  • Formula: The weighted mean is calculated as xˉw=∑i=1kwixi∑i=1kwi\bar{x}_w = \frac{\sum_{i=1}^{k} w_i x_i}{\sum_{i=1}^{k} w_i} 3.

Example 2.7. Weighted Mean - University Marks A student's marks and their credit coefficients are: Maths (14, 3), Physics (10, 2), English (16, 1). The weighted mean mark is (3×14)+(2×10)+(1×16)3+2+1=42+20+166=786=13\frac{(3 \times 14) + (2 \times 10) + (1 \times 16)}{3+2+1} = \frac{42 + 20 + 16}{6} = \frac{78}{6} = 13 3.

1.4 Geometric Mean

The geometric mean is appropriate for data that are multiplicative in nature, such as growth rates, ratios, or index numbers. All values in the dataset must be positive 3.

  • Formula: G=(∏i=1Nxi)1/NG = (\prod_{i=1}^{N} x_i)^{1/N} or G=x1⋅x2⋅⋯⋅xNNG = \sqrt[N]{x_1 \cdot x_2 \cdot \dots \cdot x_N} 4.
  • Frequency Data: G=(∏i=1kxini)1/NG = (\prod_{i=1}^{k} x_i^{n_i})^{1/N}.
  • Logarithmic Form: log⁡G=1N∑i=1Nlog⁡xi\log G = \frac{1}{N} \sum_{i=1}^{N} \log x_i 3.

Example 2.9. Geometric Mean - Growth Rates A population grows by 10%, then 20%, then 50% over three years. The multipliers are 1.10, 1.20, 1.50. G=(1.10×1.20×1.50)1/3=(1.98)1/3≈1.256G = (1.10 \times 1.20 \times 1.50)^{1/3} = (1.98)^{1/3} \approx 1.256. The average growth rate is approximately 25.6% per year 3.

Example 2.10. Geometric Mean - Investment An investment grows by +50% one year and -50% the next year. Multipliers: 1.50 and 0.50. G=(1.50×0.50)1/2=0.75≈0.866G = (1.50 \times 0.50)^{1/2} = \sqrt{0.75} \approx 0.866. The average yearly rate is -13.4% (a loss), not 0% 4.

1.5 Harmonic Mean

The harmonic mean is used for rates and speeds, such as km/h or price per unit. It gives more weight to smaller values 4.

  • Formula: H=N∑i=1N1xiH = \frac{N}{\sum_{i=1}^{N} \frac{1}{x_i}}.
  • Frequency Data: H=N∑i=1knixiH = \frac{N}{\sum_{i=1}^{k} \frac{n_i}{x_i}} 4.

Example 2.12. Harmonic Mean - Average Speed A car travels 100 km at 50 km/h, then 100 km at 100 km/h. H=2150+1100=20.02+0.01=20.03≈66.67H = \frac{2}{\frac{1}{50} + \frac{1}{100}} = \frac{2}{0.02 + 0.01} = \frac{2}{0.03} \approx 66.67 km/h. The arithmetic mean would be incorrect because the car spends more time at the slower speed 4.

  • Ordering of the Means: For positive data, the means satisfy H≤G≤xˉH \le G \le \bar{x} 4.

1.6 Comparison of the Four Means 4

MeanFormulaBest used for
Arithmetic\bar{x} = \frac{\sum x_i}{N}Everyday averages: heights, ages, grades.
Weighted\bar{x}_w = \frac{\sum w_i x_i}{\sum w_i}Averages with unequal importance (credits, prices).
GeometricG = (\prod x_i)^{1/N}Growth rates, ratios, index numbers.
HarmonicH = \frac{N}{\sum \frac{1}{x_i}}Rates and speeds (km/h, price per unit).

1.7 The Mode (Mo)

The mode is the value that appears most frequently in a dataset