struggling with a basic question on the bias of a coin. Assume that i believe, as prior, that a coin is 40% probable to be fair and 60% probable to be unfair, with the estimated prior bias following a symmetric beta distribution (e.g. beta distrution with α=2 and β=2). Assume that i flip the coin 10 times, and get 7 heads. I realize that the posterior must have something like the form of x * (coin=fair) + (1-x) * f(p|data), whereas x is the updated probability that the coin is fair (from prior of 40%), and f(p|data) = the conjugate of the prior beta, e.g. a beta distribution with α=2+7 and β=2+10-7. I presume that calculating the likelihood of the 7 heads under the fair assumption and the prior? beta distribution probably also plays a part, but cannot figure out how to connect the dots and calculate the value of x. pointers much appreciated!
2026-03-27 16:47:53.1774630073
Bayes - bias of a coin
756 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in PROBABILITY
- How to prove $\lim_{n \rightarrow\infty} e^{-n}\sum_{k=0}^{n}\frac{n^k}{k!} = \frac{1}{2}$?
- Is this a commonly known paradox?
- What's $P(A_1\cap A_2\cap A_3\cap A_4) $?
- Prove or disprove the following inequality
- Another application of the Central Limit Theorem
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- A random point $(a,b)$ is uniformly distributed in a unit square $K=[(u,v):0<u<1,0<v<1]$
- proving Kochen-Stone lemma...
- Solution Check. (Probability)
- Interpreting stationary distribution $P_{\infty}(X,V)$ of a random process
Related Questions in BAYESIAN
- Obtain the conditional distributions from the full posterior distribution
- What it the posterior distribution $\mu| \sigma^2,x $
- Posterior: normal likelihood, uniform prior?
- If there are two siblings and you meet one of them and he is male, what is the probability that the other sibling is also male?
- Aggregating information and bayesian information
- Bayesian updating - likelihood
- Is my derivation for the maximum likelihood estimation for naive bayes correct?
- I don't understand where does the $\frac{k-1}{k}$ factor come from, in the probability mass function derived by Bayesian approach.
- How to interpret this bayesian inference formula
- How to prove inadmissibility of a decision rule?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
I'm going to use capital $R$ to refer to the Beta-distributed random variable, and $r$ as the dummy argument to its density function, which is $r\mapsto6r(1-r)$. I'll use $X$ to refer to the number of heads in $10$ trials. Then \begin{align} \Pr(X=7\mid R=r) & = \Pr(X=7\mid\text{fair})\Pr(\text{fair})+\Pr(X=7\mid\text{biased},R=r)\Pr(\text{biased}) \\[10pt] & = 0.4\binom{10}{7}\left(\frac 1 2 \right)^{10} + 0.6\binom{10}{7} r^7(1-r)^3 \\[10pt] & = L(r). \end{align} This is the likelihood function, and the content of your question suggests I should remind you not to confuse the word "likelihood" with the word "probability".
The factor $\dbinom{10}{7}$ will appear in both the numerator and the denominator when Bayes' theorem is apply, so ignore it. And ignore the $6$ mentioned above for the same reason.
The posterior density is therefore \begin{align} & \text{constant}\cdot \left(0.4 \left(\frac 1 2 \right)^{10} + 0.6 r^7(1-r)^3\right) r(1-r) \\[10pt] = {} & \text{constant}\cdot \left(5 + 768 r^7(1-r)^3\right) r(1-r) \end{align} for $0<r<1$ and $0$ elsewhere. Here I used $\left(0.4\left(\frac12\right)^{10},0.6\right) = 1280\left(5,768\right)$ (the common denominator is $1280$).
So the posterior is a mixture of two Beta distributions.