首页 > 其他分享 >MathProblem 61 Coin toss problem #3

MathProblem 61 Coin toss problem #3

时间:2022-08-29 21:44:06浏览次数:86  
标签:2p cdot toss number 61 heads problem Coin

Suppose you have a coin in which the probability of flipping a heads is \(p\), where \(p\ge0.5\) . What is the expected number of flips it will take for the number of heads to equal the number of tails, assuming the first flip is a tails?

Solution

将其转换为 \(random\ walk\), 其中向左走 \(+1\), 向右走 \(-1\), 那么期望的移动长度:

\[E[X] = p\cdot 1+(1-p)\cdot (-1)=2p-1 \]

那么问题转换为回到原点需要的期望步数是多少。由于一开始为 \(tail\), 所以起始为 \(-1\) 的位置,即:

\[E[N]\cdot (2p-1)=1\Rightarrow E[N]=\frac{1}{2p-1} \]

标签:2p,cdot,toss,number,61,heads,problem,Coin
From: https://www.cnblogs.com/xinyu04/p/16637467.html

相关文章

  • MathProblem 59 Two primes problem
    Showthatanyprimenumberotherthan2canbeexpressedasthedifferenceoftwosquares,whereeachsquareisanintegersquared.Solution任何质数都是奇数。......
  • 具备自动校准功能,低待机电流,抗电压波动等特性的高性价比抗干扰低功耗触摸IC:VK3606D、V
    VK3606D具有6个触摸按键,可用来检测外部触摸按键上人手的触摸动作。该芯片具有较高的集成度,仅需极少的外部组件便可实现触摸按键的检测。提供了6路1对1直接输出低电平有效......
  • HUAWEI CT6100 进 BIOS
    设备由于家中将IPv6分配给了每个设备,我对于这些设备的安全性其实还是存在顾虑,所以考虑加装个防火墙。因为不是经常刷机刷BOIS,图方便在淘宝买了个刷好现成的HUAWEICT......
  • 1616. 分割两个字符串得到回文串
    给你两个字符串 a和 b ,它们长度相同。请你选择一个下标,将两个字符串都在 相同的下标分割开。由 a 可以得到两个字符串: aprefix 和 asuffix ,满足 a=aprefix......
  • 61. 旋转链表
    提示:这个题目比较简单,只需要找到待断处的前一个节点就行,题目描述:给你一个链表的头节点 head ,旋转链表,将链表每个节点向右移动 k 个位置。案例:输入:head=[1,2,3,4,......
  • MathProblem 52 Two children problem
    Awomanischosenatrandomamongallwomenthathavetwochildren.Sheisaskeddoyouhaveatleastoneboy,andsheanswers'yes.'Whatistheprobabilityh......
  • MathProblem 51 Maximum volume of cone problem
    Youhaveatortillawithradius1andwishtoformacone.Youmaycutoutanywedgeyoulikefromthetortilla.Thepointofthewedgemustbeatthecentero......
  • MathProblem 44 Coin toss problem #1
    Youaregivenaninitialprizeofonedollar.Acoinwillbetossedindefinitelyuntilatailsoccurs.Everytimeaheadsistossedyourprizewillbedoubled.......
  • P7961 [NOIP2021] 数列
    题目描述给定整数\(n,m,k\),和一个长度为\(m+1\)的正整数数组\(v_0,v_1,\ldots,v_m\)。对于一个长度为\(n\),下标从\(1\)开始且每个元素均不超过\(m\)的......
  • KBJ610-ASEMI热水壶专用整流桥KBJ610
    编辑-ZKBJ610在KBJ-4封装里采用的4个芯片,其尺寸都是88MIL,是一款热水壶专用整流桥。KBJ610的浪涌电流Ifsm为120A,漏电流(Ir)为10uA,其工作时耐温度范围为-55~150摄氏度。KBJ6......