Questions tagged [binomial-distribution]

The binomial distribution gives the frequencies of "successes" in a fixed number of independent "trials". Use this tag for questions about data that might be binomially distributed or for questions about the theory of this distribution.

Overview

The binomial distribution gives the frequencies of "successes" in a fixed number of independent "trials". It is a discrete distribution parametrized by $p$, the probability of "success" in a trial. For $k$ "successes" in $n$ "trials" ($k \leq n$), the form of the probability mass function is:

$$P(k,n;p) = {n \choose k} p^k (1-p)^{n-k}$$

For a binomially distributed variable $X$, the expected value and variance are given by:

$$\mathrm{E}[X] = np $$ $$\mathrm{Var}[X] = np(1-p) $$

A common example to demonstrate the use of the demonstration is finding the probability of the number of heads or tails in a certain number of coin flips.

2378 questions
65
votes
11 answers

How can I determine which of two sequences of coin flips is real and which is fake?

This is an interesting problem I came across. I'm attempting to write a Python program to get a solution to it; however, I'm not sure how to proceed. So far, I know that I would expect the counts of heads to follow a binomial, and length of runs (of…
6
votes
2 answers

What is the distribution of the Binomial distribution parameter $p$ given a sample k and n?

If I have a $k$ successes in $n$ bernoulli trials, does the parameter $p$ of the binomial distribution follow a well-known distribution? There are some methods to calculate confidence intervals for $p$, I'm interested in the distribution for the…
Penz
  • 235
5
votes
3 answers

Setting null hypothesis for Binomial test

I have a question for setting null hypothesis in binomial test. More specifically, is there any way to assume chance level when it is unknown? For example, let's say that I have a slightly bent coin. So chance for getting Heads or tails is not…
4
votes
1 answer

Formula to compare response rates

I often use tools like the one on this webpage to determine if the response rate between two mail campaigns are statistically significant, but I'd like to know more about what's happening under the hood. I have a basic understanding of simple…
4
votes
1 answer

Distribution of a single number in roullette but not chosen a priori

In roullette (say European with 37 slots) when the wheel is fair and the success is predefined as hitting a specific number (say $13$) the number of successful outcomes in $n$ spins/trials should follow the binomial distribution with $p=1/37,$ I…
4
votes
2 answers

Binomial Distribution PMF/CDF Identity

I was solving a puzzler and I came across an identity that I've never seen before. I consulted a couple stats experts and textbooks and have come up empty. I'm wondering if anyone has ever seen this before. Let $f(k, n, p)$ and $F(k, n, p)$ be the…
4
votes
1 answer

Calculate confidence/chance of beating baseline

As shown in the Google Web Optimizer example I would like to calculate the chance of beating baseline (original) - I tried around but couldn't figure out how they do it. I think the +- next to the conversion rate is the standard error but my…
Tobi
  • 141
4
votes
1 answer

Calculate the number of trials needed to achieve certain number of successes at a confidence level

If I know the probability of success for an event, the number of time that I want to observe the event at a certain confidence level how do I calculate the number of trials needed?
nex
  • 65
4
votes
1 answer

The unimodality of a generalised binomial distribution

In my research, I'm summing a bunch of non-independent, not identically distributed random (0,1)-variables $X_1,X_2,\ldots,X_n$ with corresponding probabilities $\pi_1,\pi_2,\ldots,\pi_n$. The resulting distribution is multimodal, and I want to…
3
votes
1 answer

Multiple dependent binomial tests

This may well be a textbook question - I am not a statistician and just need to solve a practical problem - I will be grateful for any pointers to literature. There is a $M\times N$ matrix $P$ defined by (matrix) multiplication of vectors $X$ and…
Andris Birkmanis
  • 496
  • 2
  • 12
3
votes
1 answer

Expected revenue in case of flight overbooking

An airline operates a flight having 50 seats. As they expect some passenger to not show up, they overbook the flight by selling 51 tickets. The probability that an individual passenger will not show up is 0.01, independent of all other tourists.…
Giiovanna
  • 1,208
3
votes
2 answers

Likelihood of events coinciding at random

I have what is probably a very naive question, but I've been unable to find a suitable explanation elsewhere. I am trying to calculate the likelihood of two errors occurring at the same position if they are randomly distributed amongst all…
Alan
  • 55
3
votes
1 answer

Comparing two binomial survey answers

I am trying to determine if results of a survey question for two different departments is significant. The question is "Were you fully satisfied by the service you received today?" Answer is Yes / No. Department A: 52% of 141 customers were…
aero
  • 31
3
votes
1 answer

binomial distribution and rolling dice

I play a tabletop game and we roll dice for game outcomes. The dice have 8 sides and a certain result (lets call it a success) appears on 2 sides, so 25% of success. If I roll 4 dice, the chance of having at least one success is about 70% (binomial…
XBear
  • 31
  • 2
2
votes
1 answer

Are API calls being success or failures independent events?

Let's say I have an API, and customers are calling my API. I want to model this as a Binomial distribution because either the call can fail or succeed. To use a binomial distribution, the API calls need to be independent events. I assume these are…
1
2 3 4