Probability Statistics

Cover

HC06 BB AE-MDA Logistic regression.pdf

Inleiding tot binaire logistische regressie

Dit onderwerp introduceert de basisprincipes van binaire logistische regressie, de aard van de afhankelijke en onafhankelijke variabelen, het doel van het model, de toepassing ervan en de verschillen met lineaire regressie.

1.1 Wat is logistische regressie?

Logistische regressie is een statistische methode die wordt gebruikt om relaties te bestuderen, vergelijkbaar met gewone regressie. Het belangrijkste verschil ligt in de aard van de afhankelijke variabele (Y), die binair is (0 of 1). Dit betekent dat de uitkomst van het model slechts twee mogelijke waarden kan aannemen, zoals "wel/niet verlengen" of "wel/niet failliet gaan". De afhankelijke variabele wordt gedefinieerd als 0-1, en er wordt een set van een of meer voorspellende variabelen (X) gebruikt 2 3.

1.2 Doelstellingen van logistische regressie

Het primaire doel van logistische regressie is het identificeren van variabelen die verklaren waarom respondenten of objecten in een bepaalde groep vallen (bijvoorbeeld groep "ja" of groep "nee"). Met andere woorden, logistische regressie kan worden gebruikt om respondenten of objecten te classificeren (Y = 0/1) op basis van hun kenmerken (X) 7.

1.3 De variabelen in logistische regressie

1.3.1 Afhankelijke variabele (Y)

De afhankelijke variabele in binaire logistische regressie is categorisch en bestaat uit twee categorieën (0/1). De voorspelde uitkomst is een kans op groepslidmaatschap, specifiek de kans om tot groep 1 te behoren. Deze kans ligt altijd tussen 0 en 1. Logistische regressie kan ook worden uitgebreid naar situaties met meer dan twee categorieën, wat dan multinomiale logistische regressie wordt genoemd 7 8.

1.3.2 Onafhankelijke variabelen (X)

De onafhankelijke variabelen kunnen zowel metrisch als nonmetrisch zijn. Nonmetrische (categorische) onafhankelijke variabelen worden doorgaans opgenomen in het model als dummyvariabelen 8.

1.4 Proces en toepassing van logistische regressie

Het analyseproces voor logistische regressie omvat verschillende stappen, die vergelijkbaar zijn met die van andere modeltechnieken 4 6:

  • Onderzoeksprobleem 4 6.
  • Analyseplan 4 6.
  • Assumpties 4 6.
  • Schatten van het model en evaluatie van de fit 4 6.
  • Validatie 4 6.
  • Interpretatie van de resultaten 4 6.

Tip: Hoewel de stappen vergelijkbaar zijn met andere regressietechnieken, is het cruciaal om de specifieke aannames en interpretatiemethoden van logistische regressie te begrijpen, met name vanwege de binaire aard van de afhankelijke variabele.

Logistische regressie is een krachtige techniek voor situaties waarin de uitkomst die je wilt voorspellen een Ja/Nee-karakter heeft. Dit onderscheidt het fundamenteel van lineaire regressie, die een continue, metrische afhankelijke variabele vereist 2.


Steekproefgrootte en assumpties

Hieronder volgt een gedetailleerde samenvatting over steekproefgrootte en assumpties voor logistische regressie, gebaseerd op de verstrekte documentinhoud.

2. Steekproefgrootte en assumpties

2.1 Steekproefgrootte bepaling bij binaire logistische regressie

Het bepalen van een geschikte steekproefgrootte voor binaire logistische regressie is cruciaal voor de betrouwbaarheid van de modelresultaten. Hoewel er algemene richtlijnen bestaan, zoals die van Hosmer en Lemeshow (n=400) zijn deze vaak te simplistisch omdat ze geen rekening houden met belangrijke factoren zoals de event prevalence en de complexiteit van het model 9.

2.1.1 De Events per Variable (EPV) regel

Een veelgebruikte basisrichtlijn is de 'Events per Variable' (EPV) regel. Deze regel stelt dat er minimaal 15 tot 20 'events' (uitkomsten waarbij de afhankelijke variabele Y=1Y=1 is) moeten zijn per onafhankelijke variabele in het model 9.

De algemene formule hiervoor is: NEPV≥EPVtarget×pN_{EPV} \ge EPV_{target} \times p waarbij:

  • NEPVN_{EPV} de minimale steekproefgrootte is op basis van de EPV-regel.
  • EPVtargetEPV_{target} de gewenste hoeveelheid events per variabele is (typisch 15-20) 9.
  • pp het aantal onafhankelijke variabelen in het model is (hier wordt uitgegaan van geen dummy-variabelen) 9.

Voorbeeld: Als we een EPVtargetEPV_{target} van 20 hanteren en het model bevat p=5p=5 variabelen, dan is de minimale steekproefgrootte: NEPV≥20×5=100N_{EPV} \ge 20 \times 5 = 100 9.

Cover

HC08 BB 2025 PLSSEM.pdf

Introductie tot PLS-SEM

Dit gedeelte introduceert Partial Least Squares Structural Equation Modeling (PLS-SEM) als een geavanceerde analysemethode en schetst de basisprincipes van een PLS-SEM analyse, inclusief de planning en vereisten.

1.1 De evolutie van statistische technieken

Statistiek en data-analyse zijn continu in evolutie, waarbij PLS-SEM wordt beschouwd als een tweede-generatie techniek. De evolutie van analysemethoden toont een verschuiving van traditionele technieken naar meer geavanceerde modellen. Vroegere methoden omvatten onder andere exploratieve factoranalyse (EFA), principale componentenanalyse (PCA), en regressieanalyse (met Ordinary Least Squares - OLS). De ontwikkeling van covariantiestructuur-gebaseerde modellering (CB-SEM, vaak gebaseerd op Maximum Likelihood Estimation - MLE) en later PLS-SEM (met OLS-achtige principes) vertegenwoordigt deze geavanceerdere generaties 7 8.

1.2 De rol van PLS-SEM

PLS-SEM biedt een flexibele en krachtige aanpak voor het analyseren van complexe relaties tussen latente variabelen. Het is een methode die het mogelijk maakt om theoretische modellen te toetsen door de relaties tussen geobserveerde variabelen en latente constructen, evenals de relaties tussen de latente constructen onderling, te onderzoeken 9.

1.3 Basisprincipes van een PLS-SEM analyse

Een PLS-SEM analyse omvat een reeks stappen die beginnen met het onderzoeks-probleem en eindigen met de interpretatie van de resultaten 9.

1.3.1 Plan van analyse

De planning van een PLS-SEM analyse omvat verschillende cruciale aspecten:

  • Onderzoeksprobleem: Het duidelijk definiëren van de onderzoeksvraag die de analyse stuurt 9.

  • Relaties latente variabelen: Het specificeren van de verwachte relaties tussen de latente variabelen in het model 9.

  • Steekproefgrootte: Het bepalen van de benodigde steekproefgrootte, wat een belangrijke factor is voor de betrouwbaarheid van de resultaten 9.

  • Afhankelijke variabelen: Deze moeten metrisch zijn 9.

  • Onafhankelijke variabelen: Deze kunnen metrisch zijn of dummy-variabelen 9.

  • Predictor specificatie: Dit omvat zowel het innerlijke als het buitenste model 9.

  • Distributie-onafhankelijkheid: Een belangrijk kenmerk van PLS-SEM is dat het relatief robuust is ten opzichte van de distributie van de data 9.

1.3.2 Kerncomponenten van een PLS-SEM model

Een PLS-SEM model bestaat uit twee belangrijke componenten:

  • Outer model: Dit model beschrijft de relaties tussen de latente variabelen en hun geobserveerde indicatoren. Het valideert de meting van de latente constructen 9.

  • Inner model: Dit model beschrijft de relaties tussen de latente variabelen onderling. Het test de theoretische verbanden tussen de constructen 9.

1.3.3 Schattingsprocedure en resultaten

De schattingsprocedure in PLS-SEM is vergelijkbaar met regressieanalyse, waarbij de centrale rol ligt bij de 'weight relations'. Na het schatten van het model, evalueren we de fit en de validiteit van de resultaten. De analyse omvat ook de evaluatie van assumpties van de gebruikte methodiek (MDA - Multivariate Data Analysis) en de uiteindelijke interpretatie van de verkregen resultaten 9.

1.4 Wat gaan we doen?

Dit document zal de volgende aspecten van PLS-SEM behandelen:

  • Definitie van PLS-SEM 10.

  • Het PLS-SEM model 10.

  • De PLS-SEM schattingsprocedure 10.

  • Introductie tot de software smartPLS4 10.

  • Evaluatie van het outer model 10.

  • Evaluatie van het inner model 10.


Het PLS-SEM model en de schattingsprocedure

Dit onderwerp behandelt de structuur van het PLS-SEM model, opgedeeld in het outer en inner model, en beschrijft de tweestaps procedure die gebruikt wordt om de modelparameters te schatten.

2.1 Definitie en kenmerken van SEM

Structural equation modeling (SEM) is een multivariatetechniek die onderzoekers in staat stelt om tegelijkertijd een reeks onderling afhankelijke relaties te onderzoeken tussen gemeten variabelen en latente constructen, evenals tussen verschillende latente constructen. De drie belangrijkste kenmerken van SEM zijn: 1) het netwerk van relaties tussen latente constructen, 2) de relaties tussen indicatoren en constructen, en 3) de simultane schatting van de voornoemde relaties 12.

2.2 Verschillende soorten SEM

Binnen SEM worden technieken onderscheiden op basis van hun onderliggende schattingsmethode: variantie als basis, zoals bij PLS-SEM, en covariantie als basis, zoals bij CB-SEM 13.

2.2.1 Vergelijking PLS-SEM en CB-SEM

De keuze tussen PLS-SEM en Covariantie-Based SEM (CB-SEM) hangt af van het onderzoeksdoel en de context [15](#

Cover

HC3 invalid post selection inference.pdf

📚 HC3 invalid post selection inference.pdf

Brief overview

This document addresses the critical statistical challenge of performing inference after selecting a model or variables from data. It highlights how common data-driven practices lead to invalid inferential conclusions and outlines methods to achieve reliable statistical results.

Key points

  • Overview of the problem of invalid post-selection inference (PoSI).
  • How data-driven variable selection distorts statistical distributions.
  • The practical consequences of invalid inference in data analysis.
  • Methods for conducting valid post-selection inference, including data splitting.
  • Exploration of philosophical approaches like simultaneous and conditional inference.

1. Introduction to post-selection inference challenges

1.1 The post-selection inference problem

  • Post-selection inference (PoSI) refers to performing statistical inference (e.g., hypothesis testing, confidence intervals) on a dataset that has also been used to select the statistical model.
  • This practice violates classical assumptions, as the inference is conditioned on the selection process, leading to invalid conclusions.
  • Textbook statistical workflows present a simplified process: model selection, then inference. In practice, these steps are often intertwined, as data exploration influences model choice.

1.2 Textbook vs. practical data analysis workflows

  • Textbook workflow:
  • Step 1: Select a statistical model (e.g., a linear regression with specific predictors).
  • Step 2: Define the dataset to be used.
  • Step 3: Fit the selected model using methods like Ordinary Least Squares (OLS).
  • Step 4: Conduct hypothesis tests on the regression coefficients, assuming the test statistic follows a known distribution (e.g., tt-distribution) under the null hypothesis 12.

The sampling distribution of an OLS estimator under textbook assumptions shows a clear central tendency.

This bar chart visualizes the sampling distribution of the OLS estimator of theta_1.

  • Practical workflow:
  • Step 1: Fit numerous models across all possible subsets of independent variables using OLS.
  • Step 2: Employ a model selection criterion, such as the Akaike Information Criterion (AIC), to choose the "best" model from the candidates 16.
  • Step 3: Perform hypothesis tests on the coefficients of the selected model.
  • The critical issue is whether the assumptions for the hypothesis test (e.g., the distribution of the test statistic) still hold after the model has been chosen based on the data itself.

1.3 Illustrative example: predictors of concentration impairment

  • Research question: Does concentration impairment (YY) correlate with sleep-onset insomnia (X1X_1), early-morning awakening (X2X_2), or hypersomnia (X3X_3) 8?

  • Data: A dataset is provided with participants' YY values and their corresponding X1,X2,X3X_1, X_2, X_3 values.

ParticipantYYX1X_1X2X_2X3X_3
1y1y_1x11x_{11}x12x_{12}x13x_{13}
2y2y_2x21x_{21}x22x_{22}x23x_{23}
3y3y_3x31x_{31}x32x_{32}x33x_{33}
...............
nnyny_nxn1x_{n1}xn2x_{n2}xn3x_{n3}

A table representing a dataset with participants and their corresponding values for Y and three independent variables X1, X2, and X3.

  • Model fitting and selection in practice:
Cover

HLSL 01 Probability.pptx

Table of contents

  1. Probability
  2. Sample space representation
  3. Probability calculations

1. Probability

1.1 Experimental probability

Experimental probability is a way to measure how likely an event is to happen based on actual trials or observations. Instead of using theory, we look at the results of an experiment that has already taken place.

  • Calculation method: We find the probability by dividing the number of times an event occurs by the total number of trials performed.
  • Data source: This type of probability relies entirely on real-world data and the frequency of specific outcomes.
Type of ProbabilityBasis of Measurement
Experimental probabilityResults from actual trials or experiments
Theoretical probabilityExpected results based on mathematical reasoning

📝 If you flip a coin 50 times and it lands on heads 28 times, the experimental probability of landing on heads is 2850\frac{28}{50}.

1.2 Set theory and Venn diagrams

Probability often involves looking at how different groups of outcomes, called sets, relate to one another within a larger group. We use Venn diagrams to visualize these relationships and see where different events overlap.

  • Universal set (UU): This represents the set of all possible outcomes in a given context.
  • Sets: These are specific collections of outcomes, often labeled with capital letters like AA or BB.
  • Intersection (A∩BA \cap B): This is the region where two sets overlap, representing outcomes that belong to both sets at the same time.
  • Union (A∪BA \cup B): This represents the combination of all outcomes that are in set AA, set BB, or both.

A Venn diagram illustrating the number of elements in sets A and B within a universal set U.

The diagram helps us see how many elements are shared between groups and how many exist outside the specific sets being studied.

TermSymbolMeaning
IntersectionA∩BA \cap BOutcomes in both A and B
UnionA∪BA \cup BOutcomes in A, B, or both
Universal SetUUThe set of all possible outcomes

Venn diagram illustrating the intersection of two sets A and B, showing the overlapping region as the intersection.

When studying specific scenarios, such as divers using different platforms, we can use these diagrams to track overlapping characteristics.

A Venn diagram illustrating the number of divers from two platforms, T (10 m) and F (4 m), with overlapping regions representing divers from both platforms.

📝 If a Venn diagram shows that 5 divers are in the intersection of set TT and set FF, it means those 5 divers used both the 10m and 4m platforms.

2. Sample space representation

2.1 Defining the sample space

The sample space is the complete list of every possible outcome that can occur in a random experiment. Representing the sample space clearly is the first step in calculating the probability of any specific event.

  • Outcomes: These are the individual results that can happen during a single trial.
  • Completeness: A proper sample space must include every single possibility without leaving any out.

An octagonal spinner with numbers 1 through 8 on its segments, used to illustrate theoretical probability.

In the case of the octagonal spinner, the sample space consists of the set of numbers {1,2,3,4,5,6,7,8}\{1, 2, 3, 4, 5, 6, 7, 8\}.

Cover

HLSL 03 Bivariate Statistics & Modeling.pptx

Table of contents

  1. Variables and association
  2. Linear correlation
  3. Line of best fit
  4. Least square regression line
  5. Regression line (x vs y)
  6. Non-linear models

1. Variables and association

1.1 Variables association

Bivariate statistics focus on how two different variables relate to one another. When we look at two sets of data together, we are looking for an association between them.

  • Bivariate data: this refers to data that involves two different variables for each observation.
  • Scatter plot: it is a visual tool used to show the relationship between two variables by plotting points on a graph.
  • Trend line: it is a line drawn through a scatter plot to show the general direction of the data.
  • Outliers: these are data points that sit far away from the main group or the general trend of the rest of the data.

A scatter plot showing the relationship between age and distance thrown, with a trend line and identified outliers.

The relationship between variables can be described by how the points are spread out on a scatter plot. We look for patterns in how one variable changes as the other variable changes.

📝 If we plot the number of hours worked against the number of customers served, we can see if more work hours lead to more customers.

1.2 Linear correlation

Linear correlation describes a specific type of relationship where the data points follow a straight-line pattern. This means that as one variable increases, the other variable changes at a constant rate.

  • Positive correlation: it occurs when both variables increase or decrease together.
  • Negative correlation: it occurs when one variable increases while the other variable decreases.
  • No correlation: it happens when there is no clear pattern or relationship between the two variables.
Correlation TypeDirection of Change
PositiveBoth variables move in the same direction
NegativeVariables move in opposite directions
No correlationNo predictable pattern exists

A scatter plot showing the relationship between age and distance thrown, with a line of best fit drawn through the mean point.

A line of best fit is a straight line drawn through the center of the data points on a scatter plot. This line helps us model the relationship and make predictions about the data.

📝 A line of best fit can help us estimate the distance a person might throw a discus based on their age.

2. Linear correlation

2.1 Pearson's coefficient

Pearson's coefficient, often called rr, is a number that measures the strength and direction of a linear relationship. It tells us how closely the data points cluster around a straight line.

  • Correlation coefficient (rr): it is a value that ranges from −1-1 to 11.
  • Strength of correlation: it is determined by how close the value of rr is to either 11 or −1-1.
  • Coefficient of determination (r2r^2): it is the square of the correlation coefficient and shows how well the line fits the data.
Value of rrStrength and Direction
r=1r = 1Perfect positive correlation
r=−1r = -1Perfect negative correlation
r=0r = 0No linear correlation
Close to 11 or −1-1Strong correlation
Close to 00Weak correlation

A calculator screen displaying the results of a linear regression analysis, including the equation of the line, correlation coefficient (r), and coefficient of determination (r²).

The linear regression equation is written as y=ax+by = ax + b. This equation allows us to calculate predicted values for yy if we know the value of xx.

Cover

Honors Algebra 1 Workbook - Semester 1.pdf

Table of contents

  1. Getting to know you
  2. Lesson 1 summary
  3. A gallery of data
  4. The shape of distributions
  5. Technological graphing
  6. The effect of extremes
  7. Comparing and contrasting data distributions
  8. Standard deviation
  9. More standard deviation
  10. Outliers
  11. Comparing data sets
  12. Naming the moves
  13. Grid moves
  14. Describing transformations
  15. Moves in parallel
  16. What is the same?
  17. Congruent polygons
  18. Dilations with no grid
  19. Dilations on a square grid
  20. More dilations
  21. Similarity
  22. Similar polygons
  23. Similar triangles
  24. Side length quotients in similar triangles
  25. Meet slope
  26. Writing equations for lines
  27. Using equations for lines
  28. Introduction to linear relationships
  29. More linear relationships
  30. Representations of linear relationships
  31. Translating to
  32. Slopes don't have to be positive
  33. Calculating slope
  34. Equations of all kinds of lines
  35. Solutions to linear equations
  36. More solutions to linear equations
  37. Writing equivalent equations
  38. Keeping the equation balanced
  39. Balanced moves
  40. More balanced moves
  41. Solving any linear equation
  42. Strategic solving
  43. All, some, or no solutions
  44. How many solutions?
  45. When are they the same?
  46. On or off the line?
  47. On both of the lines
  48. Systems of equations
  49. Solving systems of equations
  50. Which variable to solve for? (Part 1)
  51. Which variable to solve for? (Part 2)
  52. Connecting equations to graphs (Part 1)
  53. Connecting equations to graphs (Part 2)
  54. Writing and graphing systems of linear equations
  55. Solving systems by substitution
  56. Solving systems by elimination (Part 1)
  57. Solving systems by elimination (Part 2)
  58. Systems of linear equations and their solutions
  59. Fitting a line to data
  60. Linear models
  61. The correlation coefficient
  62. Causal relationships
  63. Representing situations with inequalities
  64. Solutions to inequalities in one variable
  65. Writing and solving inequalities in one variable
  66. Graphing linear inequalities in two variables (Part 1)
  67. Graphing linear inequalities in two variables (Part 2)
  68. Solving problems with inequalities in two variables
  69. Solutions to systems of linear inequalities in two variables
  70. Solving problems with systems of linear inequalities in two variables

1. Getting to know you

1.1 Types of questions

Statistical questions are those that can be answered by collecting and analyzing data, and that anticipate variability in the data. Non-statistical questions have a single, deterministic answer.

The questions provided illustrate this distinction 2.

  • Statistical questions: Anticipate variability in responses.
  • Question B: "What is the typical number of chips in a bag of chips?" This question seeks a summary statistic (like an average) that represents a range of possible chip counts.
  • Question D: "What type of chips do students in this class prefer?" This question anticipates that different students will prefer different types of chips, leading to varied responses.
  • Non-statistical questions: Have a single, definite answer.
  • Question A: "How many potato chips are in this bag of chips?" This question has a specific, countable answer for a particular bag.
  • Question C: "What type of chips are these?" This question asks for a specific classification of the chips in question 2.

1.2 Representing data about you and your classmates

This section involves collecting and analyzing data from classmates using survey questions. The process includes formulating questions, collecting responses, and summarizing the findings 2.

  1. Writing a question of interest: Students are asked to write an additional question that requires class data for an answer 2.
  2. Survey question formulation and data collection: For each question of interest, students will write a survey question, ask 15 classmates, and record their responses.
  3. Data summarization: Students will summarize the collected data for each question in a sentence or two and share it with their group.
  4. Identifying commonalities: Groups will identify common characteristics among the questions numbered 1, 2, and 3, and then for questions numbered 2 and 3.
  5. Categorizing the student's question: Students will explain which category (1, 2, or 3) their own written question best fits into and why 3.

1.3 Data collection table

A table is used to record responses from classmates for various survey questions 4.

Responder’s nameQuestion 1 responseQuestion 2 responseQuestion 3 responseMy question response
—————
Cover

HW-00.pdf

Table of contents

  1. Statistics for Science Students
  2. Summation notation with paired observations

1. Statistics for Science Students

1.1 Summation notation

Summation notation, represented by the Greek letter sigma (Σ\Sigma), is a concise way to express the sum of a sequence of numbers. It is fundamental in statistics for summarizing data sets.

The notation specifies a lower and upper limit, indicating the range of terms to be added 1 2.

  • Sum of data points: ∑i=1nxi\sum_{i=1}^{n} x_i represents the sum of all observations x1,x2,…,xnx_1, x_2, \dots, x_n in a data set.
  • Sum of squared data points: ∑i=1nxi2\sum_{i=1}^{n} x_i^2 represents the sum of the squares of each observation in the data set2.
  • Sum of data points plus a constant: ∑i=1n(xi+C)\sum_{i=1}^{n} (x_i + C) represents the sum where a constant CC is added to each observation before summing. This can be expanded to ∑i=1nxi+nC\sum_{i=1}^{n} x_i + nC.
  • Sum of squared data points plus a constant: ∑i=1n(xi+C)2\sum_{i=1}^{n} (x_i + C)^2 represents the sum where a constant CC is added to each observation, and then the result is squared before summing 1.

1.2 Homework Exercise 0: Summation of data points

A data set contains the observations: 9, 4, 7, 1, 2. Calculate ∑i=15xi\sum_{i=1}^{5} x_i.

The sum is 9+4+7+1+2=239 + 4 + 7 + 1 + 2 = 23 1.

📝 For the data set 9, 4, 7, 1, 2, the sum of the data points is calculated as 9+4+7+1+2=239 + 4 + 7 + 1 + 2 = 23.

1.3 Homework Exercise 0: Sum of squared data points

A data set contains the observations: 2, 3, 8, 1, 5. Calculate ∑i=15xi2\sum_{i=1}^{5} x_i^2.

The sum of squares is 22+32+82+12+52=4+9+64+1+25=1032^2 + 3^2 + 8^2 + 1^2 + 5^2 = 4 + 9 + 64 + 1 + 25 = 103 1.

📝 For the data set 2, 3, 8, 1, 5, the sum of the squared data points is 22+32+82+12+52=4+9+64+1+25=1032^2 + 3^2 + 8^2 + 1^2 + 5^2 = 4 + 9 + 64 + 1 + 25 = 103.

1.4 Homework Exercise 0: Sum of data points plus a constant

A data set contains the observations: 7, 1, 9, 5, 6. Calculate ∑i=15(xi+1)\sum_{i=1}^{5} (x_i + 1).

The sum is (7+1)+(1+1)+(9+1)+(5+1)+(6+1)=8+2+10+6+7=33(7+1) + (1+1) + (9+1) + (5+1) + (6+1) = 8 + 2 + 10 + 6 + 7 = 33. Alternatively, ∑xi+nC=(7+1+9+5+6)+5(1)=28+5=33\sum x_i + nC = (7+1+9+5+6) + 5(1) = 28 + 5 = 33 1.

📝 For the data set 7, 1, 9, 5, 6, calculating ∑i=15(xi+1)\sum_{i=1}^{5} (x_i + 1) yields (7+1)+(1+1)+(9+1)+(5+1)+(6+1)=8+2+10+6+7=33(7+1) + (1+1) + (9+1) + (5+1) + (6+1) = 8 + 2 + 10 + 6 + 7 = 33.

1.5 Homework Exercise 0: Sum of squared data points plus a constant

A data set contains the observations: -5, -8, 0, 4, -1. Calculate ∑i=15(xi−1)2\sum_{i=1}^{5} (x_i - 1)^2.

The sum is (−5−1)2+(−8−1)2+(0−1)2+(4−1)2+(−1−1)2=(−6)2+(−9)2+(−1)2+(3)2+(−2)2=36+81+1+9+4=131(-5-1)^2 + (-8-1)^2 + (0-1)^2 + (4-1)^2 + (-1-1)^2 = (-6)^2 + (-9)^2 + (-1)^2 + (3)^2 + (-2)^2 = 36 + 81 + 1 + 9 + 4 = 131 2.

📝 For the data set -5, -8, 0, 4, -1, the sum of (xi−1)2(x_i - 1)^2 is (−5−1)2+(−8−1)2+(0−1)2+(4−1)2+(−1−1)2=36+81+1+9+4=131(-5-1)^2 + (-8-1)^2 + (0-1)^2 + (4-1)^2 + (-1-1)^2 = 36 + 81 + 1 + 9 + 4 = 131.

1.6 Homework Exercise 0: Sum of data points divided by a constant

A data set contains the observations: 3, 4, 5, 7, 2, 3, 4. Calculate ∑i=17xi/7\sum_{i=1}^{7} x_i / 7.

The sum of the observations is 3+4+5+7+2+3+4=283+4+5+7+2+3+4 = 28. Dividing by 7 gives 28/7=428 / 7 = 4 2.

📝 For the data set 3, 4, 5, 7, 2, 3, 4, the calculation ∑i=17xi/7\sum_{i=1}^{7} x_i / 7 results in (3+4+5+7+2+3+4)/7=28/7=4(3+4+5+7+2+3+4) / 7 = 28 / 7 = 4.

1.7 Homework Exercise 0: Sum of squared data points minus a constant

A data set contains the observations: 3, 4, 5, 7, 2, 3, 4. Calculate ∑i=17(xi2−7)\sum_{i=1}^{7} (x_i^2 - 7).

The sum of squares is 32+42+52+72+22+32+42=9+16+25+49+4+9+16=1283^2 + 4^2 + 5^2 + 7^2 + 2^2 + 3^2 + 4^2 = 9 + 16 + 25 + 49 + 4 + 9 + 16 = 128. The sum of constants is 7×7=497 \times 7 = 49.

Thus, ∑i=17(xi2−7)=128−49=79\sum_{i=1}^{7} (x_i^2 - 7) = 128 - 49 = 79 2.

📝 For the data set 3, 4, 5, 7, 2, 3, 4, the sum ∑i=17(xi2−7)\sum_{i=1}^{7} (x_i^2 - 7) is calculated as (32+42+52+72+22+32+42)−(7×7)=128−49=79(3^2+4^2+5^2+7^2+2^2+3^2+4^2) - (7 \times 7) = 128 - 49 = 79.

1.8 Homework Exercise 0: Sum of squared differences from the mean

A data set contains the observations: 3, 4, 5, 7, 2, 3, 4. Calculate ∑i=17(xi−4)2\sum_{i=1}^{7} (x_i - 4)^2.

The mean of the data set is (3+4+5+7+2+3+4)/7=28/7=4(3+4+5+7+2+3+4)/7 = 28/7 = 4. The sum of squared differences is (3−4)2+(4−4)2+(5−4)2+(7−4)2+(2−4)2+(3−4)2+(4−4)2=(−1)2+02+12+32+(−2)2+(−1)2+02=1+0+1+9+4+1+0=16(3-4)^2 + (4-4)^2 + (5-4)^2 + (7-4)^2 + (2-4)^2 + (3-4)^2 + (4-4)^2 = (-1)^2 + 0^2 + 1^2 + 3^2 + (-2)^2 + (-1)^2 + 0^2 = 1 + 0 + 1 + 9 + 4 + 1 + 0 = 16 2.

📝 For the data set 3, 4, 5, 7, 2, 3, 4, where the mean is 4, the sum of squared differences ∑i=17(xi−4)2\sum_{i=1}^{7} (x_i - 4)^2 is (3−4)2+(4−4)2+(5−4)2+(7−4)2+(2−4)2+(3−4)2+(4−4)2=1+0+1+9+4+1+0=16(3-4)^2 + (4-4)^2 + (5-4)^2 + (7-4)^2 + (2-4)^2 + (3-4)^2 + (4-4)^2 = 1 + 0 + 1 + 9 + 4 + 1 + 0 = 16.

1.9 Homework Exercise 0: Sum of squared deviations from the mean of the data

A data set contains the observations: 3, 4, 5, 7, 2, 3, 4. Calculate ∑i=17(xi−∑i=17xi7)2\sum_{i=1}^{7} \left(x_i - \frac{\sum_{i=1}^{7} x_i}{7}\right)^2.

The mean of the data set is (3+4+5+7+2+3+4)/7=28/7=4(3+4+5+7+2+3+4)/7 = 28/7 = 4. The sum of squared deviations from the mean is (3−4)2+(4−4)2+(5−4)2+(7−4)2+(2−4)2+(3−4)2+(4−4)2=(−1)2+02+12+32+(−2)2+(−1)2+02=1+0+1+9+4+1+0=16(3-4)^2 + (4-4)^2 + (5-4)^2 + (7-4)^2 + (2-4)^2 + (3-4)^2 + (4-4)^2 = (-1)^2 + 0^2 + 1^2 + 3^2 + (-2)^2 + (-1)^2 + 0^2 = 1 + 0 + 1 + 9 + 4 + 1 + 0 = 16 3.

Cover

HW 6 - All Blockers (3).docx

Table of contents

  1. Coin toss and spinner distribution
  2. Calculating the mean and expected value
  3. Expected value of business operations and batch testing
  4. Cumulative distribution function (CDF) calculations
  5. Probability calculations using CDF and pmf

1. Coin toss and spinner distribution

1.1 Coin toss outcomes and distribution

This section examines the outcomes of tossing a coin three times, focusing on the number of heads obtained. The sample space for three coin tosses consists of 8 equally likely outcomes.

  • Sample space: The set of all possible outcomes when tossing a coin three times.

  • HHH, HHT, HTH, HTT, THH, THT, TTH, TTT

  • Random variable X: Represents the number of heads in three coin tosses.

  • Possible values for X are 0, 1, 2, or 3.

  • Distribution of X: The probability of each possible value of X.

  • P(X=0) = 1/8 (TTT)

  • P(X=1) = 3/8 (HTT, THT, TTH)

  • P(X=2) = 3/8 (HHT, HTH, THH)

  • P(X=3) = 1/8 (HHH)

📝 A spinner representing the distribution of X would have four sections. One section would cover 1/8 of the spinner's area (for X=0), two sections would cover 3/8 each (for X=1 and X=2), and one section would cover 1/8 (for X=3).

1.2 Die roll game and distribution

A game involves rolling a standard six-sided die, with the number of spaces moved determined by the roll. The random variable X represents the number of spaces moved.

  • Die roll outcomes:

  • 1, 2, 3: Move 1 space.

  • 4, 5: Move 2 spaces.

  • 6: Move 3 spaces.

  • Probability mass function (pmf) for X: The probability of each possible value of X.

  • P(X=1) = 3/6 = 1/2 (rolling 1, 2, or 3)

  • P(X=2) = 2/6 = 1/3 (rolling 4 or 5)

  • P(X=3) = 1/6 (rolling 6)

Spaces Moved (X)Probability (P(X))
11/2
21/3
31/6

📝 A spinner representing this distribution would have three sections. One section would cover 1/2 of the spinner's area (for moving 1 space), another would cover 1/3 (for moving 2 spaces), and the final section would cover 1/6 (for moving 3 spaces).

2. Calculating the mean and expected value

2.1 Mean of a random variable

The mean of a random variable, denoted by μ\mu or E[X]E[X], represents the average value of the outcomes of that random variable over many trials. It is calculated by summing the product of each possible value of the random variable and its corresponding probability.

  • For a discrete random variable XX with probability mass function (pmf) P(X=x)P(X=x), the mean is given by the formula: μ=E[X]=∑xxP(X=x)\mu = E[X] = \sum_{x} x P(X=x) This summation is performed over all possible values xx that the random variable XX can take.

2.2 Expected value of a game

The expected value of a game represents the average outcome if the game were played many times. It is calculated by summing the product of each possible payoff and its corresponding probability.

  • Game 1: Die roll movement A game involves rolling a die. The number of spaces moved depends on the roll:

  • Roll 1, 2, or 3: Move 1 space.

  • Roll 4 or 5: Move 2 spaces.

  • Roll 6: Move 3 spaces. Let XX be the number of spaces moved. The possible values for XX are 1, 2, and 3. The probabilities are:

  • P(X=1)=P(roll 1, 2, or 3)=36=12P(X=1) = P(\text{roll 1, 2, or 3}) = \frac{3}{6} = \frac{1}{2}

  • P(X=2)=P(roll 4 or 5)=26=13P(X=2) = P(\text{roll 4 or 5}) = \frac{2}{6} = \frac{1}{3}

  • P(X=3)=P(roll 6)=16P(X=3) = P(\text{roll 6}) = \frac{1}{6} The expected value of XX is: E[X]=(1×12)+(2×13)+(3×16)=12+23+36=36+46+36=106=53E[X] = (1 \times \frac{1}{2}) + (2 \times \frac{1}{3}) + (3 \times \frac{1}{6}) = \frac{1}{2} + \frac{2}{3} + \frac{3}{6} = \frac{3}{6} + \frac{4}{6} + \frac{3}{6} = \frac{10}{6} = \frac{5}{3}

  • Game 2: Coin toss winnings Three coins are tossed.

  • If 0 or 3 heads occur, you win $10.

  • Otherwise (1 or 2 heads), you lose $3. Let HH be the number of heads. The possible outcomes for three coin tosses are HHH, HHT, HTH, THH, HTT, THT, TTH, TTT.

  • P(H=0)=P(TTT)=18P(H=0) = P(\text{TTT}) = \frac{1}{8}

  • P(H=1)=P(HTT, THT, TTH)=38P(H=1) = P(\text{HTT, THT, TTH}) = \frac{3}{8}

  • P(H=2)=P(HHT, HTH, THH)=38P(H=2) = P(\text{HHT, HTH, THH}) = \frac{3}{8}

  • P(H=3)=P(HHH)=18P(H=3) = P(\text{HHH}) = \frac{1}{8} The payoffs are:

  • Win $10 if H=0H=0 or H=3H=3. The probability is P(H=0)+P(H=3)=18+18=28=14P(H=0) + P(H=3) = \frac{1}{8} + \frac{1}{8} = \frac{2}{8} = \frac{1}{4}.

  • Lose $3 if H=1H=1 or H=2H=2. The probability is P(H=1)+P(H=2)=38+38=68=34P(H=1) + P(H=2) = \frac{3}{8} + \frac{3}{8} = \frac{6}{8} = \frac{3}{4}. The expected value of the game is: E[Game]=(10×14)+(−3×34)=104−94=14E[\text{Game}] = (10 \times \frac{1}{4}) + (-3 \times \frac{3}{4}) = \frac{10}{4} - \frac{9}{4} = \frac{1}{4}

  • Game 3: Die roll winnings/losses A die is rolled.

  • If the number is even, you win that value in dollars.

  • If the number is odd, you lose $4. Let YY be the value won or lost.

  • If roll is 1 (odd): Lose $4. P(1)=16P(1) = \frac{1}{6}.

  • If roll is 2 (even): Win $2. P(2)=16P(2) = \frac{1}{6}.

  • If roll is 3 (odd): Lose $4. P(3)=16P(3) = \frac{1}{6}.

  • If roll is 4 (even): Win $4. P(4)=16P(4) = \frac{1}{6}.

  • If roll is 5 (odd): Lose $4. P(5)=16P(5) = \frac{1}{6}.

  • If roll is 6 (even): Win $6. $P(6) =

Cover

ilovepdf_merged.pdf

Table of contents

  1. Confindence interval
  2. The Logic of Hypothesis Testing
  3. The Four Steps of a Hypothesis Test
  4. Uncertainty and Errors in Hypothesis Testing
  5. More About Hypothesis Tests
  6. Directional (One-Tailed) Hypothesis Tests
  7. Concerns about Hypothesis Testing: Measuring Effect Size
  8. Statistical Power
  9. Learning objectives
  10. Hypothesis Testing Example
  11. The Influence of Sample Size and Sample Variance
  12. Confidence Intervals for Estimating μ
  13. Reporting the Results of a T Test
  14. Directional Hypothesis and One-Tailed Tests

1. Confindence interval

1.1 Confidence interval

A confidence interval provides a range of scores within which the population mean is likely to lie, serving as an interval estimate. This contrasts with a point estimate, which is a single value.

If numerous random samples were drawn from a population, the point estimate would vary between samples, whereas a confidence interval is constructed to contain the true population parameter in repeated sampling.

Typically, 95% or 99% confidence intervals are used. These intervals are defined such that, for a specified percentage of samples (e.g., 95%), the true population parameter falls within the calculated limits.

For instance, if 100 samples were taken and confidence intervals calculated for each, 95 of these intervals would contain the population mean, while 5 would not.

A normal distribution curve illustrating confidence intervals with percentages and standard deviations marked. 2.

📝 If the heights of 40 randomly chosen men yielded a mean height of 175 cm and the population standard deviation is known to be 20 cm, this information can be used to calculate a confidence interval for the mean height of all men 6.

1.2 Misconception about confidence intervals

A common misconception is that a 95% confidence interval means there is a 95% probability that a specific sample contains the true population value. Instead, it signifies that if repeated samples were taken and confidence intervals constructed for each, 95% of these intervals would successfully capture the population value 5.

1.3 Computing confidence interval

To compute a confidence interval for a population mean, one typically uses the sample mean, a z-score corresponding to the desired confidence level, the standard deviation, and the sample size.

The general formula for a confidence interval for the population mean is: xˉ±zsn\bar{x} \pm z \frac{s}{\sqrt{n}} where:

  • xˉ\bar{x} is the sample mean.
  • zz is the z-score corresponding to the confidence level.
  • ss is the sample standard deviation.
  • nn is the sample size.

Formula for calculating a confidence interval for a population mean. 6.

Formula for calculating a confidence interval, showing the sample mean, z-score, sample standard deviation, and sample size. 7.

For example, if the heights of 40 randomly chosen men yielded a mean height of 175 cm and the population standard deviation is known to be 20 cm, this information can be used to calculate a confidence interval for the mean height of all men 6.

Another scenario involves determining if apples are sufficiently large. If a random sample of 46 apples yields a mean size of 86 and a standard deviation of 6.2, these values can be used in the confidence interval formula to assess the apple size 7.

2. The Logic of Hypothesis Testing

2.1 The purpose of hypothesis testing

Hypothesis testing is a statistical method used to evaluate a hypothesis about a population by examining sample data. It aims to determine if observed patterns in data are likely due to a genuine relationship or simply random chance 12.

The process involves several key steps:

  • Formulate a hypothesis: This is a prediction about the relationship between variables or differences between populations.
  • Measure variables and examine relationships: Data is collected to assess the variables of interest.
  • Calculate probability: The probability of obtaining the observed results is calculated under the assumption that there is no actual relationship in the population (i.e., the null hypothesis is true).
  • Interpret probability: If the c
Cover

IM.pdf

1. Introduction and foundational concepts of mathematical statistics (part 1)

This section establishes the mathematical framework for analyzing probability models involving multiple random variables, focusing on joint distributions, marginal distributions, and the concept of independence.

1.1 Multiple random variables and joint distributions

This section introduces the concept of a random vector and defines its probability model using joint cumulative distribution functions (CDFs) and joint probability mass functions (PMFs) for discrete variables.

Definition of Random Vectors

An nn-dimensional random vector, (X1,X2,…,Xn)′(X_1, X_2, \dots, X_n)', is a function mapping the sample space Ω\Omega to the nn-dimensional Euclidean space, Rn\mathbb{R}^n, such that the resulting sets in Ω\Omega are events in the probability space (Ω,A,P)(\Omega, \mathcal{A}, P).

In the bivariate case (n=2n=2), a bivariate random vector (X,Y)′(X, Y)' maps Ω→R2\Omega \to \mathbb{R}^2 such that for any u,v∈Ru, v \in \mathbb{R}: {ω∈Ω:−∞<X(ω)≤u;−∞<Y(ω)≤v}∈A\{\omega\in\Omega : -\infty<X(\omega) \leq u; -\infty<Y(\omega) \leq v\}\in\mathcal{A}.

Example: Tossing two fair dice, where XX is the sum of the two dice and YY is the absolute difference defines a bivariate random vector (X,Y)′(X, Y)' over the 36 possible outcomes.

Joint Cumulative Distribution Function (Joint CDF)

For kk random variables X1,X2,…,XkX_1, X_2, \dots, X_k defined on the same probability space, the joint cumulative distribution function (Joint CDF), FX1,X2,…,Xk(⋅,⋅,…,⋅)F_{X_1, X_2, \dots, X_k}(\cdot, \cdot, \dots, \cdot), is defined as: FX1,X2,…,Xk(x1,x2,…,xk)=P({X1≤x1;X2≤x2,…,Xk≤xk})(1.1)F_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = P(\{X_1 \leq x_1; X_2 \leq x_2, \dots, X_k \leq x_k\}) \quad (1.1) The joint CDF is a function with domain Rk\mathbb{R}^k and codomain 12.

Properties of the Joint CDF FX,Y(x,y)F_{X,Y}(x,y) (Bivariate Case):

  1. Boundedness:
    • FX,Y(−∞,v)=0F_{X,Y}(-\infty, v) = 0
    • FX,Y(u,−∞)=0F_{X,Y}(u, -\infty) = 0
    • FX,Y(∞,∞)=1F_{X,Y}(\infty, \infty) = 1
    • Thus, 0≤FX,Y(x,y)≤10 \leq F_{X,Y}(x,y) \leq 1 for all (x,y)∈R2(x,y) \in \mathbb{R}^2.
  2. Monotonicity: If a≤ba \leq b and c≤dc \leq d, then the probability of a<X≤ba<X \leq b and c<Y≤dc<Y \leq d is non-negative: P(a<X≤b,c<Y≤d)=FX,Y(b,d)−FX,Y(b,c)−FX,Y(a,d)+FX,Y(a,c)≥0P(a<X \leq b, c<Y \leq d) = F_{X,Y}(b,d) - F_{X,Y}(b,c) - F_{X,Y}(a,d) + F_{X,Y}(a,c) \geq 0 The function is monotone non-decreasing in each variable.
  3. Continuity from the right: For any fixed u∈Ru \in \mathbb{R}, FX,Y(u+h,v)→FX,Y(u,v)F_{X,Y}(u+h, v) \to F_{X,Y}(u, v) as h→0+h \to 0^+, and similarly for the second variable.

Tip: The monotonicity property implies specific formulas for calculating probabilities over different intervals based on the joint CDF, such as: P(X=b,Y=d)=FX,Y(b,d)−FX,Y(b−,d)−FX,Y(b,d−)+FX,Y(b−,d−)P(X = b,Y = d) = F_{X,Y}(b,d) - F_{X,Y}(b-,d) - F_{X,Y}(b,d-) + F_{X,Y}(b-,d-) If FX,YF_{X,Y} is continuous at (b,d)(b,d) in one variable, then P(X=b,Y=d)=0P(X = b,Y = d) = 0.

Joint Probability Mass Function (Joint PMF) for Discrete Variables

A kk-dimensional random variable is jointly discrete if it assumes values only at a countable number of points in Rk\mathbb{R}^k.

The joint probability mass function (joint PMF), pX1,X2,…,Xk(⋅,⋅,…,⋅)p_{X_1, X_2, \dots, X_k}(\cdot, \cdot, \dots, \cdot), is defined as: pX1,X2,…,Xk(x1,x2,…,xk)=P(X1=x1,X2=x2,…,Xk=xk)>0p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = P(X_1 = x_1, X_2 = x_2, \dots, X_k = x_k) > 0 for possible values (x1,x2,…,xk)′(x_1, x_2, \dots, x_k)', and zero otherwise. The set of points where the PMF is strictly positive is the set of mass points.

Properties of the Joint PMF:

  1. pX1,X2,…,Xk(x1,x2,…,xk)≥0p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) \geq 0 for all (x1,x2,…,xk)∈Rk(x_1, x_2, \dots, x_k) \in \mathbb{R}^k.
  2. The sum over all mass points equals one: ∑pX1,X2,…,Xk(x1,x2,…,xk)=1\sum p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = 1.

Relationship between Joint PMF and Joint CDF (Bivariate Case):

  • From PMF to CDF: FX,Y(u,v)=P(X≤u,Y≤v)=∑x≤u∑y≤vP(X=x,Y=y)=∑x≤u∑y≤vpX,Y(x,y)F_{X,Y}(u,v) = P(X \leq u,Y \leq v) = \sum_{x\leq u} \sum_{y\leq v} P(X = x,Y = y) = \sum_{x\leq u} \sum_{y\leq v} p_{X,Y}(x,y).
  • From CDF to PMF: pX,Y(a,b)=FX,Y(a,b)−FX,Y(a−,b)−FX,Y(a,b−)+FX,Y(a−,b−)p_{X,Y}(a,b) = F_{X,Y}(a,b) - F_{X,Y}(a-,b) - F_{X,Y}(a,b-) + F_{X,Y}(a-,b-) 15.

Knowledge of the joint CDF is equivalent to knowledge of the joint PMF for jointly discrete random variables, and this equivalence extends to kk-dimensional vectors.