Probability Statistics

Cover

SWO 1.16_regressie(1).pptx

Inleiding tot regressieanalyse

Dit onderwerp introduceert de algemene concepten van regressieanalyse, benadrukt de noodzaak ervan naast correlatie, en bespreekt de verschillende soorten regressie.

1. Regressie: algemene concepten en soorten

1.1 Waarom regressie naast correlatie?

Correlatie analyseert de sterkte en richting van het verband tussen twee continue variabelen. Regressieanalyse gaat verder dan correlatie door:

  • Voorspellend karakter: Regressie maakt het mogelijk om voorspellingen te doen over de waarde van een afhankelijke variabele op basis van de waarden van een of meer onafhankelijke variabelen.
  • Invloed van confounders: Het stelt onderzoekers in staat om de invloed van meerdere onafhankelijke variabelen (confounders) gelijktijdig mee te nemen in de analyse, wat leidt tot een meer genuanceerd begrip van de verbanden.
  • Robuuste methode: Het biedt een robuuste methode om verbanden te kwantificeren en te toetsen.

1.2 Soorten regressieanalyse

Het document bespreekt de volgende soorten regressieanalyses:

  • Enkelvoudige lineaire regressie: Analyseert de relatie tussen één continue onafhankelijke variabele en één continue afhankelijke variabele.
  • Multiple (multivariabele) regressie: Analyseert de relatie tussen twee of meer onafhankelijke variabelen en één continue afhankelijke variabele. Dit is een veelgebruikte methode in onderzoek om de voorspellende kracht te verbeteren.
  • Logistische regressie: Gebruikt wanneer de afhankelijke variabele een binaire variabele is (0 of 1), zoals 'ziek' of 'niet ziek'. Het modelleert de waarschijnlijkheid van de uitkomst.
  • Niet-lineaire regressie: Wordt toegepast wanneer het verband tussen variabelen niet lineair is (bv. kwadratisch, kubisch).
  • Poisson regressie: Wordt gebruikt voor het modelleren van tellingen, waarbij de afhankelijke variabele een niet-negatief geheel getal is (bv. aantal doorligwonden).
  • Cox Proportional Hazards Regressie: Wordt gebruikt in survival analyse om de tijd tot een bepaalde gebeurtenis te analyseren, zoals overlijden.

2. Enkelvoudige lineaire regressie

2.1 Basisconcepten

Bij enkelvoudige lineaire regressie onderzoeken we de lineaire relatie tussen een onafhankelijke variabele (XX) en een afhankelijke variabele (YY). Het doel is om de best passende lijn door de datapunten te vinden, de zogenaamde regressielijn.

De algemene vergelijking voor een lineaire regressielijn is: Y=a+bxY = a + bx Hierin is:

  • YY: de voorspelde waarde van de afhankelijke variabele.
  • aa: de intercept, het punt waar de regressielijn de Y-as snijdt (de waarde van YY als X=0X=0).
  • bb: de helling (richtingscoëfficiënt) van de regressielijn, die aangeeft hoeveel YY verandert als XX met één eenheid toeneemt.
  • xx: de waarde van de onafhankelijke variabele.

Een foutterm (of residu) wordt vaak toegevoegd om de onverklaarde variantie weer te geven: Y=a+bx+ϵY = a + bx + \epsilon waarbij ϵ\epsilon de foutterm is.

2.2 Methode: Ordinary Least Squares (OLS)

Ordinary Least Squares (OLS) is de methode die wordt gebruikt om de regressiecoëfficiënten (aa en bb) te schatten. Het doel van OLS is om de lijn te vinden die de som van de gekwadrateerde verschillen tussen de werkelijke waarden van YY en de voorspelde waarden van YY minimaliseert.

2.3 Aanpak van enkelvoudige lineaire regressie

De analyse van enkelvoudige lineaire regressie omvat doorgaans drie stappen:

  • Stap A: Bepaling van de regressiecoëfficiënten: Het schatten van de intercept (aa) en de helling (bb) van de regressielijn.
  • Stap B: Evaluatie van het model aan de hand van de determinatiecoëfficiënt (R2R^2): Dit meet welk deel van de variantie in de afhankelijke variabele wordt verklaard door de onafhankelijke variabele.
  • Sum of Squares Total (SS T ): De totale variantie in de afhankelijke variabele.
  • Sum of Squares Model (SS M ): De variantie in de afhankelijke variabele die wordt verklaard door het model.
  • Sum of Squares Residuals (SS R ): De variantie in de afhankelijke variabele die niet door het model wordt verklaard (de foutmarge).
  • De relatie is: SST=SSR+SSMSS T = SS R + SS M.
  • De determinatiecoëfficiënt wordt berekend als: R2=SSMSSTR^2 = \frac{SS M}{SS T}.
  • Stap C: Significantie van het model evalueren: Dit gebeurt vaak via een ANOVA-test om te bepalen of het model als geheel significant is.

2.4 Correlatiecoëfficiënt (rr) versus Determinatiecoëfficiënt (R2R^2)

  • Correlatiecoëfficiënt (rr): Een maat voor de gezamenlijke variatie van twee variabelen. De waarde ligt tussen -1 en +1.
  • Richting: Positief ($r>
Cover

SWO 1.16_regressie(1).pptx

Correlatie en algemene regressieconcepten

Dit onderwerp introduceert de principes van correlatie als voorbereiding op regressieanalyse, verklaart de nuttigheid van regressie en bespreekt verschillende regressietypen.

1. Correlatie en algemene regressieconcepten

1.1 Opfrissing correlatie: verbanden tussen variabelen

Correlatie meet de sterkte en richting van het lineaire verband tussen twee continue variabelen. De correlatiecoëfficiënt, Pearson's rr, varieert tussen −1-1 en 11.

Voorwaarden voor Pearson's rr:

  • Variabelen zijn ordinaal, interval of ratio.
  • Het verband is lineair.
  • De data is minimaal beïnvloed door outliers.
  • Variabelen zijn normaal verdeeld.

Wanneer deze voorwaarden niet voldaan zijn, kan Spearman's rho (ρ\rho) of Kendall's tau gebruikt worden, met name bij niet-normaal verdeelde data, niet-lineaire relaties of ordinale data.

1.2 Regressie: algemene concepten en soorten

Regressieanalyse is een uitbreiding op correlatieanalyse en biedt een voorspellend karakter. Het maakt het mogelijk om rekening te houden met meerdere beïnvloedende factoren (confounders) en is een robuuste methode om verbanden te kwantificeren.

1.2.1 Waarom regressie gebruiken?

  • Voorspellend karakter: Het helpt bij het voorspellen van de waarde van een afhankelijke variabele op basis van een of meer onafhankelijke variabelen.
  • Inclusie van confounders: Meerdere onafhankelijke variabelen kunnen tegelijkertijd worden meegenomen in het model om een meer nauwkeurige voorspelling te doen.
  • Robuuste methode: Biedt een gestructureerde manier om verbanden te kwantificeren.

1.2.2 Verschillende soorten regressie

Er bestaan diverse vormen van regressieanalyse, elk geschikt voor specifieke datatypen en onderzoeksvragen:

  • Enkelvoudige lineaire regressie: Analyseert de relatie tussen één continue onafhankelijke variabele en één continue afhankelijke variabele.
  • Multiple (multivariabele) regressie: Onderzoekt de relatie tussen twee of meer onafhankelijke variabelen en een continue afhankelijke variabele. Dit is de meest gebruikte vorm in onderzoek.
  • Logistische regressie: Wordt toegepast wanneer de afhankelijke variabele een binaire uitkomst heeft (0 of 1), zoals 'ziek' of 'niet ziek'.
  • Niet-lineaire regressie: Geschikt wanneer het verband tussen de variabelen niet lineair is (bijvoorbeeld kwadratisch of exponentieel). Een voorbeeld is de relatie tussen leeftijd en uithoudingsvermogen.
  • Poisson regressie: Gebruikt voor het modelleren van tellingen, waarbij de afhankelijke variabele niet-negatieve gehele getallen zijn, zoals het aantal doorligwonden per afdeling.
  • Cox Proportional Hazards Regressie (Survivalanalyse): Wordt gebruikt voor tijd-tot-gebeurtenis analyses, om de snelheid waarmee een gebeurtenis optreedt te onderzoeken en hoe deze wordt beïnvloed door verschillende factoren (hazard ratio's).

1.3 Enkelvoudige lineaire regressie

Enkelvoudige lineaire regressie modelleert de lineaire relatie tussen één onafhankelijke variabele (XX) en één afhankelijke variabele (YY). De kern is het vinden van de "best passende lijn" door de data.

1.3.1 Het regressiemodel

De lineaire regressievergelijking is van de vorm: Y=a+bX+ϵY = a + bX + \epsilon Waar:

  • YY is de afhankelijke variabele (de te voorspellen variabele).
  • aa is de intercept (constante term), de waarde van YY wanneer X=0X=0.
  • bb is de regressiecoëfficiënt (helling), die aangeeft hoeveel YY verandert bij een eenheidstoename in XX.
  • XX is de onafhankelijke variabele (de voorspellende variabele).
  • ϵ\epsilon is de foutterm, die de onverklaarde variantie vertegenwoordigt.

1.3.2 Ordinary Least Squares (OLS)

Ordinary Least Squares (OLS) is de methode die gebruikt wordt om de regressiecoëfficiënten (aa en bb) te schatten. OLS minimaliseert de som van de gekwadrateerde verschillen tussen de waargenomen waarden van YY en de door het model voorspelde waarden van YY (de residuen).

1.3.3 Stappen in enkelvoudige lineaire regressie

  1. Bepaling van de regressiecoëfficiënten (aa en bb): Met OLS wordt de lijn gevonden die het best bij de data past.
  2. Evaluatie van het model middels de determinatiecoëfficiënt (R2R^2): Dit kwantificeert hoeveel van de variantie in YY verklaard wordt door XX.
  3. Significantie van het model evalueren (via ANOVA): Dit bepaalt of het model statistisch significant is.

1.3.4 Determinatiecoëfficiënt (R2R^2)

De determinatiecoëfficiënt, R2R^2, is het kwadraat van de correlatiecoëfficiënt (rr) bij enkelvoudige regressie (R2=r2R^2 = r^2). R2=Sum of Squares Model (SSM)Sum of Squares Total (SST)=SST−Sum of Squares Residuals (SSR)SSTR^2 = \frac{\text{Sum of Squares Model (SSM)}}{\text{Sum of Squares Total (SST)}} = \frac{\text{SST} - \text{Sum of Squares Residuals (SSR)}}{\text{SST}} R2R^2 geeft het percentage van de totale variantie in de afhankelijke variabele (YY) aan dat verklaard wordt door de onafhankelijke variabele (XX). Een R2R^2 van 0.640.64 betekent bijvoorbeeld dat 64%64\% van de variantie in YY verklaard wordt door XX

Cover

Tabelas de frequências.pptx

📚 Tabelas de frequências.pptx

Brief overview

This document introduces the construction and application of frequency tables. Understanding frequency tables is crucial for organizing and interpreting both discrete and continuous data, enabling effective data analysis and summary.

Key points

  • Organizing discrete data using absolute and relative frequency tables.

  • Creating cumulative frequency tables for discrete and continuous data.

  • Methods for constructing frequency tables for continuous quantitative data.

  • Grouping continuous data into classes or intervals for summarization.

  • Practical approaches to solving exercises involving frequency tables.


1. Organizing data with frequency tables

1.1 Introduction to frequency tables

  • Frequency tables help organize collected data.

  • They show absolute and relative frequencies.

  • These frequencies can be simple or cumulative.

  • Organizing data this way summarizes it without losing its core meaning.

📝 Example: A basketball coach might use a frequency table to track the number of fouls each player commits in a game.

1.2 Organizing discrete quantitative data

  • For data that can only take specific values, like the number of fouls, a frequency table is useful.

  • This method shows how often each specific value appears in your data set.

Number of fouls

Player count

0

3

1

5

2

2

3

1

  • The table lists each possible number of fouls and how many players committed that many fouls.

  • You lose the order of original data recording, but the main information remains.

1.3 Organizing continuous quantitative data

  • Continuous data can take many different values, making simple lists impractical.

  • To organize this data, we group values into classes, which are intervals.

📝 Example: If you were measuring the heights of students, you would create height ranges like 150-155 cm, 155-160 cm, etc.

  • Each class represents a range of values.

  • The frequency table then counts how many data points fall within each class interval.

Height range (cm)

Number of students

150 - 155

7

155 - 160

12

160 - 165

15

165 - 170

8

  • This grouping makes it easier to see patterns in the data.

  • The exact original values within each interval are not shown, but the distribution is clear.

Cover

Test 2 Review STATS.docx

1. Basic probability and sample space

This section covers the foundational concepts of probability, including defining the sample space, calculating simple probabilities from frequency data, understanding odds, and mastering the addition rules for combining probabilities of events.

1.1 Sample space and simple probabilities

The sample space is the set of all possible outcomes of a statistical experiment. For simple experiments, the sample space must be fully enumerated. For instance, when considering the genders of three children, the sample space includes all 8 combinations of Boys (b) and Girls (g): {bbb,bbg,bgb,bgg,gbb,gbg,ggb,ggg}\{bbb, bbg, bgb, bgg, gbb, gbg, ggb, ggg\}

If we assume boys and girls are equally likely, the probability of any specific outcome (a simple event) is generally calculated as: P(Simple Event)=Number of ways the event can occurTotal number of outcomes in the sample spaceP(\text{Simple Event}) = \frac{\text{Number of ways the event can occur}}{\text{Total number of outcomes in the sample space}}

For experiments like births where outcomes are equally likely, the probability of getting three children of the same gender (bbb or ggg) is P(all same gender)=28=14P(\text{all same gender}) = \frac{2}{8} = \frac{1}{4}.

Probabilities can also be determined directly from observed frequencies in surveys or historical data. If 1250 United States adults were surveyed and 208 were smokers: P(smoker)=Number of smokersTotal surveyed=2081250P(\text{smoker}) = \frac{\text{Number of smokers}}{\text{Total surveyed}} = \frac{208}{1250} P(not smoker)=1−P(smoker)=1250−2081250=10421250P(\text{not smoker}) = 1 - P(\text{smoker}) = \frac{1250 - 208}{1250} = \frac{1042}{1250}

When dealing with data presented in frequency tables, probabilities are calculated by dividing the frequency of the desired category by the total number of observations.

Tip: Always define the sample space clearly for any experiment involving births or simple selections, as it forms the denominator for calculating simple probabilities.

The following table illustrates frequencies across different sales volume ranges over a period of months, which is essential for calculating empirical probabilities related to sales performance:

This table displays the frequency of sales volume ranges over a period of months.

Based on the provided sales distribution, the probability that the sales representative will sell between 75,000 and 124,999 next month is found by summing the counts for the two relevant categories (50,000−50,000-74,999 and 75,000−75,000-99,999, assuming the provided table implies these categories contribute to the target range, or using the explicit range 100,000−100,000-124,999 if the total sample size is known). If the total observation period was, for example, 36 months, and the 100,000−100,000-124,999 range occurred 9 times, P(\100,000 \text{ to } $124,999) = \frac{9}{\text{Total months}}$.

1.2 Odds and Complimentary Events

Odds describe the relative likelihood of an event occurring versus not occurring. Payoff odds offered by a casino, such as 35:1 for a roulette bet, represent the ratio of the expected payout to the stake, not the true probability ratio.

The actual odds against an outcome are calculated based on the true probabilities. If P(A)P(A) is the probability of an event AA occurring, then P(not A)=1−P(A)P(\text{not } A) = 1 - P(A). The odds against AA are given by the ratio: Odds against A=P(not A):P(A)\text{Odds against } A = P(\text{not } A) : P(A)

For a roulette bet on a single number (where the probability of winning is 1/381/38 and losing is 37/3837/38): Actual Odds Against Winning=3738:138 or 37:1\text{Actual Odds Against Winning} = \frac{37}{38} : \frac{1}{38} \text{ or } 37:1

The net profit if you win a bet is the total payoff minus the initial stake amount. If you bet 5 dollars with payoff odds of 35:1, your gross winning is 5×35=1755 \times 35 = 175 dollars, and your net profit is 175−5=170175 - 5 = 170 dollars (you get your original 5 dollars back plus 175 dollars, totaling 180 dollars received).

Rules of Complimentary Events are based on the principle that an event either occurs or it does not. If AA is an event, its complement, AcA^c (or not A\text{not } A), is the event that AA does not occur. P(A)+P(Ac)=1P(A) + P(A^c) = 1 This is particularly useful for finding the probability of "at least one" occurrence. For example, if the defect rate for a DVD is P(Defective)=0.005P(\text{Defective}) = 0.005, the probability of a disk being good is P(Good)=1−0.005=0.995P(\text{Good}) = 1 - 0.005 = 0.995. The probability of getting at least one defective disk in a lot of 50 is found by calculating the complement: P(At least one defective)=1−P(None are defective)P(\text{At least one defective}) = 1 - P(\text{None are defective}) Assuming independence for simplicity in this context: P(At least one defective)=1−(P(Good))50=1−(0.995)50P(\text{At least one defective}) = 1 - (P(\text{Good}))^{50} = 1 - (0.995)^{50}

1.3 The Addition Rule for Probabilities

The Addition Rule is used to find P(A or B)P(A \text{ or } B), the probability that event AA occurs, event BB occurs, or both occur. The key connector word

Cover

🧠 The 3.docx

Table of contents

  1. The 3-Question Mean / Median / Mode Test

1. The 3-Question Mean / Median / Mode Test

1.1 Decision tree for choosing a measure of central tendency

This section outlines a three-question decision tree to help determine whether the mean, median, or mode is the most appropriate measure of central tendency for a given dataset. The process guides the user through a series of questions about the data's characteristics.

  • Question 1: The first question asks if the data consists of categories or labels.

  • If the data is categorical (e.g., color, gender, major), the mode is the appropriate measure.

  • If the data is not categorical, proceed to Question 2.

  • Question 2: The second question probes for the presence of extreme values, skewness, or outliers.

  • If the data contains extreme values (e.g., income, house prices, reaction times, unusual test scores), the median is the preferred measure.

  • If the data does not exhibit extreme values, proceed to Question 3.

  • Question 3: The third question checks if the data is "normal" numerical data that appears balanced.

  • If the data is balanced numerical data, the mean is the suitable measure.

📝 A dataset of student majors (e.g., Biology, Psychology, Computer Science, Biology, English) is categorical. Therefore, the answer to Question 1 is "YES," and the appropriate measure of central tendency is the mode.

Cover

🧠 The 3.docx

Table of contents

  1. The 3-Question Mean / Median / Mode Test

1. The 3-Question Mean / Median / Mode Test

1.1 Decision tree for choosing a measure of central tendency

This section outlines a three-question decision tree to help determine whether the mean, median, or mode is the most appropriate measure of central tendency for a given dataset. The process guides the user through a series of questions about the data's characteristics.

  • Question 1: The first question asks if the data consists of categories or labels.

  • If the data is categorical (e.g., color, gender, major), the mode is the appropriate measure.

  • If the data is not categorical, proceed to Question 2.

  • Question 2: The second question probes for the presence of extreme values, skewness, or outliers.

  • If the data contains extreme values (e.g., income, house prices, reaction times, unusual test scores), the median is the preferred measure.

  • If the data does not exhibit extreme values, proceed to Question 3.

  • Question 3: The third question checks if the data is "normal" numerical data that appears balanced.

  • If the data is balanced numerical data, the mean is the suitable measure.

📝 A dataset of student majors (e.g., Biology, Psychology, Computer Science, Biology, English) is categorical. Therefore, the answer to Question 1 is "YES," and the appropriate measure of central tendency is the mode.

Cover

Theoretical probability & Venn diagram (1).pptx

Table of contents

  1. Probability using Venn diagram
  2. Example

1. Probability using Venn diagram

1.1 Theoretical probability

Theoretical probability is calculated based on the number of favorable outcomes divided by the total number of possible outcomes. This is often determined through logical reasoning rather than experimentation.

  • Sample space: The set of all possible outcomes of an experiment.
  • Event: A specific outcome or set of outcomes within the sample space.
  • Probability of an event (P(E)): Calculated as the number of outcomes in event E divided by the total number of possible outcomes in the sample space. P(E)=Number of outcomes in ETotal number of possible outcomesP(E) = \frac{\text{Number of outcomes in E}}{\text{Total number of possible outcomes}}
  • Complement of an event (P(E')): The probability that an event E does not occur. It is calculated as 1−P(E)1 - P(E).

📝 For an eight-sided die, the sample space is {1, 2, 3, 4, 5, 6, 7, 8}. If event E is rolling a number greater than 5, then E = {6, 7, 8}. The probability of E is P(E)=38P(E) = \frac{3}{8}, and the probability of not rolling a number greater than 5 is P(E′)=1−38=58P(E') = 1 - \frac{3}{8} = \frac{5}{8}.

1.2 Probability using Venn diagram

Venn diagrams are useful tools for visualizing and calculating probabilities involving multiple events, especially when there is overlap between them.

  • In a class of 20 students, let A be the set of students who like Apples and B be the set of students who like Bananas.

  • 8 students like Apples.

  • 6 students like Bananas.

  • 3 students like both Apples and Bananas.

  • Calculating probabilities from a Venn diagram:

  • P(A): The probability that a randomly selected student likes Apples. This includes students who like only Apples and those who like both.

  • P(A ∩ B): The probability that a randomly selected student likes both Apples and Bananas. This is the intersection of sets A and B.

  • P(neither): The probability that a randomly selected student likes neither Apples nor Bananas. This is the complement of the union of A and B.

  • Determining the number of students in each category:

  • Students who like only Apples: Total who like Apples - Those who like both = 8−3=58 - 3 = 5.

  • Students who like only Bananas: Total who like Bananas - Those who like both = 6−3=36 - 3 = 3.

  • Students who like at least one fruit: Students who like only Apples + Students who like only Bananas + Students who like both = 5+3+3=115 + 3 + 3 = 11.

  • Students who like neither fruit: Total students - Students who like at least one fruit = 20−11=920 - 11 = 9.

📝 In a class of 20 students, 8 like Apples, 6 like Bananas, and 3 like both. The probability of a student liking Apples is P(A)=820P(A) = \frac{8}{20}. The probability of a student liking both is P(A∩B)=320P(A \cap B) = \frac{3}{20}. The number of students who like at least one fruit is 55 (only Apples) +3+ 3 (only Bananas) +3+ 3 (both) =11= 11. Therefore, the probability of liking neither fruit is P(neither)=920P(\text{neither}) = \frac{9}{20}.

2. Example

2.1 Library readers and book genres

This example involves a group of 50 library readers and their preferences for science fiction and detective stories. We need to determine the number of readers who like both genres and the probabilities of selecting readers with specific preferences.

  • Total readers: 50
  • Like science fiction (SF): 31
  • Like detective stories (DS): 20
  • Dislike both SF and DS: 12

To solve this, we can use a Venn diagram. The number of readers who like at least one of the genres is the total number of readers minus those who dislike both: 50−12=3850 - 12 = 38.

Let n(SF)n(SF) be the number of readers who like science fiction, and n(DS)n(DS) be the number of readers who like detective stories. The number of readers who like both is given by the formula: n(SF∪DS)=n(SF)+n(DS)−n(SF∩DS)n(SF \cup DS) = n(SF) + n(DS) - n(SF \cap DS)

We know n(SF∪DS)=38n(SF \cup DS) = 38, n(SF)=31n(SF) = 31, and n(DS)=20n(DS) = 20. So, we can find n(SF∩DS)n(SF \cap DS): 38=31+20−n(SF∩DS)38 = 31 + 20 - n(SF \cap DS) 38=51−n(SF∩DS)38 = 51 - n(SF \cap DS) n(SF∩DS)=51−38=13n(SF \cap DS) = 51 - 38 = 13

So, 13 readers like both science fiction and detective stories.

The number of readers who like exactly one genre is the sum of those who like only SF and those who like only DS.

  • Only SF: n(SF)−n(SF∩DS)=31−13=18n(SF) - n(SF \cap DS) = 31 - 13 = 18
  • Only DS: n(DS)−n(SF∩DS)=20−13=7n(DS) - n(SF \cap DS) = 20 - 13 = 7
  • Exactly one genre: 18+7=2518 + 7 = 25

Now, we can find the probabilities:

  • Probability of liking both SF and DS: P(SF∩DS)=Number who like bothTotal readers=1350P(SF \cap DS) = \frac{\text{Number who like both}}{\text{Total readers}} = \frac{13}{50}

  • Probability of liking exactly one genre: P(Exactly one)=Number who like exactly oneTotal readers=2550=12P(\text{Exactly one}) = \frac{\text{Number who like exactly one}}{\text{Total readers}} = \frac{25}{50} = \frac{1}{2}

Cover

timeseries merge.pdf

📚 timeseries merge.pdf

Brief overview

This document introduces the fundamental concepts of time series analysis, covering its definition, diverse applications, and core components such as trend and seasonality. It provides a foundational understanding for analyzing sequential data across various disciplines.

Key points

  • Overview of time series data types and their fundamental components.
  • Explanation of transformations and classical decomposition models.
  • Understanding of operators, stationarity, and relevant statistical tests.
  • Introduction to stochastic models including AR, MA, ARMA, ARIMA, and SARIMA.

1. Introduction to time series analysis

1.1 Definition and examples of time series

  • A time series is a sequence of measurements or counts taken at successive time points.
  • These observations are collected sequentially over time.
  • Time series analysis is crucial in statistics and applied across many fields.

📝 Example: Daily stock market indices, monthly rainfall, annual crop yields, and yearly infant mortality rates are all examples of time series data 1.

1.2 Types of time series data

  • Time series data can originate from various domains, each with distinct characteristics.
  • These types help in understanding the nature of the data and choosing appropriate analysis methods.

1.2.1 Economic and financial time series

  • These relate to economic activity and financial markets.
  • Examples include stock prices, export totals, company profits, and income levels recorded over time.

1.2.2 Physical time series

  • Common in the physical sciences, especially meteorology and geophysics.
  • Examples are daily rainfall, hourly air temperatures, and continuous measurements of environmental factors.

1.2.3 Marketing time series

  • Used in commerce to analyze sales performance and related metrics.
  • This can include weekly or monthly sales figures, advertising costs, and revenue receipts 2.

1.2.4 Demographic time series

  • Focuses on population changes and vital statistics.
  • Examples include annual population totals for a country or monthly birth rates.

1.2.5 Process control data

  • Used in manufacturing to monitor and maintain process quality.
  • Measurements are plotted against time to detect deviations from target values, allowing for corrective actions.

1.2.6 Binary processes

  • Observations can only take one of two values, typically 0 or 1.
  • Predicting when the process might switch values is a common challenge 3.

1.2.7 Point processes

  • Involve a series of events occurring randomly over time, not necessarily at equally spaced intervals.
  • Analysis focuses on the number of events in a period or the time between events.

🔑 Important: Point process analysis methods differ significantly from standard time series analysis 4.

1.3 Terminology: Continuous vs. Discrete time series

  • A continuous time series has observations made continuously over time, like heart rate monitoring.
  • A discrete time series has observations taken at specific, usually equally spaced, times.
  • This course focuses on discrete time series, which are most common in practice.

1.3.1 Discrete time series origins

  • Discrete series can arise by sampling continuous data at regular intervals.
  • They can also emerge from accumulating values over equal time intervals, like monthly exports.

🔑 Important: Unlike random samples, successive observations in a time series are usually dependent and must be analyzed in their temporal order 5.

1.4 Stochastic nature of time series

  • If future values can be predicted exactly from past values, the series is deterministic.
  • Most time series are stochastic, meaning the future is only partly determined by the past.
  • Predictions for stochastic series involve probability distributions conditioned on past observations.

1.5 Basic descriptive techniques and components

  • Standard summary statistics (mean, standard deviation) can be misleading in time series with systematic components like trend or seasonality.
  • Time series are typically decomposed into several components to understand their variation.

1.5.1 Trend

  • The trend represents the long-term change in the average level of a time series.
  • It can be linear or non-linear, indicating a sustained increase or decrease in the data over time.
Cover

Topic 05 Discrete_261112_001109.pdf

Table of contents

  1. Discrete probability distributions
  2. Mean, variance, standard deviation, and expectation
  3. The binomial distribution
  4. The binomial distribution mean, variance, and standard deviation
  5. Other types of distributions
  6. Hypergeometric distribution

1. Discrete probability distributions

1.1 Probability distributions

A random variable is a variable whose values are determined by chance. A discrete probability distribution lists the possible values a random variable can take and their corresponding probabilities 2.

The probabilities in a discrete probability distribution must satisfy two key properties:

  • Each probability must be between 0 and 1, inclusive.
  • The sum of all probabilities for all possible values of the random variable must equal 1 2.

1.2 Example 5-1: Rolling a die

Construct a probability distribution for rolling a single die 3.

📝 For a single die roll, the possible values are 1, 2, 3, 4, 5, and 6. Each value has a probability of 16\frac{1}{6} 3.

1.3 Example 5-2: Tossing coins

Represent graphically the probability distribution for the sample space for tossing three coins 4.

2. Mean, variance, standard deviation, and expectation

2.1 Mean of a discrete probability distribution

The mean of a discrete probability distribution, denoted by μ\mu, represents the theoretical average value of the random variable. It is calculated by summing the products of each possible outcome and its corresponding probability.

The formula for the mean is μ=∑X⋅P(X)\mu = \sum X \cdot P(X) 5.

When calculating the mean, variance, and standard deviation, results should be rounded to one more decimal place than the outcome XX. Fractions should be reduced to their lowest terms 6.

2.2 Example: Rolling a die

To find the mean of the number of spots that appear when a die is tossed, we sum the product of each face value and its probability.

  • Die roll outcomes: 1, 2, 3, 4, 5, 6
  • Probability of each outcome: 16\frac{1}{6}
  • Calculation: μ=(1⋅16)+(2⋅16)+(3⋅16)+(4⋅16)+(5⋅16)+(6⋅16)=216=3.5\mu = (1 \cdot \frac{1}{6}) + (2 \cdot \frac{1}{6}) + (3 \cdot \frac{1}{6}) + (4 \cdot \frac{1}{6}) + (5 \cdot \frac{1}{6}) + (6 \cdot \frac{1}{6}) = \frac{21}{6} = 3.5 7.

📝 The mean number of trips of five nights or more taken by American adults per year is calculated as μ=(0⋅0.06)+(1⋅0.70)+(2⋅0.20)+(3⋅0.03)+(4⋅0.01)=1.23\mu = (0 \cdot 0.06) + (1 \cdot 0.70) + (2 \cdot 0.20) + (3 \cdot 0.03) + (4 \cdot 0.01) = 1.23 8 9.

2.3 Example: Trips of five nights or more

The probability distribution for the number of trips of five nights or more taken by American adults per year is given. To find the mean number of trips, we apply the mean formula.

  • Number of trips (X): 0, 1, 2, 3, 4
  • Probability P(X): 0.06, 0.70, 0.20, 0.03, 0.01
  • Calculation: μ=(0⋅0.06)+(1⋅0.70)+(2⋅0.20)+(3⋅0.03)+(4⋅0.01)=0+0.70+0.40+0.09+0.04=1.23\mu = (0 \cdot 0.06) + (1 \cdot 0.70) + (2 \cdot 0.20) + (3 \cdot 0.03) + (4 \cdot 0.01) = 0 + 0.70 + 0.40 + 0.09 + 0.04 = 1.23 8 9.

2.4 Variance and standard deviation of a discrete probability distribution

The variance of a discrete probability distribution, denoted by σ2\sigma^2, measures the spread or dispersion of the data points around the mean. It is calculated by summing the squared differences between each outcome and the mean, multiplied by the probability of that outcome: σ2=∑(X−μ)2⋅P(X)\sigma^2 = \sum (X - \mu)^2 \cdot P(X) 10.

The standard deviation, denoted by σ\sigma, is the square root of the variance. It provides a measure of spread in the same units as the data. σ=σ2\sigma = \sqrt{\sigma^2} 10.

2.5 Example: Rolling a die

To compute the variance and standard deviation for the probability distribution of rolling a die, we first use the previously calculated mean of 3.5.

  • Mean (μ\mu): 3.5
  • Outcomes (X): 1, 2, 3, 4, 5, 6
  • Probability P(X): 16\frac{1}{6} for each outcome
  • Variance calculation: σ2=(1−3.5)2⋅16+(2−3.5)2⋅16+(3−3.5)2⋅16+(4−3.5)2⋅16+(5−3.5)2⋅16+(6−3.5)2⋅16=2.916...\sigma^2 = (1-3.5)^2 \cdot \frac{1}{6} + (2-3.5)^2 \cdot \frac{1}{6} + (3-3.5)^2 \cdot \frac{1}{6} + (4-3.5)^2 \cdot \frac{1}{6} + (5-3.5)^2 \cdot \frac{1}{6} + (6-3.5)^2 \cdot \frac{1}{6} = 2.916...
  • Standard deviation: σ=2.916...≈1.7\sigma = \sqrt{2.916...} \approx 1.7 10.

2.6 Example: On hold for talk radio

The probability distribution shows the likelihood of 0, 1, 2, 3, or 4 people being on hold at a talk radio station. We need to find the variance and standard deviation for this distribution.

  • Number of people on hold (X): 0, 1, 2, 3, 4
  • Probability P(X): 0.18, 0.34, 0.23, 0.21, 0.04
  • Mean (μ\mu): (0⋅0.18)+(1⋅0.34)+(2⋅0.23)+(3⋅0.21)+(4⋅0.04)=0+0.34+0.46+0.63+0.16=1.63(0 \cdot 0.18) + (1 \cdot 0.34) + (2 \cdot 0.23) + (3 \cdot 0.21) + (4 \cdot 0.04) = 0 + 0.34 + 0.46 + 0.63 + 0.16 = 1.63
  • Variance calculation: σ2=(0−1.63)2⋅0.18+(1−1.63)2⋅0.34+(2−1.63)2⋅0.23+(3−1.63)2⋅0.21+(4−1.63)2⋅0.04=1.216...\sigma^2 = (0-1.63)^2 \cdot 0.18 + (1-1.63)^2 \cdot 0.34 + (2-1.63)^2 \cdot 0.23 + (3-1.63)^2 \cdot 0.21 + (4-1.63)^2 \cdot 0.04 = 1.216...
  • Standard deviation: σ=1.216...≈1.1\sigma = \sqrt{1.216...} \approx 1.1 11 [1
Cover

Topic 06 Continuous (Part 1)_261027_090353.pdf

Table of contents

  1. The normal distribution
  2. Standard normal distribution
  3. Area under the standard normal distribution curve
  4. Applications of the normal distributions

1. The normal distribution

1.1 What’s “normal”?

Most real-world measurements, like body temperature or exam scores, cluster around an average value. Fewer measurements appear at the extreme high or low ends of the range.

This common pattern, where most values are close to the mean and fewer are far from it, is observed in many situations 2.

1.2 Normal distributions

Many continuous variables follow a bell-shaped pattern and are called approximately normally distributed. The theoretical curve representing this pattern is known as the bell curve or the Gaussian distribution.

This curve is useful for studying variables that are not perfectly normal but are close to it 4.

1.3 The mathematical equation for the normal distribution

The normal distribution is defined by a specific mathematical equation. The shape and position of its curve are determined by two key parameters: the population mean (μ\mu) and the population standard deviation (σ\sigma).

Each normally distributed variable has its own unique curve based on these values 5 6.

The mathematical equation for the normal distribution is: y=1σ2πe−12(X−μσ)2y = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{X-\mu}{\sigma}\right)^2} where:

  • e≈2.718e \approx 2.718
  • π≈3.14\pi \approx 3.14
  • μ\mu is the population mean
  • σ\sigma is the population standard deviation 5.

1.4 Normal distribution properties

The normal distribution curve possesses several key characteristics that define its shape and behavior. These properties are fundamental to understanding how data is distributed 9.

  • Bell-shaped: The curve has a distinct, symmetrical bell shape.
  • Central tendency: The mean, median, and mode are all equal and located at the exact center of the distribution.
  • Unimodal: The curve has only one peak, meaning it has a single mode.
  • Symmetrical: The curve is symmetrical about the mean. A vertical line through the center divides the curve into two identical halves.
  • Continuous: The curve is unbroken, with no gaps. For every value of X, there is a corresponding value of Y.
  • Asymptotic: The curve never touches the x-axis. It extends infinitely in both directions, getting progressively closer to the x-axis without ever reaching it 9 10.

1.5 Visual simulation activity

An interactive simulation can help visualize how different parameters affect the normal distribution. Exploring these visual representations can deepen understanding of the concepts 8.

📝 Explore the relationship between the mean, standard deviation, and the shape of the normal distribution curve at https://seeing-theory.brown.edu/probability-distributions/index.html#section2 8.

2. Standard normal distribution

2.1 The standard normal distribution

The standard normal distribution is a specific type of normal distribution used to simplify statistical analysis. Unlike other normal distributions, it has a fixed mean of 0 and a standard deviation of 1. This standardization allows for the use of a single set of tables to find areas under the curve, regardless of the original variable's mean and standard deviation 12.

2.2 z value (Standard Value)

The z value, also known as a standard value, quantifies how many standard deviations a specific data point is away from the mean of its distribution. This value is crucial for comparing data from different normal distributions.

The formula to calculate the z value is:

z=X−μσz = \frac{X - \mu}{\sigma}

where:

  • zz is the z value
  • XX is the individual data point
  • μ\mu is the mean of the distribution
  • σ\sigma is the standard deviation of the distribution 13.

2.3 Calculating z-scores: Exam score example

The average exam score is 70 with a standard deviation of 8. If you scored 78, your z-score can be calculated to understand your performance relative to the average.

📝 To find your z-score: z=78−708=88=1z = \frac{78 - 70}{8} = \frac{8}{8} = 1 This means your score of 78 is 1 standard deviation above the mean 14.

2.4 Calculating z-scores: Body temperature example

The average human body temperature is 37°C with a standard deviation of 0.4°C. If your temperature is 38°C, you can calculate your z-score to see how it compares to the average.

📝 To find your z-score: z=38−370.4=10.4=2.5z = \frac{38 - 37}{0.4} = \frac{1}{0.4} = 2.5