Full Summary of 2di90 From Book and Lectures
Full Summary of 2di90 From Book and Lectures
Week 1
Video 1: MR 2.1: Introduction+Motivation, Sample spaces and events
Probabilistic models
• Simplifications
Random experiment
• An experiment that can result in different outcomes, even though it is repeated in the
same manner every time
Sample spaces
Event
Union
Intersection
Complement
Mutually exclusive
Permutations
Permutations of subsets
Combinations
• The number of combinations, subsets of r elements that can be selected from a set
of n elements, is denoted as
Replacement
• Probability of an event
o For a discrete sample space, denoted as P(E), equals the sum of the
probabilities of the outcomes in E
• Axioms of probability
• Conclusions
Probability of a union
• The probability of an event B under the knowledge that the outcome will be in event
A is denoted as P(B|A)
o This is called the conditional probability of B given A
•
• Total probability rule (multiple events)
Independence
• Two events are independent if any one of the following equivalent statements is true
o
o Multiple events
▪
o Lemma
Bayes’ Theorem
•
• Multiple events
Independences formula
Week 2
Video 2: MR2.9-3.2
Random variable
• A random variable is a function that assigns a real number to each outcome in the
sample space of a random experiment
• Notation
o Random variable
▪ Uppercase letter
o Observed value of random variable
▪ Lowercase letter
• A discrete random variable is a random variable with a finite (or countably infinite)
range
•
• Example
Video 2: MR3.3
Mean or expected value of the discrete random variable X for discrete random variables
Variance of X
Special cases
Video 3: MR3.4-3.6
Discrete uniform distribution
•
• Mean and variance
Bernoulli distribution
•
• Mean and variance
Geometric distribution
Binomial distribution
•
• Mean and variance
Video 4: MR 3.6-MR3.8
Negative binomial distribution
•
• Mean and variance
Hypergeometric distribution
•
• Mean and variance
Poisson distribution
Week 3
Video 1: MR4.1-MR4.3
P(X = a) = 0 for all a in R
•
• 4.1
Normal distribution
Video 3: MR4.7
Exponential distribution
Gamma distribution
•
• Not have to be done by hand
• Watch out for the documentation used
Weibull distribution
•
•
Week 4
Video 1: MR5.1-MR5.2
Joint probability mass function (discrete random variables)
•
𝑝3
(𝑝1 𝑝2
𝑥 )×( 𝑦 )×(𝑘−𝑥−𝑦)
o 𝑓𝑥𝑦(𝑥, 𝑦) =
(𝑛
𝑘)
▪ n = full group
▪ k = sample size
▪ P1, p2 and p3 people in condition 1,2 and 3 compared to full group
• Can be calculated from percentages and n
▪ X people of k in condition of p1
▪ Y people of k in condition of p2
27b66
•
• Example:
o
o E(XY):
o
•
•
o If they are 0, it does not have to that they are independent
Video 3: MR 5.6
Sum of random variables
Homework:
Multinomial distribution
Examples:
Week 5
Video 1: MR6.1
Sample mean:
Sample variance:
Sample range:
Order statistics:
•
• Sorting the data
Sample median:
Sample percentiles
Video 2: MR6.3-6.7
Week 6
Video 1: MR7.1 – MR7.2
Sampling distribution
• Random sample
o
• Statistic and sampling distribution
video 2: MR7.3
unbiased estimator
Relative efficiency
•
Standard error of sample mean:
Sum of squares
example
•
o Finding out if unbiased:
Video 3: MR7.4_part1
Method of moments
Video 4: MR7.4_part2
Maximum likelihood equation
Video 5: MR8.1
Interval estimate and confidence interval
Week 7
Video 1: MR8.2-8.4
Student-distribution or t-distribution
•
o If you do it with variance, then do everything with variance and square root
the final intervals
Confidence interval for a population proportion
Video 2: MR8.7.1
Prediction interval for a future observation
Video 3: MR9.1_Part1
Test statistic
Video 4: MR9.1_Part2
p-value:
• Z0-value =
• Onesided p test
o
• Two sided p test
•
o u = true mean
o u0 = null hypothesis mean
• Power = 1-B
Type I error
Type II error
Week 8
Video 1: MR9.4_MR9.5
Chi square distribution
•
Binomial proportion hypothesis testing
•
Video 2: MR9.7
Goodness of fit (peason Chi-squared test)
•
o E is calculated using the formula corresponding to the distribution type per
value
▪ Then using this percentage to multiply with n
o O equals the number observed frequencies
o Choose the chi squared alpha value with n = the number of bins
▪ So fill in n – 1 = number of bins - 1
•
o So change the binomial with the type in the question
Video 3: MR11.1_MR11.2
Simple linear regression
• = sum of yi / n
• = sum of xi / n
Residual
•
• Make B1,0 = 0
Hypothesis testing on the intercept:
Video 5: MR11.4-11.7
Confidence intervals: distribution of regression coefficients
Mean when x = ….
•
Regression prediction intervals
•
Coefficient of determinations