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

learn more… | top users | synonyms

1
vote
0answers
14 views

How many boxes have balls?

I have N boxes, each of which may or may not contain a ball. I want to know how many boxes have balls by sampling the boxes in the following way. For each box in the N boxes: I open this box with ...
9
votes
3answers
196 views

Simulate a Bernoulli variable with probability ${a\over b}$ using a biased coin

Can someone tell me how to simulate $\mathrm{Bernoulli}\left({a\over b}\right)$, where $a,b\in \mathbb{N}$, using a coin toss (as many times as you require) with $P(H)=p$ ? I was thinking of using ...
-3
votes
0answers
20 views

Generating Random Variable from Bernoulli Distribution [closed]

I am using r for generating 3 random numbers from Bernoulli distribution using the following code: ...
1
vote
0answers
22 views

How to derive bernoulli deviance

I found the deviance definition in https://en.wikipedia.org/wiki/Deviance_(statistics) and the one-observation bernoulli deviance in Scikit Binomial Deviance Loss Function. $$ ...
1
vote
0answers
24 views

Standard Error for Proportion of Successes in Monte Carlo Simulation

First note, this is for an assignment. I've been through all our notes, researched online and still unsure on this. We are asked to run a stochastic simulation where, at the end of each run, there is ...
1
vote
0answers
37 views

observed data log likelihood and complete data log likelihood estimation

I have the following model. $p(z_{n}) = Categorical(\pi)$ $p(\pi) = Dir(\alpha)$ $p(x_{n}| z_{n}=k,\mu) = \prod_{d=1}^{D} {Bernouli(\mu_{kd})} $ $p(\mu_{kd}) = uniform(0,1)$ How can I find ...
4
votes
2answers
296 views

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 ...
0
votes
1answer
23 views

Standard deviation of a Bernoulli distribution?

Example: We have a population of 100 people, where only 60 of them love pizza. So, the probability of success is 0.6 SD[x] = $\sqrt{pq} = \sqrt{0.6 \times 0.4} = 0.48 $ The definition of SD is : ...
1
vote
0answers
19 views

Hamming distance of Bernoulli RV

Assume you draw $k$ data points out of $n$ data points. Each data point is composed of $m$ Bernoulli random variables. You may assume that the data points are i.i.d and likewise their coordinates, but ...
0
votes
0answers
22 views

Probability of n consecutive sucesses in N independent Bernoulli trials

How can one compute the probability of n consecutive successes in N Bernoulli trials ? (n < N)
1
vote
2answers
33 views

Calculating confidence interval for whether some of N coins are unfair

I'm having trouble figuring out the appropriate way to place a confidence interval on a ratio I'm estimating. It's for a social science application, but I'll present the problem via coin-flips as I ...
15
votes
3answers
737 views

Estimating the probability in a Bernoulli process by sampling until 10 failures: is it biased?

Suppose we have a Bernoulli process with failure probability $q$ (which will be small, say, $q \leq 0.01$) from which we sample until we encounter $10$ failures. We thereby estimate the probability ...
0
votes
1answer
17 views

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 ...
0
votes
1answer
28 views

Probability of a success at the k-th trial in N repeated Bernoulli trials

For a Bernoulli random variable with success probability $p$, how does one compute the probability of having a ''success'' at the $k$-th trial out of $N$ repeated and independent trials where $k \le ...
1
vote
1answer
37 views

estimating a parametric function

I am working on this problem and am stumped. Can anyone take a look at it? $X_1, \ldots ,X_n$ are distributed Bernoulli$(p)$ where $p$ is unknown. Consider the parametric function ...
2
votes
0answers
19 views

Combining Exponential and Bernoulli distributions

I am building a model of customer spending, and need some help to identify the best way of doing this. (1) I have an exponential distribution for each customer's spending (2) Bernoulli distribution ...
1
vote
0answers
29 views

Expectation from conditional expectations

Consider a real-valued random variable $X$ and a dichotomus random variable $Y\sim Be(p)$, all defined on the same probability space $(\Omega, \mathcal{F}, \mathbb{P})$. Could you help me to show ...
0
votes
0answers
11 views

Probability of non recurrence given a particular time of non-reccuring

I've been having a cardiac problem that may (or may not) be linked to alcohol consumption. If its happening about once a week on "social use", how long do I have to be completely alcohol free and ...
1
vote
1answer
113 views

How to calculate one probability out of several Bernoulli probabilities?

For a multi-agent problem I want to calculate the probability that a certain event happens for any agent (1 or more). There are n agents, and $P(X_i=1)=p_i$ for each agent. I want to calculate the ...
0
votes
0answers
37 views

What is the Bernoulli class conditional distribution?

What is the Bernoulli class conditional distribution? I am trying to implement a procedure for computing a naive Bayes classifier for binary features with a Bernoulli class conditional distribution. ...
1
vote
1answer
42 views

Terminology clarification: Discrete distribution == Categorical distribution?

I'm reading "The Indian Buffet Process: An Introduction and Review" by Griffiths and Ghahramani and wanted to confirm my understanding of one of the terms they use. On page 1188, they say that the ...
0
votes
2answers
58 views

Estimate point in metric variable where probability of success of a conditionally Bernoulli distributed variable changes (independent observations)

There is a metric variable X and a conditionally Bernoully distributed variable Y, where the probability of success of Y changes at a threshold x of variable X. The obervations are independent. I want ...
3
votes
0answers
33 views

Bernoulli process of not-fixed probability p?

Here's a question that might be basic, but I want to understand what distribution(s) would result when the underlying Bernoulli trials' probability $p$ varies with time...?? I assume that it's not the ...
0
votes
1answer
27 views

Success rate estimate and error from a sample of a Bernoulli distribution?

I have a sample of size $n$ of independent trials extracted from a Bernoulli distribution with unknown success rate $\theta$. Given this sample, how can I estimate the success rate $\theta$ along with ...
2
votes
4answers
75 views

Expectation of Bernoulli r.v. of arbitrary support $k\in\{a,b\}$?

How does one adapt the properties of Bernoulli variable to an arbitrary support $k\in\{a,b\}$, when the Bernoulli is typically defined for $k\in\{0,1\}$? I'm specifically interested in ...
0
votes
0answers
10 views

Classifying the F7 (First 7 days Activity) Metric

In social networks we have a commonly used metric called F7. It is the number of days a user logged in during their fist week since sign up. This means it has a range of [1,7] since you must at least ...
1
vote
0answers
25 views

Q-Q Plot for Simulation Study with Bernoulli Data Issue

I'm currently trying to carry out a simulation study for Bernoulli Data to show that the sample proportion, ˆp, is also approximately normally distributed when the sample size is large. From an ...
0
votes
0answers
36 views

Standard Deviation vs. Standard Error of Bernoulli Trials

There is a related question and clear answer here: http://stats.stackexchange.com/a/11542/22088 But my question is slightly different. I posted a comment but the answerer has not been on Stackexchange ...
2
votes
2answers
61 views

Expected value of the ratio of shifted Bernoulli variables

Have two independent Bernoulli variables $X,Y$ I'm trying to calculate $$\mathbb{E}\bigg[\frac{X+1}{Y+1}\bigg]$$ Given $X,Y$ are independent, this can be split into: ...
0
votes
0answers
36 views

Mean of product of independent Bernoulli random variables

I am having difficulty with this. The product of independent Bernoulli random variables is Bernoulli. I am unsure as to how to go about solving this problem.
0
votes
0answers
13 views

Std. error of accuracy on 3-class problem

I want to find the std. error of accuracy on a 3-class problem, where the following is true. Number of observations is N=40000, number of classes is ...
0
votes
1answer
533 views

How to derive the likelihood function for binomial distribution for parameter estimation?

According to Miller and Freund's Probability and Statistics for Engineers, 8ed (pp.217-218), the likelihood function to be maximised for binomial distribution (Bernoulli trials) is given as $L(p) = ...
0
votes
1answer
113 views

Bernoulli Trials and Bayes Rule for a Beta Distribution?

So I stumbled upon the following question from Peter Lee's website. Suppose that your prior beliefs about the probability π of success in Bernoulli trials have mean 1/4 and variance 1/48. Give ...
2
votes
1answer
33 views

Conditional distribution of successes in first m independent Bernoulli trials given the total number of successes

This is my attempt: I have, so far, let $Y_{mi} = 1$ if $ith$ trial in first $m$ trials is a success and of course, 0 otherwise. Indeed, $Y_m = \sum_{i=1}^mY_{mi}$. I think this is what I need ...
1
vote
2answers
192 views

Success of Bernoulli trials with different probabilities

If 20 independent Bernoulli trials are carried out each with a different probability of success and therefore failure. What is the probability that exactly n of the 20 trials was successful? Is there ...
3
votes
1answer
188 views

Why is a binomial distribution bell-shaped?

I would expect there to be only be values between zero and one (with 0 => failure and 1 => success), but instead the values go up much higher. For example, if I search for "binomial distribution ...
0
votes
0answers
12 views

distribution of the probabliity of multivariate Bernoulli

A p-dimension vector $\mathbf{X}$ has multi-variate Bernoulli distribution and all dimensions are mutually independent. $\mathbf{X}$ has distribution ...
0
votes
1answer
42 views

Combined confidence of hit/miss results from 20 different test subjects

I'm a computer science student and statistics isn't my strong suite. I would appreciate some help. I did a task performance experiment for my Master's thesis to validate my "special secret ...
1
vote
0answers
19 views

A variation of binomial model with gain associated with each success

I am trying to develop my first machine learning model. Each example k in data has [#trials(k), #successes(k), gain(k)]. So total gain for example k is ...
2
votes
1answer
63 views

Expectation of a cubic transformation of a Bernoulli random variable

I was asked the following question: $X$ is a random variable which follows a Bernoulli distribution with parameter $p$ and take $Y=a+bX$. Compute $\mathbb{E}(Y^3)$.
0
votes
0answers
25 views

Independence in a Joint Bernoulli distribution

Given that [X = 1] and [Y = 1] are independent in a joint Bernoulli distribution, how do we show that X and Y are independent?
0
votes
0answers
18 views

Composite random variables and sufficiency

I wish to find a sufficient statistic for a composite random variable ... Suppose $Z$ is Bernoulli$(p)$ and let $$X|Z=z\sim\begin{cases} N(0,1) & \text{if }z=1\\ E(\lambda)& ...
1
vote
0answers
21 views

Negative binomial distribution & Bernoulli distribution - expected value, MGF

could anyone please help me with the following exercise? Let us assume that the random variable $N$ has a negative binomial distribution $P(N=n) = (n+1)(\frac{3}{4})^2(\frac{1}{4})^n$. $X_1, X_2, ...
2
votes
1answer
51 views

Convergence of Bernoulli sampling procedure

Let $X$ be a variable which has density $f_{X}$ and mean $E[X]=\mu$ Define $B$, a Bernoulli variable, which has a probability $P(b_{i}=1)=p_{i}=\frac{1}{N^\gamma}$ Consider the following ...
4
votes
2answers
213 views

Expected number of successes from $N$ Bernoulli trials with different $p$

Suppose I have N probabilities $(p_1, p_2,...,p_N)$ that represent the chance that each that a corresponding test was passed. How do I apply the Bernoulli distribution to determine the expected number ...
0
votes
1answer
32 views

Distribution of partially observable binominal parameter

I suspect this is a textbook question but I don't seem to have the right textbook. Anyway I am trying to estimate probability of coin landing on heads, p, by repeatedly flipping it N times, i.e., ...
0
votes
1answer
567 views

T-test for Bernoulli Distribution- Sample or Population data for SE calculation?

Am struggling to understand part of the answer to a question have done- Qu- In a given population, 11% of the likely voters are African American. A survey using a simple random sample of 600 landline ...
1
vote
0answers
27 views

Distinguishing two Bernoulli random sources

I have a source of independent Bernoulli random variables, which is either $(X_i)$ or $(Y_i)$ where $\Pr[X_i=1]=p$ and $\Pr[Y_i=1]=q$. I can sample as many values as I'd like, and would like to figure ...
4
votes
1answer
165 views

Name of single sample multinomial distribution

The Binomial$(n, p)$ distribution is called "Bernoulli distribution" with parameter $p$ in the special case $n=1$. Many properties of the Binomial are derived from the fact that the sum of $n$ i.i.d. ...
3
votes
1answer
160 views

Representative resampling

I am working with a population in which each individual has, among others, 6 observed variables that can be 0 or 1: $X_i \sim Bernoulli(p_i),\ i=1,...,6$ . I know the "true" value for the ...