Questions tagged [bernoulli-distribution]

The Bernoulli distribution is a discrete distribution parametrized by a single "success" probability. It is a special case of the binomial distribution.

The Bernoulli distribution is a discrete distribution parametrized by a "success" probability $p$. For a Bernoulli distributed random variable $x$, the probability mass function (pmf) takes a value of $p$ at $x=1$, and $(1-p)$ for $x=0$. A concise representation of the pmf is:

$$P(x;p) = p^x (1-p)^{1-x} \;\;\; \mbox{for} \; x=\left\{ 0,1 \right\}$$

The Bernoulli distribution is a special case of the binomial distribution with a single trial ($n=1$).

600 questions
5
votes
2 answers

Why 0 for failure and 1 for success in a Bernoulli distribution?

Why do we choose these numbers and not for e.g $e$ and $\pi$ for success and failure in an experiment? What is the logic and how badly would it affect my calculations if I choose other values instead of 0 and 1?
Oleg
  • 454
4
votes
3 answers

Understanding the meaning of $n = 1$ in the Bernoulli distribution

I am not very familiar with the Bernoulli distribution and am seeking to understand when to use it rather than other, more common binomial distributions in machine learning models. I began by reading on Wikipedia, which gives the following…
Hack-R
  • 1,015
4
votes
1 answer

Change detection in a Bernoulli sequence

Suppose $X_1, X_2, \ldots, X_n$ is a sequence of independent Bernoulli random variables with (say) $$X_i \sim \begin{cases} \mathrm{Ber}(0.1) & 1 \leq i \leq an \\ \mathrm{Ber}(0.2) & an+1 \leq i \leq n\end{cases}$$ for some $a$ that is unknown to…
Hedonist
  • 143
  • 4
3
votes
2 answers

Why is this a Bernoulli distribution?

In the paper I am reading, I come across $$ q(s) \propto \left( \frac{b}{c} \right)^{s}\quad s=\{0,1\}, \quad(1) $$ and the author says this is a Bernoulli distribution. ($b>0$ and $c>0$) I know Bernoulli distribution is $$ p^k (1-p)^{1-k} \quad…
2
votes
1 answer

Given Bernoulli probability, how to draw a Bernoulli from a uniform distribution

I have a set of probability corresponding to Bernoulli experiment. How to draw Bernoulli random number given these specific probability from a uniform(0,1) distribution. I know we can draw from binom, but using uniform distribution can vectorize the…
MLE
  • 360
  • 1
  • 6
  • 14
1
vote
0 answers

Find confidence level when sampled Bernoulli trials are all successes

I have many (250) instances of an experiment in which a binary random variable is the output. I selected a sampling of 80 instances and verified the result in every case to be success. I suspect that all 255 instances are success, but I cannot be…
0
votes
1 answer

10 Trials: Each with 2% Success Rate, what is the Probability One of the Trials will be successful?

I'm looking for chance of success when within a number of trials with each trial having success rate x I learned that formula in highschool stats but I've since forgotten it. Oh what a fool am I! My intuition says that: 50 x 2 = 100, 10 x 2 = 20 so…
0
votes
1 answer

expected value of filtered binomial

Assume a bernoulli random variable with success probability p. In 12 independent trials of the bernoulli I only look at the third, sixth, nineth and twelfth experiment. What is the expected value of the number of successes that I observe at these…
user83346