Introduction
Last updated
Last updated
variance and standard deviation = dispersion (集中 or 分散)
expected value = 長期平均獲利
covariance = two variables have same changes or not
the long-run average value of the same experiment
Whole population mean
打擊率0.35的選手打100球, 期望打到35球
stock A & stock B move at the same direction -> positive covariance
stock A & stock B move at the opposite direction -> negative covariance
Covariance =(1) how far the variables are spread out (2) the nature of their relationship
degree to which two variables are linearly associated.
Two are independent will have covariance = 0
Correlation is a scaled version of covariance that takes on values in [−1,1]
discrete probability distribution.
Outcome is True or False. (Dice shows 4, or not 4)
two possible outcome
For a single trial, i.e., n = 1, the binomial distribution is a Bernoulli distribution.
we know the average time between events but they are randomly spaced (stochastic)
Earthquake happens every 5 years in A-zone, but we don't know when is next.
the binomial distribution with large trials(continuous) and rare happens = poisson
lambda = expected number of events in the interval
Meteor example
the probability of waiting less than or equal to a time:
wait for 6mins, you will have 39% chance to see a meteor.
1 - math.exp((1/12)*6) = 39%
https://towardsdatascience.com/the-poisson-distribution-and-poisson-process-explained-4e2cb17d459
Example One
Example Two
-10, 0, 10, 20, 30
8, 9, 10, 11, 12
mean (average)
(-10 + 0 + 10 + 20 + 30) / 5 = 10
(8 + 9 + 10 + 11 + 12) / 5 =10
variance
200
2
standard deviation
141
1.41