Probability Statistics

Cover

Unit 6 - Lesson 1 - Grade 9.pdf

Table of contents

  1. Mean median mode range
  2. Mean, median, mode and range for wrestler weights
  3. Mean median and mode for weekly temperatures
  4. Complete ALL Solutions

1. Mean median mode range

1.1 Statistical measures

This section defines four key statistical measures used to describe a dataset: mean, median, mode, and range. These measures help summarize and understand the central tendency and spread of data 3.

  • Mean: The sum of all values in a dataset divided by the total number of values. It is commonly referred to as the "average."5.
  • Median: The middle value in a dataset when the data is arranged in ascending order. If there is an even number of data points, the median is the average of the two middle values6.
  • Mode: The value or attribute that appears most frequently in a dataset. A dataset can have no mode, one mode, or multiple modes.
  • Range: The difference between the highest and lowest values in a dataset 3 7.

1.2 Calculating the mean

To calculate the mean, you add up all the values in the dataset and then divide by the total number of values 5.

1.3 Calculating the median

To find the median, first arrange all the numbers in the dataset from lowest to highest. If there is an odd number of data values, the median is the single middle number.

If there is an even number of data values, the median is the average of the two middle numbers 6.

📝 Rachel surveyed 9 friends and recorded their heights in centimeters: 154, 139, 154, 192, 180, 140, 154, 155, 192.

  1. Arrange the numbers in ascending order: 139, 140, 154, 154, 154, 155, 180, 192, 192.
  2. Since there are 9 (an odd number) data values, the median is the middle number, which is the 5th value. Median = 154 cm 6.

1.4 Calculating the mode

The mode is the value that occurs most often in the dataset. A dataset can have no mode, one mode, or multiple modes 7.

📝 Using Rachel's height data (139, 140, 154, 154, 154, 155, 180, 192, 192), the value 154 appears three times, which is more than any other value. Mode = 154 cm 7.

1.5 Calculating the range 3 5 6

The range is calculated by subtracting the lowest value in the dataset from the highest value 7.

📝 For Rachel's height data (139, 140, 154, 154, 154, 155, 180, 192, 192), the highest value is 192 cm and the lowest value is 139 cm. Range = 192 - 139 = 53 cm 7.

MeasureDefinitionCalculation
MeanThe average of the dataSum of values / Number of values
MedianThe middle value when data is orderedMiddle number (or average of two middle numbers for even data sets)
ModeThe most frequent valueValue that appears most often
RangeThe spread of the dataHighest value - Lowest value

2. Mean, median, mode and range for wrestler weights

2.1 Wrestler weights data

The following list shows the weights of wrestlers (in pounds) on the varsity wrestling team. The task is to find the mean, median, mode, and range for this data 8.

2.2 Mean

The mean is calculated by summing all the values in a dataset and then dividing by the number of values 8.

2.3 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 terms, the median is the average of the two middle values 9.

2.4 Mode

The mode is the value that appears most frequently in a dataset. A dataset can have more than one mode if multiple values share the highest frequency 10.

2.5 Range

The range is the difference between the highest and lowest values in a dataset. It is calculated by subtracting the minimum value from the maximum value 10.

📝 For the wrestler weights, the mode is 95 pounds and 114 pounds, as both values appear twice, which is the highest frequency. The range is calculated as 132 pounds (maximum weight) minus 93 pounds (minimum weight), resulting in a range of 39 pounds 10.

3. Mean median and mode for weekly temperatures

3.1 Weekly temperature data

The temperatures for the past week were recorded in Celsius. The data set includes temperatures for Monday through Sunday 11.

3.2 Calculating the mean temperature

The mean is the average of a data set, calculated by summing all values and dividing by the number of values. For the weekly temperatures, the sum of all temperatures is 20+22+17+19+24+23+22=14720 + 22 + 17 + 19 + 24 + 23 + 22 = 147.

There are 7 days in a week. Therefore, the mean temperature is 147/7147 / 7 11.

  • Mean calculation: The mean temperature is calculated by summing all recorded temperatures and dividing by the number of days.
Cover

Unit 6 - Lesson 2 - Grade 9.pdf

Table of contents

  1. Quartiles
  2. Box plot
  3. Interquartile Range
  4. Steps to create a box plot
  5. Example: Waitress tips
  6. Example: Blue Jays runs
  7. Example: English Class scores
  8. Complete ALL Solutions

1. Quartiles

1.1 Definition of quartiles

Quartiles are specific values that divide an ordered list of numbers into four equal parts. These values mark the points where the list is cut into quarters.

The quartiles are often denoted as Q1, Q2, and Q3 3.

  • Q1 (First Quartile): This is the value that separates the lowest 25% of the data from the rest.
  • Q2 (Second Quartile): This value is the median of the dataset, dividing it into two equal halves. It represents the 50th percentile.
  • Q3 (Third Quartile): This value separates the lowest 75% of the data from the highest 25% 3.

To find quartiles, you first need to arrange the list of numbers in ascending order. Then, you divide this ordered list into four equal segments.

The quartiles are the values found at these dividing points 3.

📝 If you have the ordered list of numbers: 2, 4, 6, 8, 10, 12, 14, 16.

  • The list is already in order.
  • To divide it into four equal parts, we find the median (Q2) first, which is the average of the two middle numbers: (8 + 10) / 2 = 9.
  • The first half of the data is 2, 4, 6, 8. The median of this half (Q1) is (4 + 6) / 2 = 5.
  • The second half of the data is 10, 12, 14, 16. The median of this half (Q3) is (12 + 14) / 2 = 13.
  • So, the quartiles are Q1 = 5, Q2 = 9, and Q3 = 13 3.

2. Box plot

2.1 Box and whisker plot

A box plot, also known as a Box and Whisker Plot, is a visual tool that displays data distribution based on quartile values. It uses whiskers and a box to represent the spread of the data 4.

The key components of a box plot are:

  • Box: This represents the interquartile range (IQR), which contains the middle 50% of the data. The box is defined by Quartile 1 (Q1) and Quartile 3 (Q3).

  • Whiskers: These extend from the box to the lowest and highest values in the dataset, indicating the full range of the data.

  • Lowest Value: The minimum data point within the whisker's reach.

  • Highest Value: The maximum data point within the whisker's reach 4.

  • Box plot components: The box plot visually represents data distribution using a box and whiskers. The box spans from the first quartile (Q1) to the third quartile (Q3), encompassing the middle 50% of the data. Whiskers extend from the box to the lowest and highest data points, showing the overall range 4.

3. Interquartile Range

3.1 Definition of Interquartile Range

The Interquartile Range (IQR) is a measure of statistical dispersion, representing the range between the first quartile (Q1) and the third quartile (Q3). It specifically describes the spread of the middle 50% of the data 5.

The formula for the IQR is: IQR=Q3−Q1\text{IQR} = Q3 - Q1 This calculation helps to understand the variability within the central portion of a dataset, excluding extreme values 5.

📝 If the third quartile (Q3) of a dataset is 75 and the first quartile (Q1) is 40, the Interquartile Range is 75−40=3575 - 40 = 35. This means the middle 50% of the data spans a range of 35 units 5.

4. Steps to create a box plot

4.1 Creating a box plot

Creating a box plot involves several key steps to visualize the distribution of a dataset. This process helps in understanding the spread and central tendency of the data 6.

  • Arrange the data: First, list all the numbers in your dataset in ascending order, from smallest to largest.
  • Find the median (Q2): The median is the middle value of the ordered dataset. If there's an even number of data points, the median is the average of the two middle numbers.
  • Find the first quartile (Q1): Q1 is the median of the lower half of the data. This includes all numbers from the smallest value up to, but not including, the overall median (Q2).
  • Find the third quartile (Q3): Q3 is the median of the upper half of the data. This includes all numbers from the overall median (Q2) up to, but not including, the largest value.
  • Calculate the interquartile range (IQR): The IQR is the difference between Q3 and Q1 (IQR=Q3−Q1IQR = Q3 - Q1). This value represents the spread of the middle 50% of the data.
  • Determine the range: The range is the difference between the highest and lowest values in the dataset (Range=HighestValue−LowestValueRange = Highest Value - Lowest Value).
  • Construct the plot: Draw 'whiskers' extending from the minimum and maximum values of the dataset. Connect these whiskers with a line. Then, create a box using Q1 and Q3 as the boundaries, with a line inside the box marking the median (Q2) 6.
Cover

Unit+8+NoteTakers.pdf

📚 Unit+8+NoteTakers.pdf

Brief overview

This document outlines fundamental statistical concepts for data analysis. It covers measures of central tendency, data variation, and methods for hypothesis testing, crucial for understanding and interpreting data sets. The material is essential for making informed decisions based on probability and statistical inference.

Key points

  • Overview of measures of central tendency and variation, including the impact of outliers.
  • Understanding data collection, populations, samples, and study designs.
  • Introduction to hypothesis testing and sampling distributions, including Z-tests.
  • Explanation of binomial and normal distributions for probability estimation.
  • Analyzing decisions using expected value and probability concepts.

1. Measures of central tendency and variation

1.1 Central tendency measures

  • Mean: the sum of all values divided by the number of values.
  • Median: the middle value in an ordered data set. If there are two middle values, it's their average.
  • Mode: the value that appears most frequently in the data set.

A dataset can have one mode, multiple modes, or no mode.

  • Weighted average: the mean calculated using the frequency of each data value. This is used when some values are more important or occur more often.
  • Expected value: the average of all possible outcomes, weighted by their probabilities. It's often used in probability and statistics.

Mean, median, and mode describe the "center" of data.

MeasureDescriptionExample Data Set: {3, 0, 2, 0, 1, 2, 4}
MeanSum of values / Number of values(3+0+2+0+1+2+4)/7=12/7≈1.71(3+0+2+0+1+2+4) / 7 = 12 / 7 \approx 1.71
MedianMiddle value when ordered: {0, 0, 1, 2, 2, 3, 4}22
ModeMost frequent value(s)00 and 22

1.2 Data spread and variation

  • Box-and-whisker plot: a graph showing data spread using five key points: minimum, maximum, median, first quartile (Q1), and third quartile (Q3).
  • Quartiles (Q1, Q3): the medians of the lower and upper halves of the data set. The median itself is excluded from these halves if the total count is odd.
  • Interquartile Range (IQR): the difference between Q3 and Q1 (Q3−Q1Q3 - Q1). It shows the spread of the middle 50% of the data.

A smaller IQR means the middle data points are closer together.

  • Variance (σ2\sigma^2): the average of the squared differences of each data point from the mean. It measures how spread out the data is.
  • Standard deviation (σ\sigma): the square root of the variance. It's a common measure of data dispersion around the mean.

A high standard deviation means data points are spread far from the mean.

Standard deviation helps understand typical data scatter.

MeasureFormulaExample Data Set: {6, 9, 8, 5}
Mean∑xn\frac{\sum x}{n}(6+9+8+5)/4=28/4=7(6+9+8+5)/4 = 28/4 = 7
Variance (σ2\sigma^2)∑(x−mean)2n\frac{\sum (x - \text{mean})^2}{n}(6−7)2+(9−7)2+(8−7)2+(5−7)24=1+4+1+44=10/4=2.5\frac{(6-7)^2+(9-7)^2+(8-7)^2+(5-7)^2}{4} = \frac{1+4+1+4}{4} = 10/4 = 2.5
Standard Deviation (σ\sigma)Variance\sqrt{\text{Variance}}2.5≈1.58\sqrt{2.5} \approx 1.58
  • Outlier: an extreme value that is significantly higher or lower than most other data points. Outliers can greatly affect the mean and standard deviation.
Cover

Untitled design.pptx

Table of contents

  1. Natale randomly answered the lail three true ortobe questions on her math quiz What is the probability that she got of least two.correct?

1. Natale randomly answered the last three true or false questions on her math quiz. What is the probability that she got at least two correct?

1.1 Counting outcomes

This section explores methods for determining the total number of possible outcomes in various scenarios, which is fundamental to calculating probabilities.

  • Multiple events: When multiple independent events occur, the total number of outcomes is found by multiplying the number of outcomes for each individual event.

  • Spinner spun three times: If a spinner has nn possible outcomes, spinning it three times results in n×n×n=n3n \times n \times n = n^3 total outcomes.

  • Dice rolled, then marble chosen: The total outcomes are the product of the number of faces on the die and the number of marbles in the bag.

  • Letter from a word and day from a month: The total outcomes are the number of letters in the word multiplied by the number of days in the month.

  • Semester choice and country choice: The total outcomes are the number of semester options multiplied by the number of country options.

  • Password with letters and numbers: The total outcomes are the number of letter possibilities squared multiplied by the number of one-digit number possibilities squared.

  • Coin tossed four times and card selected: The total outcomes are 242^4 (for the coin tosses) multiplied by 52 (for the cards).

1.2 Probability calculations

Probability quantifies the likelihood of a specific event occurring. It can be expressed as a fraction, decimal, or percentage.

  • Theoretical probability: This is the probability of an event occurring based on mathematical reasoning and the assumption of equally likely outcomes. It is calculated as: P(event)=Number of favorable outcomesTotal number of possible outcomesP(\text{event}) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}

  • Experimental probability: This is the probability of an event occurring based on the results of an experiment or observation. It is calculated as: P(event)=Number of times the event occurredTotal number of trialsP(\text{event}) = \frac{\text{Number of times the event occurred}}{\text{Total number of trials}}

1.3 Probability of events with numbers

Calculating probabilities for events involving numbers requires identifying the total possible numbers and the specific numbers that satisfy the event's condition.

  • Choosing a number from 1-72: The total number of possible outcomes is 72.

  • Multiple of 9: The multiples of 9 between 1 and 72 are 9, 18, 27, 36, 45, 54, 63, 72. There are 8 such numbers.

  • P(multiple of 9)=872=19P(\text{multiple of 9}) = \frac{8}{72} = \frac{1}{9}

  • Odd or at most 16: Numbers that are odd are 1, 3, 5,..., 71. Numbers at most 16 are 1, 2,..., 16. We need to find the union of these sets.

  • Odd numbers: 36 numbers.

  • Numbers at most 16: 16 numbers.

  • Odd numbers at most 16: 1, 3, 5, 7, 9, 11, 13, 15 (8 numbers).

  • Total favorable outcomes = 36 (odd) + 16 (at most 16) - 8 (odd and at most 16) = 44.

  • P(odd or at most 16)=4472=1118P(\text{odd or at most 16}) = \frac{44}{72} = \frac{11}{18}

  • Factor of 72 and even: Factors of 72 are 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72. The even factors are 2, 4, 6, 8, 12, 18, 24, 36, 72. There are 9 such numbers.

  • P(factor of 72 and even)=972=18P(\text{factor of 72 and even}) = \frac{9}{72} = \frac{1}{8}

  • Not a perfect square: Perfect squares between 1 and 72 are 1 (121^2), 4 (222^2), 9 (323^2), 16 (424^2), 25 (525^2), 36 (626^2), 49 (727^2), 64 (828^2). There are 8 perfect squares.

  • P(not a perfect square)=72−872=6472=89P(\text{not a perfect square}) = \frac{72 - 8}{72} = \frac{64}{72} = \frac{8}{9}

1.4 Probability with cards

A standard deck of cards has 52 cards, consisting of 4 suits (hearts, diamonds, clubs, spades) with 13 ranks each (2-10, Jack, Queen, King, Ace). Hearts and diamonds are red; clubs and spades are black.

  • Choosing a card at random: Total possible outcomes = 52.

  • Ace: There are 4 aces in a deck.

  • P(ace)=452=113P(\text{ace}) = \frac{4}{52} = \frac{1}{13}

  • Black or queen: There are 26 black cards and 4 queens. Two of the queens are black (queen of clubs, queen of spades).

  • P(black or queen)=P(black)+P(queen)−P(black and queen)P(\text{black or queen}) = P(\text{black}) + P(\text{queen}) - P(\text{black and queen})

  • P(black or queen)=2652+452−252=2852=713P(\text{black or queen}) = \frac{26}{52} + \frac{4}{52} - \frac{2}{52} = \frac{28}{52} = \frac{7}{13}

  • Face card or 8: Face cards are Jack, Queen, King (3 ranks per suit, 4 suits = 12 face cards). There are 4 eights. No card is both a face card and an 8.

  • P(face card or 8)=P(face card)+P(8)P(\text{face card or 8}) = P(\text{face card}) + P(8)

  • P(face card or 8)=1252+452=1652=413P(\text{face card or 8}) = \frac{12}{52} + \frac{4}{52} = \frac{16}{52} = \frac{4}{13}

  • Red jack: There are two red jacks (jack of hearts, jack of diamonds).

  • P(red jack)=252=126P(\text{red jack}) = \frac{2}{52} = \frac{1}{26}

1.5 Probability with dice

When rolling two dice, the total number of possible outcomes is 6×6=366 \times 6 = 36. Each outcome is an

Cover

Untitled document.pdf

Table of contents

  1. Statistics basics
  2. Graphs
  3. Describing a distribution
  4. Standard deviation
  5. Normal distribution

1. Statistics basics

1.1 What is statistics?

Statistics is the process of collecting, organizing, analyzing, and interpreting data. This involves gathering information about individuals and understanding the characteristics being measured 1.

1.2 Individuals and variables

  • Individual: A person or object being described by the data.
  • Variable: A characteristic that can have different values for different individuals 2.

1.3 Categorical vs. quantitative variables

A crucial distinction in statistics is between categorical and quantitative variables. Categorical variables place individuals into groups, while quantitative variables are numerical measurements where arithmetic operations are meaningful 3 4.

TypeDescriptionExamples
CategoricalPlaces individuals into groups or categories. Numbers used as labels are categorical.Eye color, favorite sport, political party, jersey number (as a label).
QuantitativeNumerical measurements where arithmetic makes sense. Represents an amount.Height, weight, age, number of siblings, test score, time, temperature.

A helpful trick to distinguish between them is to ask if you can meaningfully average the values. If averaging makes sense, the variable is likely quantitative; otherwise, it's categorical 4.

📝 A jersey number, like 23, is a categorical variable because it serves as a label rather than a numerical measurement 3.

2. Graphs

Different types of variables are best represented by different graphs. The choice of graph depends on whether the data is categorical or quantitative 5.

2.1 Graphs for categorical data

For categorical variables, bar graphs and pie charts are commonly used to display the frequency or proportion of individuals in each category 5.

2.2 Graphs for quantitative data

For quantitative variables, several types of graphs are used to visualize the distribution of the data:

  • Dotplot: Each dot represents an observation, showing individual values, clusters, gaps, outliers, and the overall shape of the distribution.
  • Stem-and-leaf plot: Separates data into a stem (leading digits) and a leaf (trailing digit), allowing visualization of shape and individual values 6.
  • Histogram: Groups quantitative values into intervals (bins) and displays their frequencies. Bars in a histogram touch because the intervals represent a continuous numerical scale.
  • Boxplot: Displays the five-number summary (minimum, Q1, median, Q3, maximum) and is useful for identifying the center, spread, and potential outliers 7 8.

3. Describing a distribution

When asked to describe a distribution, the SOCS framework (Shape, Outliers, Center, Spread) provides a comprehensive approach 8.

3.1 Shape

The shape of a distribution describes its overall form. Common shapes include:

  • Symmetric: Both sides of the distribution are roughly mirror images.
  • Skewed right: Has a long tail extending to the right. The mean is typically greater than the median17.
  • Skewed left: Has a long tail extending to the left. The mean is typically less than the median18.
  • Uniform: All values occur with roughly equal frequency.
  • Bimodal: Has two noticeable peaks 9.

The direction of skew is determined by the tail of the distribution, not where the majority of the data lies 9.

3.2 Outliers

Outliers are observations that are unusually far from the rest of the data. They can be identified visually or by using the 1.5 × IQR rule 10.

TypeFormula
Lower fenceQ1−1.5(IQR)Q_1 - 1.5(IQR)
Upper fenceQ3+1.5(IQR)Q_3 + 1.5(IQR)

Any value falling below the lower fence or above the upper fence is considered an outlier 13.

Cover

Variable aléatoire PS (1) (1).pdf

Table of contents

  1. Chapter 4: Random Variables
  2. Discrete Random Variables
  3. Continuous Random Variables

1. Chapter 4: Random Variables

After conducting an experiment, interest often lies in a specific function of the outcome rather than the outcome itself. A random variable is a real-valued function defined on a sample space Ω\Omega with a probability measure PP, mapping outcomes to real numbers 1.

1.1 Definition of a random variable

A random variable XX is a function from the fundamental set Ω\Omega to the set of real numbers R\mathbb{R}, such that the inverse image of every interval in R\mathbb{R} is an event in Ω\Omega 1.

1.2 Types of random variables

Random variables are categorized into two main types based on the nature of the values they can take 1.

Type of VariableDescription
Discrete random variableCan take a finite or countably infinite number of isolated values (e.g., integers)
Continuous random variableCan take any value within a given interval

1.3 Discrete random variables

A discrete random variable is defined as a variable that can assume a finite number of isolated values.

📝 When rolling a six-sided die and observing the top face, the finite set of possible values obtained is {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\} 1.

2. Discrete Random Variables

2.1 Probability distribution of a discrete random variable

A discrete random variable XX is defined on a finite fundamental set Ω\Omega and takes on a finite number of values, X(Ω)={x1,x2,...,xn}X(\Omega) = \{x_1, x_2,..., x_n\}. The probability p(X=xi)=pip(X = x_i) = p_i for each value xix_i is called the probability distribution or probability law of XX 2.

  • Conditions for probability distribution:
  • The probability of each value must be between 0 and 1: 0≤p(X=xi)≤10 \le p(X = x_i) \le 1.
  • The sum of all probabilities must equal 1: ∑p(X=xi)=1\sum p(X = x_i) = 1 2.
xix_ip(X=xi)p(X = x_i)
x1x_1p(X=x1)p(X = x_1)
x2x_2p(X=x2)p(X = x_2)
x3x_3p(X=x3)p(X = x_3)
......
xnx_np(X=xn)p(X = x_n)

📝 When rolling two fair dice, the fundamental set Ω\Omega contains 36 ordered pairs. If XX is the maximum of the two dice, X(Ω)={1,2,3,4,5,6}X(\Omega) = \{1, 2, 3, 4, 5, 6\}. The probability distribution for XX is: p(X=1)=136p(X=1) = \frac{1}{36}, p(X=2)=336p(X=2) = \frac{3}{36}, p(X=3)=536p(X=3) = \frac{5}{36}, p(X=4)=736p(X=4) = \frac{7}{36}, p(X=5)=936p(X=5) = \frac{9}{36}, and p(X=6)=1136p(X=6) = \frac{11}{36} 2.

2.2 Distribution function and cumulative distribution function

The distribution function indicates the probability law of a discrete random variable XX and is typically represented by a bar chart. The cumulative distribution function (CDF), denoted F(x)F(x), gives the probability that the random variable XX takes a value less than or equal to xx 3.

  • Definition: F(x)=p(X≤x)=∑xi≤xp(X=xi)F(x) = p(X \le x) = \sum_{x_i \le x} p(X = x_i) 3.
  • Properties:
  • The CDF is monotonically increasing.
  • Its values range from 0 to 1, i.e., F(x)∈[0,1]F(x) \in [0, 1].
  • Its graphical representation for discrete cases is a step diagram 4.

📝 For the random variable XX (maximum of two dice), the cumulative distribution function F(x)F(x) is defined piecewise: F(x)=0F(x) = 0 for x<1x < 1; F(x)=136F(x) = \frac{1}{36} for 1≤x<21 \le x < 2; F(x)=436F(x) = \frac{4}{36} for 2≤x<32 \le x < 3; F(x)=936F(x) = \frac{9}{36} for 3≤x<43 \le x < 4; F(x)=1636F(x) = \frac{16}{36} for 4≤x<54 \le x < 5; F(x)=2536F(x) = \frac{25}{36} for 5≤x<65 \le x < 6; and F(x)=1F(x) = 1 for x≥6x \ge 6 4.

2.3 Mathematical expectation of a discrete random variable

The mathematical expectation or mean of a discrete random variable XX, denoted E(X)E(X) or μx\mu_x, is the sum of its values weighted by their associated probabilities. It represents the average value the random variable takes 4 5.

  • Formula: E(X)=∑xip(X=xi)E(X) = \sum x_i p(X = x_i) 5.
PropertyFormula
Scalar multiplicationE(αX)=αE(X)E(\alpha X) = \alpha E(X)
Linear transformationE(αX+β)=αE(X)+βE(\alpha X + \beta) = \alpha E(X) + \beta
Sum of variablesE(X+Y)=E(X)+E(Y)E(X + Y) = E(X) + E(Y)
Linear combinationE(αX+βY)=αE(X)+βE(Y)E(\alpha X + \beta Y) = \alpha E(X) + \beta E(Y)
Cover

VoorbeeldexamenStatI.docx

Statistische afleiding en hypothesetoetsing

Dit onderwerp behandelt de interpretatie van statistische spreidingsmaten, de toepassing van nulhypothesen in experimenteel onderzoek, en de berekening van p-waarden met behulp van permutatietesten.

1.1 Interpretatie van statistische maten

1.1.1 Variatiebreedte (Range)

De variatiebreedte is een maat voor de spreiding in een dataset en wordt gedefinieerd als het verschil tussen de maximale en de minimale observatie.

Tip: De variatiebreedte is zeer gevoelig voor uitschieters, omdat deze alleen afhangt van de extreme waarden.

In de context van reactietijd gemeten in verschillende eenheden, geldt dat als de meeteenheid wordt geschaald, de variatiebreedte evenredig meeschaalt. Als een maat bijvoorbeeld 1000 keer groter wordt uitgedrukt (bv. van seconden naar milliseconden), dan zal de variatiebreedte ook 1000 keer groter zijn.

Inzicht: De variatiebreedte is geen robuuste maat voor spreiding, omdat deze nul kan zijn (Q3−Q1=0Q_3 - Q_1 = 0) terwijl er toch spreiding bestaat (bijvoorbeeld als Q3=Q1Q_3 = Q_1 maar de waarden zijn niet allemaal identiek). De standaarddeviatie (sXs_X) is over het algemeen een betere maatstaf voor spreiding.

1.1.2 Samenvattende formules voor beschrijvende statistiek

Voor een dataset x1,x2,…,xnx_1, x_2, \dots, x_n:

  • Gemiddelde: xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i
  • Standaarddeviatie (steekproef): sX=1n−1∑i=1n(xi−xˉ)2s_X = \sqrt{\frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2}
  • Interkwartielafstand (IQR): IQR=Q3−Q1IQR = Q_3 - Q_1
  • Gemiddelde absolute afwijking (GAA): gaX=1n∑i=1n∣xi−xˉ∣\text{ga}_X = \frac{1}{n} \sum_{i=1}^{n} |x_i - \bar{x}|

1.1.3 Covariantie en Correlatie

  • Covariantie: covXY=1n−1∑i=1n(xi−xˉ)(yi−yˉ)\text{cov}_{XY} = \frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})(y_i - \bar{y})
  • Correlatiecoëfficiënt (rXYr_{XY}): rXY=∑i=1n(xi−xˉ)(yi−yˉ)(n−1)sXsY=covXYsXsYr_{XY} = \frac{\sum_{i=1}^{n} (x_i-\bar{x})(y_i-\bar{y})}{(n-1) s_X s_Y} = \frac{\text{cov}_{XY}}{s_X s_Y}

Belangrijk concept (Regressie): De determinatiecoëfficiënt (R2=rXY2R^2 = r_{XY}^2) is symmetrisch: de waarde is onafhankelijk van welke variabele als predictor (XX) en welke als uitkomst (YY) wordt gekozen. De helling (bb) en het intercept (aa) van het regressiemodel (y^i=a+bxiŷ_i = a + b x_i) zijn echter niet symmetrisch. b=rXYsYsXb = r_{XY} \frac{s_Y}{s_X} a=yˉ−bxˉa = \bar{y} - b\bar{x}

  • Voorspelling bij het gemiddelde: Bij de voorspelling van de uitkomstvariabele (YY) voor een observatie waarvan de predictorwaarde (XX) gelijk is aan het steekproefgemiddelde xˉ\bar{x}, is de voorspelde waarde altijd gelijk aan het steekproefgemiddelde yˉ\bar{y}.

1.2 Hypothesetoetsing en Experimenteel Ontwerp

1.2.1 Nulhypothese en Type I-fout

  • Nulhypothese (H0H_0): Stelt meestal geen effect, geen verschil, of een vastgestelde parameterwaarde vast.
  • Alternatieve Hypothese (HAH_A): Stelt dat er wel een effect of verschil is.
  • Type I-fout: Het verwerpen van de nulhypothese (H0H_0) terwijl deze in werkelijkheid waar is. De kans hierop wordt bepaald door het significantieniveau α\alpha.

Definitie p-waarde: De p-waarde is de kans om, uitgaande van de waarheid van de nulhypothese (H0H_0), een toetsingsgrootheid te observeren die minstens zo extreem is (in de richting van de alternatieve hypothese HAH_A) als de daadwerkelijk waargenomen waarde.

  • Besluitvorming: Als p-waarde≤αp\text{-waarde} \leq \alpha, wordt H0H_0 verworpen. Als p-waarde>αp\text{-waarde} > \alpha, wordt H0H_0 niet verworpen (wat niet gelijk is aan het accepteren dat H0H_0 waar is).

Voorbeeld Type I-fout bij proporties: Als H0:p=0.75H_0: p = 0.75 en HA:p>0.75H_A: p > 0.75, dan is de Type I-fout de kans om ten onrechte te concluderen dat voor meer dan driekwart van de populatie de score gedaald is (d.w.z., p>0.75p > 0.75), terwijl in werkelijkheid slechts p=0.75p=0.75 geldt.

1.2.2 Gerandomiseerde Experimenten

In een gerandomiseerd experimenteel onderzoek wijzen de onderzoekers willekeurig de verklarende variabele (de behandeling) toe aan de proefpersonen. De uitkomstvariabele wordt gemeten, niet toegewezen.

1.2.3 Bonferroni-correctie

Wanneer meerdere paren van hypothesetoetsen (bijv. paarvergelijkingen na een ANOVA-achtige opzet) onafhankelijk worden uitgevoerd, stijgt de kans op een Type I-fout (Family-Wise Error Rate, FWER). De Bonferroni-correctie controleert de FWER door het oorspronkelijke significantieniveau α\alpha te delen door het aantal uitgevoerde onafhankelijke toetsen (mm). αnieuw=αgewenstm\alpha_{\text{nieuw}} = \frac{\alpha_{\text{gewenst}}}{m} Als er kk groepen zijn, is het aantal unieke paren m=k(k−1)2m = \frac{k(k-1)}{2}. Voor 4 groepen (k=4k=4) zijn er m=4×32=6m = \frac{4 \times 3}{2} = 6 paren. Bij een gewenst α=0.10\alpha = 0.10: αnieuw=0.106≈0.01666…\alpha_{\text{nieuw}} = \frac{0.10}{6} \approx 0.01666\dots

1.3 Permutatietesten (Randomisatie testen)

Permutatietesten zijn een niet-parametrische methode om p-waarden te bepalen onder de nulhypothese dat de verdeling van de uitkomstvariabele identiek is over de groepen.

1.3.1 Principe

  1. **
Cover

Web-lectures-biostatistiek.pdf

1. Fundamentele concepten van statistiek, ruis en studieopzet

Dit gedeelte introduceert de basisprincipes van statistiek, inclusief de noodzaak ervan, de rol van ruis, de vergelijking tussen populatie en steekproef, en de fundamentele statistische paradigma's van schatting en toetsing, ondersteund door samenvattende statistieken en betrouwbaarheidsintervallen.

1.1 Introductie tot statistiek en doel

Statistiek is essentieel om te bepalen of een behandeling of observatie daadwerkelijk werkt of dat de resultaten louter aan toeval te wijten zijn. Dit vereist zowel een passieve rol (het beoordelen van statistiek in gepubliceerde literatuur) als een actieve rol (correcte data-analyse en interpretatie).

Populatie versus steekproef

  • Populatie: De hypothetische, volledige groep personen met een specifieke conditie waarover een uitspraak gedaan moet worden. Het is niet altijd mogelijk om deze groep direct te bereiken.

  • Steekproef (Sample): Een subgroep van de populatie waar de observaties daadwerkelijk worden uitgevoerd. Een steekproef kan herhaaldelijk worden getrokken, waarbij elke trekking potentieel andere resultaten oplevert.

  • Het doel is om via de steekproef conclusies te extrapoleren (inferentiële statistiek) naar de populatie, waarbij de deelgroep representatief moet zijn voor het geheel om het gevaar van extrapolatie te beheersen.

1.2 Ruis en variabiliteit

Ruis, ook wel willekeurige variabiliteit genoemd, is de 'prijs' die betaald wordt voor het werken met een steekproef in plaats van de gehele populatie. Het minimaliseren van ruis is cruciaal voor betrouwbare conclusies.

Bronnen van ruis

Er zijn drie primaire bronnen van ruis:

  1. Meetfout: Afwijkingen tussen de ware waarde en de gemeten waarde door de eindige precisie van het meetproces. Dit geldt voor kwalitatieve metingen (bv. bloeddrukmeting) en kwantitatieve metingen (bv. misclassificatie bij ja/nee vragen).

  2. Variabiliteit in de populatie (Biologische variabiliteit): De leden van de populatie verschillen onderling van elkaar.

  3. Eindige / kleine steekproef: Een kleinere steekproef introduceert meer onzekerheid.

Tip: De ruis kan verminderd worden door een voldoende grote steekproef te nemen en door metingen zo precies mogelijk uit te voeren. Hoe 'wilder' de variatie in de data, hoe groter de steekproef moet zijn om de ruis onder controle te houden. Een grotere steekproefgrootte (nn) leidt tot minder fout in schattingen 1.

1.3 Studieopzet (Design)

Het ontwerp van een studie heeft invloed op hoe effectief de ruis wordt beheerd en hoe causale conclusies kunnen worden getrokken. De twee belangrijkste statistische paradigma's zijn toetsing en schatting.

Efficiënt design

Een efficiënt design stelt de onderzoeker in staat dezelfde precisie of conclusiewaarde te bereiken met een kleinere steekproef. Een voordeel is dat toevalligheden uitgeschakeld worden doordat ze bij zowel de voor- als nameting spelen. Een nadeel is dat deze designs doorgaans geen causale uitspraken toelaten over de behandeling versus natuurlijke evolutie.

Cross-over design

Dit design houdt in dat proefpersonen overstappen van de ene behandeling naar de andere, maar niet noodzakelijk in dezelfde volgorde. Dit maakt het mogelijk het effect van natuurlijke evolutie en de behandeling van elkaar te scheiden. Reversibiliteit is hierbij essentieel: het effect van de ene behandeling mag de andere niet beïnvloeden. Het optreden van een carry-over (het effect van de vorige behandeling is nog merkbaar bij de volgende) moet vermeden worden.

1.4 Beschrijvende statistiek: maten voor locatie en spreiding

Beschrijvende statistiek richt zich op het visualiseren en beschrijven van de geobserveerde data.

Maten voor locatie (Centraliteit)

Deze maten beschrijven de centrale tendens van de data:

  • Gemiddelde (barx\\bar{x} of mu\\mu): De som van alle waarden gedeeld door het aantal waarnemingen. Het gemiddelde van de afwijkingen van het gemiddelde is altijd nul. Het is erg gevoelig voor uitschieters (outliers).

  • Mediaan: De middelste waarde na ordening van de data (klein naar groot). Het is minder gevoelig voor uitschieters dan het gemiddelde, hoewel het er niet volledig ongevoelig voor is. De mediaan is gelijk aan de tweede kwartiel (Q2Q2).

  • Modus: De meest voorkomende waarneming. Is niet altijd een bruikbare maat.

Relatie bij verdelingen:

  • Normaalverdeling (symmetrisch): Gemiddelde = Mediaan = Modus.

  • Scheve data: Gemiddelde en mediaan verschillen. Bij scheef naar rechts (positieve scheefheid) ligt het gemiddelde boven de mediaan; bij scheef naar links (negatieve scheefheid) ligt het gemiddelde onder de mediaan.

Cover

Week 1 Measures of Central Tendency.pptx

Table of contents

  1. Central Tendency

1. Central Tendency

1.1 Measures of central tendency

Measures of central tendency are statistical values that represent the typical or central value of a set of data. These measures help summarize a dataset by providing a single value that best describes the center of the data.

The most common measures are the mean, median, and mode.

A target with three darts hitting the bullseye, symbolizing learning objectives.

  • Mean: The mean is the average of all values in a dataset. It is calculated by summing all the numbers and then dividing by the count of those numbers.
  • 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 numbers.
  • Mode: The mode is the value that appears most frequently in a dataset. A dataset can have one mode, more than one mode, or no mode at all.

1.2 Calculating the mean

The mean is calculated by summing all the values in a dataset and then dividing by the total number of values. For example, if a dataset contains the numbers 2, 2, 5, 6, 7, and 8, the sum is 30. Dividing this sum by the 6 values gives a mean of 5.

1.3 Calculating the median

The median is the middle value of a dataset when the values are arranged in ascending order.

  • Odd number of values: If a dataset has an odd number of values, the median is the single middle number. For instance, in the ordered set 8, 11, 15, 18, 24, 30, 31, the median is 18.
  • Even number of values: If a dataset has an even number of values, the median is the average of the two middle numbers. For example, in the ordered set 11, 15, 18, 21, 24, 30, 31, the two middle numbers are 18 and 21. Their average is (18+21)/2=19.5(18 + 21) / 2 = 19.5.

This diagram illustrates how to find the median of a dataset, distinguishing between datasets with an odd and even number of values.

1.4 Calculating the mode

The mode is the value that occurs most often in a dataset.

  • Example: In the dataset 2, 2, 5, 6, 7, 8, the number 2 appears twice, which is more than any other number. Therefore, the mode is 2.

This diagram explains the concept of 'mode' in statistics, defining it as the most frequent value in a dataset.

1.5 Classwork

From the provided table, calculate the mean, median, and mode.

1.6 Assignment

The assignment requires grouping a dataset of 50 plank lengths into classes with a size of 10. After forming the frequency distribution, you need to calculate the mean, identify the median class and estimate the median, and identify the modal class and estimate the mode.

The data provided is: 33, 49, 81, 58, 59, 71, 42, 88, 68, 91, 54, 32, 50, 59, 41, 55, 38, 56, 86, 62, 50, 69, 21, 84, 77, 33, 71, 42, 69, 93, 61, 51, 46, 76, 63, 96, 26, 70, 66, 80, 44, 52, 60, 33, 68, 39, 61, 71, 48, 66.

Cover

week1.pdf

Table of contents

  1. Week 1: Basic Concepts
  2. Data tables and variables
  3. Sampling and inference
  4. What have we learned?
  5. Looking ahead

1. Week 1: Basic Concepts

1.1 What is statistics?

Statistics is the science dedicated to collecting, organizing, analyzing, and interpreting data. This process allows us to understand patterns and draw conclusions from observations.

  • Descriptive statistics: This branch of statistics focuses on summarizing the data that has been observed.
  • Statistical inference: This branch uses a sample of data to draw conclusions and make generalizations about a larger population, acknowledging inherent uncertainty 4.

📝 Statistics is the science of collecting, organizing, analyzing, and interpreting data, such as answering the question "How many children do families in our city have?" by collecting observations, organizing them, and using the sample to learn about the city 4.

1.2 Why do we analyze data?

The primary goal of data analysis is to transform raw, recorded observations into meaningful information. This information is crucial for answering specific questions and gaining insights.

  • Data analysis objectives:
  • Describe and summarize collected data.
  • Identify potential relationships between different variables.
  • Compare variables across distinct groups.
  • Detect differences in the distributions of variables.
  • Forecast future outcomes based on observed trends 5.

1.3 What is data?

Data refers to factual information, such as measurements or statistics, that serves as a foundation for reasoning, discussion, or calculation. For information to be considered data, it must be based on measurement and support reasoning or discussion.

  • Data characteristics:
  • Content must be factual, derived from measurement.
  • Must aid in reasoning or discussion.
  • Needs to be structured and organized.
  • Requires cleaning to remove errors or inconsistencies.
  • Must be analyzed to extract insights 6.

1.4 Data analysis process

The data analysis process is a structured approach that begins with clearly defining the problem and culminates in a comprehensive report.

  • Preliminary step: Formulate a clear problem statement.
  • Stage 1:
  • Step 1: Identify relevant variables.
  • Step 2: Enter the data into a usable format.
  • Stage 2:
  • Step 3: Perform descriptive analysis to summarize the data.
  • Stage 3:
  • Step 4: Generalize the problem to a wider context.
  • Step 5: Select the most appropriate results for interpretation.
  • Stage 4:
  • Step 6: Write a clear and concise report of the findings 7.

2. Data tables and variables

2.1 The observation unit

Before analyzing data, it's crucial to understand the fundamental components of a data table. This involves asking three key questions about the data: what each row represents, what each column measures, and the context, time period, and units of the recorded values.

A number alone is not informative without this context 9.

  • Observations: These are the individual units or cases for which information is collected, such as a person, a firm, a country, or a transaction.
  • Variables: These are the specific characteristics or attributes that are measured or recorded for each observation 10.

The choice of what one row represents is a primary decision. For instance, a store might organize its data with customers, products, or purchases as the observation unit, each leading to different sets of recorded variables 11.

2.2 Reading a data table

A data table is structured with columns representing variables and rows representing observations. Each cell within the table contains a specific value for a particular variable and observation 12.

  • Columns: Represent the variables being measured.
  • Rows: Represent the individual observations or cases.
  • Cell: Contains the value of a specific variable for a specific observation.
  • Notation: A variable is often denoted by XX, and its observed value for the ii-th unit is written as xix_i 12.

A diagram illustrating the structure of a data table, showing how rows and columns are organized.