Basic Concepts

Probability concepts

Terms
  • Random variable

    • A quantity whose possible values are uncertain.
  • Outcomes
    • The possible values of a random variable.
  • Event
    • A specified set of outcomes.
Properties
  • 0 <= P(E) <=1

Events

Odds (赔率)

Odds for the event E
  • P(E)/[1-P(E)]
Odds against the event E
  • [1-P(E)]/P(E)
Example
  • Goven (horse will win the race) = 1/8, what are the odds for or against the horse will win the race?

    • Odds for horse will win the race = (1/8) / (1-1/8) = 1/7
    • Odds against horse will win the race = (1-1/8) / (1/8) = 7/1

Rule

Multplication rule **

  • P(A|B) = P(AB)/P(B)
  • P(AB) = P(B)xP(A|B) = P(A)xP(B|A)
  • For mutually exclusive enents: P(AB) = 0
  • For independent events: P(AB) = P(A)P(B)

Addition rule

  • P(A+B) = P(A)+P(B)-P(AB)
  • For mutually exclusive events: P(A+B) = P(A)+P(B)
  • 含义:

    • P(A|B) : 在B发生的条件下A发生;
    • P(B|A): 在A发生的条件下B发生;
    • P(AB): A发生且B也发生.

Total probability rule (全概率法则)

  • 全概率法则, 包含了所有可能发生的情况
  • Definition
    • explains the unconditional probability of the event in terms of probabilities conditional on the scenarios.
  • Formula
    • P(A) = P(A|S1)P(S1) + P(A|S2)P(S2)... + P(A|Sn)P(Sn)
    • where S1,S2...Sn are mutually exclusive and exhaustive.
    • 其实就是乘法法则 P(A|S1)P(S1) = P(AS1)
    • 其实就是乘法法则, P(AS1)+P(AS2)+P(AS3)+P(AS1=4)

      •   P(AS1)= PS1(PA|S1)

Baye's formula (贝叶斯公式)

  • Definition

    • given a prior probabilities P(A) for an event, if you receiv new information (B), the rule for updating your probability(posterior probability, P(A|B)) of the event.
  • forula:
  • 例;

Probability Statistics

Expected value **

  • Definition

    • the probability-weighted average of the possible outcomes of the random variable(X)
  • Calculation
    • E(X) = P(X1)X1 + P(X2)X2 ... + P(Xn)Xn

        • E(x)就是x拔, 求方差也就是在求期望. 期望中的权重变成了这里方差中的概率.

  • 其实求方差也是在求加权平均
  • 算期望就是算加权平均. 相当于基于概率的加权平均. 所以计算期望需要两个值, probability和value.

Covariance (协方差) ***

  • Definition

    • A easure of how two variables move together. 两个随机变量变动的方向性.
  • Calculation
  • Characteristics

    • Positive covariance: the two variables tend to move together. 你涨我也涨,你跌我也跌.
    • Negative covariance: the two variables tend to move in apposite direction. 你涨我跌.
    • Valuses range from minus infinity to positive infinity
    • Units of covariance difficult to interpret (比如若是人的平方, 这样的单位没有任何意义)
    • Autocovariance is equal to the variance? 这句话怎么理解?
        • 协方差是衡量两个变量,所以把(x-x拔)(x-x拔)的其中一个x变成了y. 其实和方差是一样的. 

Correlation (相关系数,相关性) ***

  • Definition

    • A standardized measure of linear relationship between two variables.
  • Calculation
      • 分母是标准差, 分子是协方差, 即协方差 / 标准差.

      • 例:
        • 相关系数 = 协方差 / 标准差, 题目中协方差是0.80, 标准差没有告诉 , 告诉的是variance 0.0036/ 0.0009, 需要开个根号.
        • covariance = correlation * 标准差, 即, covariance = 0.80*0.03*0.06 = 0.00144.
  • Characteristics

    • Values range from -1 (perfect negative correlation) to +1 (perfect positive correlation)
    • A correlation of 0 indicates an absence of any linear(straight-line) relationship and doesn't indicate independence (相关系数是0只说明两个变量没有线性关系, 不代表两个变量互不影响. 比如y=x*x,虽然不是线性关系, 但是抛物线)
    • The bigger the absolute value, the stronger the linear relationship.

QM4_Probability的更多相关文章

随机推荐

  1. asp.net 分布式探讨之Session共享问题

    ---恢复内容开始--- Session共享是分布式架构设计中的一大难点,尽管session共享的解决方案不少,但是.net 下的解决方案还是比较少,而且说明文档也很少. 之前尝试用memcached ...

  2. 一种WPF在后台线程更新UI界面的简便方法

    WPF框架规定只有UI线程(主线程)可以更新界面,所有其他后台线程无法直接更新界面.幸好,WPF提供的SynchronizationContext类以及C#的Lambda表达式提供了一种方便的解决方法 ...

  3. java并发包分析之———BlockingQueue

    一.概述: BlockingQueue作为线程容器,可以为线程同步提供有力的保障.   二.BlockingQueue定义的常用方法 1.BlockingQueue定义的常用方法如下:   抛出异常 ...

  4. IT实用技术资源整理

    花了一下午整理出了常用的且比较实用的网站,以及一些收藏的资源,希望对大家有帮助! 常用技术资料 Python中文开发者社区 Python中文官方文档 开源中国社区 Python机器学习 jmeter插 ...

  5. Day15 jss整体结构梳理

    JS DOM--- 两个步骤: 1 查找标签 (1)直接查找 document.getElementById("idname") // dom对象 document.getElem ...

  6. 【读书笔记】C++Primer---第三章

    1.由于为了与C语言兼容,字符串字面值与标准库string类型不是同一种类型: 2.以下代码中,cin有几点需要注意:a.读取并忽略开头所有的空白字符(如空格.换行符.制表符):b.读取字符直至再次遇 ...

  7. SDCC2013大会笔记整理

    2013-8-30 大会首日 百度移动云三大框架:Clouda.SiteApp.Appbuilder MBaaS解决高性能Server很难构建的问题. 百度开放云的区域运营服务于创业者 ------- ...

  8. svn Server sent unexpected return value (403 Forbidden) in response to CHECKOUT

    今天,提交資料到公司svn服務器,但是一直提示 Server sent unexpected return value (403 Forbidden) in response to CHECKOUT ...

  9. id为194024的进程当前未运行

    .NET MVC 编译运行时 提示  >> id为194024的进程当前未运行 << 清理解决方案,重新运行

  10. Powmod快速幂取模

    快速幂取模算法详解 1.大数模幂运算的缺陷: 快速幂取模算法的引入是从大数的小数取模的朴素算法的局限性所提出的,在朴素的方法中我们计算一个数比如5^1003%31是非常消耗我们的计算资源的,在整个计算 ...