Harvard statistics, video 7 note(Gambler's ruin & random variable)
来源:互联网 发布:淘宝商品资质是什么 编辑:程序博客网 时间:2024/05/18 00:09
10:48 2014-10-06
start Harvard statistics, video 9
Gambler's ruin & random variables
10:49 2014-10-06
* conditioning is the soul of statistics
* random variables & their distributions
10:56 2014-10-06
Gambler's Ruin problem:
Two gamblers A & B, sequence of rounds bet $ 1,
P = P(A wins a certain round), q = 1-p // B wins round
repeat until one of them goes to bankrupt.
ruins means bankrupcy
assuming A starts with $ i, B starts with $ (N-i)
11:02 2014-10-06
that's the setup of the problem
11:02 2014-10-06
another way to think of this is a "random walk"
11:03 2014-10-06
random walk
11:03 2014-10-06
absorbing state at 0, N
11:06 2014-10-06
how many round the game will lasts?
mathematically it can last forever.
11:08 2014-10-06
strategy: condition on 1st step
11:10 2014-10-06
you have to pick something to condition on to
break it up into manageable pieces.
11:11 2014-10-06
Let Pi = P(A wins game | A starts at $i)
11:13 2014-10-06
LOTP == Law Of Total Probability
11:13 2014-10-06
this is a recursive equation
11:16 2014-10-06
computer are very good at recursion
11:16 2014-10-06
difference equation, differential equation
11:17 2014-10-06
we would very quickly run out of notation.
11:50 2014-10-06
we need the concept of random variable
11:50 2014-10-06
we need the notion of a function
11:58 2014-10-06
What is a random variable?
It's a function from the sample sapce S to the R
11:59 2014-10-06
think of the random variable as a numerical "summary"
of an aspect of the experiment.
12:03 2014-10-06
each possbile outcomes maps to some number.
12:04 2014-10-06
Defn(Bernoulli distribution):
A r.v. X is said to have Bernoulli(p) distribution
if X has only 2 possible values, 0 & 1, and
P(X = 1) = p, P(X = 0) = 1-p
12:05 2014-10-06
then we say that this is a Bernoulli p r.v.
12:07 2014-10-06
before we do the experiment, we don't know
whether it's going to be 0 or 1;
after we do this experiment, either it turns out
to be 0 or 1
12:08 2014-10-06
Binomial(n, p) The distribution of #successes in
n independent Bernoulli(p) trials is called Binomial(n,p)
its distribution is given by
P(X = k) // X is going to an integer between 1 & n
12:10 2014-10-06
Bernoulli trials
12:11 2014-10-06
Bernoulli(p) => Binomial(n, p)
12:11 2014-10-06
PMF == Probability Mass Function
12:14 2014-10-06
one quick comment about the Binomial, suppose
X ~ Binomial(n, p), Y ~ Bin(m, p), independent
then X + Y ~ Bin(n,p)
start Harvard statistics, video 9
Gambler's ruin & random variables
10:49 2014-10-06
* conditioning is the soul of statistics
* random variables & their distributions
10:56 2014-10-06
Gambler's Ruin problem:
Two gamblers A & B, sequence of rounds bet $ 1,
P = P(A wins a certain round), q = 1-p // B wins round
repeat until one of them goes to bankrupt.
ruins means bankrupcy
assuming A starts with $ i, B starts with $ (N-i)
11:02 2014-10-06
that's the setup of the problem
11:02 2014-10-06
another way to think of this is a "random walk"
11:03 2014-10-06
random walk
11:03 2014-10-06
absorbing state at 0, N
11:06 2014-10-06
how many round the game will lasts?
mathematically it can last forever.
11:08 2014-10-06
strategy: condition on 1st step
11:10 2014-10-06
you have to pick something to condition on to
break it up into manageable pieces.
11:11 2014-10-06
Let Pi = P(A wins game | A starts at $i)
11:13 2014-10-06
LOTP == Law Of Total Probability
11:13 2014-10-06
this is a recursive equation
11:16 2014-10-06
computer are very good at recursion
11:16 2014-10-06
difference equation, differential equation
11:17 2014-10-06
we would very quickly run out of notation.
11:50 2014-10-06
we need the concept of random variable
11:50 2014-10-06
we need the notion of a function
11:58 2014-10-06
What is a random variable?
It's a function from the sample sapce S to the R
11:59 2014-10-06
think of the random variable as a numerical "summary"
of an aspect of the experiment.
12:03 2014-10-06
each possbile outcomes maps to some number.
12:04 2014-10-06
Defn(Bernoulli distribution):
A r.v. X is said to have Bernoulli(p) distribution
if X has only 2 possible values, 0 & 1, and
P(X = 1) = p, P(X = 0) = 1-p
12:05 2014-10-06
then we say that this is a Bernoulli p r.v.
12:07 2014-10-06
before we do the experiment, we don't know
whether it's going to be 0 or 1;
after we do this experiment, either it turns out
to be 0 or 1
12:08 2014-10-06
Binomial(n, p) The distribution of #successes in
n independent Bernoulli(p) trials is called Binomial(n,p)
its distribution is given by
P(X = k) // X is going to an integer between 1 & n
12:10 2014-10-06
Bernoulli trials
12:11 2014-10-06
Bernoulli(p) => Binomial(n, p)
12:11 2014-10-06
PMF == Probability Mass Function
12:14 2014-10-06
one quick comment about the Binomial, suppose
X ~ Binomial(n, p), Y ~ Bin(m, p), independent
then X + Y ~ Bin(n,p)
0 0
- Harvard statistics, video 7 note(Gambler's ruin & random variable)
- Harvard statistics 110, video 8 note(random variables & their distribution
- Harvard statistics, video 6 note(Monty Hall & Simpson's paradox)
- Harvard statistics, video 9 note(expectation & indicator)
- Harvard statistics, video 11 note(Poisson Distribution)
- Uva11500-Gambler's ruin
- Harvard statistics 110, video 1 note(probability & counting)
- Harvard statistics 110, video 2 note(story proof & axioms)
- Harvard statistics 110, video 3 note(birthday problem)
- Harvard statistics, video 4 note(conditioning & conditional probability)
- Harvard statistics 110, video 5 note(conditioning II)
- Harvard CS 50 video note
- Gambler's Ruin(赌徒破产问题 概率论)
- Note on a harvard course
- random note
- Oprah's speech at Harvard
- Fallacy: Gambler's Fallacy(囚徒困境)
- WCF + vs2005 Video Note
- 机器学习系列之决策树
- 多线程笔试面试概念问答
- 【Java.Web】JSP —— 标签库taglib —— 自定义JSP标签 —— 基础
- PROCESS_INFORMATION结构体
- 【无限互联】下拉刷新的使用
- Harvard statistics, video 7 note(Gambler's ruin & random variable)
- Leetcode Plus One
- 关于_int64的范围以及输出格式
- 飞腾工作室
- Java中的Map、Set、List及其实现
- undefined reference to “boost” in Qt—Ubuntu
- [设计模式03]-抽象工厂
- proguard-android.txt does not exist or is not regular file
- Centos 利用sqoop从sqlserver导入数据到HDFS或Hive