Questions tagged [binomial]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Determining the sampling size ensure defect rate of less than X parts per million at a confidence interval

For quality sampling, I need to ensure a defect rate of less than 5000 parts per million, which is 1/200, at a specific confidence level. The goal is to have the smallest sample number for the ...
3
votes
3answers
131 views

Maximum likelihood estimator of $n$ when $X \sim \mathrm{Bin}(n,p)$

Given a random variable $X\sim Bin(n,p)$, where $p$ is known $p\in (0,1)$ , $n$ is an unknown positive integer and $x\in\{0,1,2,....n\}$, what is the maximum likelihood estimator of $n$? I ...
0
votes
1answer
26 views

Do I add both the new variable and the original variable to my log binomial model?

I'm calculating interaction indices for some variables in my model. I have an interaction between two variables (age (continuous) and hypertension (binary)), and I read in a similar publication that ...
2
votes
2answers
49 views

Binomial proportion confidence interval when rigid bounds on population proportion (0.5 < p < 1)

A standard problem is estimation of confidence intervals for a population proportion given that one has observed f successes out of n independent trials. There is a reasonable discussion of this ...
3
votes
1answer
36 views

How do I interpret this interaction between a continuous variable and a binary variable from a log binomial model?

I'm new to modelling and not sure how to interpret this interaction for a results section. The model output tells me that the interaction between cancer (binary) and age (continuous - one year ...
0
votes
0answers
7 views

Analyzing repeatability using rptR package with binary data, CI doesn't match estimated R [closed]

I'm using the rptR package in R with the following code: rpt(SUCCESS ~ TRIAL + (1|SUBJECT), data=phase1, datatype ="Binary", grname="SUBJECT", nboot = 100, npermut = 0, ratio = TRUE) I've also ran ...
0
votes
0answers
22 views

How do I determine goodness of fit for a test of n binary decisions?

Let's say I have $n$ pairs of items. For each pair I select one item over another due to some perceived trait. This could be anything, for example, identifying which image is brighter than the other ...
1
vote
1answer
21 views

What is the probabilty that X > 2 conditioning on Y = 2? (Homework)

another homework question here. Let 𝑌 be a binomial random variable with 10 number of trials and 0.2 probability of success. Let X be a uniformly distributed random variable over the interval [0, 3]. ...
-1
votes
1answer
19 views

(Binomal Distribution) With n = 20, p = 0.2, calculate the probability that 2X >4 (Homework) [duplicate]

This is a homework question. The scenario is as follows: A dishwasher can accommodate 20 plates in one loading. With every loading, there is a 20% chance that 1 plate will not be cleaned properly. ...
2
votes
0answers
21 views

Are the beta distribution and binomial distribution related? [closed]

I've seen questions like this and this, but it hasn't quite answered my question. How intertwined are the Beta and Binomial distributions? A quick sidenote: the Poisson distribution and the ...
0
votes
1answer
222 views

Degrees of freedom - binary vector

I came across the following statement: A general distribution over a binary vector (of lenght $N$) has $(2^{N}-1)$ degrees of freedom, whereas a factorial distribution over a binary vector has ...
0
votes
2answers
147 views

Statistical confidence in voting samples

I'm currently watching the USA elections and I'm wondering how the confidence is calculated. So let us say we have a state of 500,000 inhabitants; 5,000 votes have been counted and 80% (4,000 votes) ...
5
votes
1answer
775 views

Chi-squared test and binomial distribution

In some circumstances the Chi-square test can be replaced by a test based on the binomial distribution. The common issue with using the binomial distribution is that it may quickly become tricky to ...
1
vote
1answer
48 views

Does a 2*2 chi-square test give the same results as a binomial test?

This is a conceptual question. Suppose we have an experimental design with two grouping variables (e.g., the subjects are either male or female) and the variable we are measuring is a binary variable, ...
0
votes
1answer
44 views

How to find P(2X>4)?

This is a Binomial question. I am required to find P(2X>4), and given that X~B(10,0.2), how do I convert it to 2X~B(n,p)? Have tried converting from P(2X>4) to P(X>2), but understand that it doesn't ...
2
votes
1answer
213 views

Am I understanding how a Confidence Interval is obtained?

In short: I'm wondering if I'm understanding the concept of two-sided "Confidence Interval" via an example? Details: Suppose we observe 5 successes in 20 trials and so our observed $p = 5/20$. To ...
5
votes
1answer
1k views

How to combine/pool binomial confidence intervals after multiple imputation?

After I multiply imputed my dataset m times I wanted to calculate a binomial proportion confidence interval. How I can I combine the various estimates of the confidence intervals while taking Rubins ...
3
votes
2answers
5k views

Binomial distribution where probability of success is dependent on another binomial distribution

How does one model the Binomial distribution where the probability of success is the result of another Binomial distribution. For example, say I make 10 coin tosses many times and record the number ...
0
votes
0answers
8 views

Equivalence test for one proportions test

I want to apply an equivalence test on my sample to infer whether they are equivalent or not. Since my data are binominal [0,1] I don’t know whether the TOST procedure (tost() in R) can handle my ...
1
vote
1answer
224 views

Limiting distribution of order statistics with binomial weights

Let $G$ be a CDF whose support is $[0,1]$ and $x\in(0,1)$ is a constant. Define a CDF $H^n$ by $$H^n(t)=\sum^n_{k=1}{n-1\choose k-1}x^{k-1}(1-x)^{n-k}G_{k;n}(t).$$ where $G_{k;n}$ is a CDF of k-th ...
1
vote
2answers
449 views

Test if two binomial distribution are significantly different from each other

I obtained two groups of data from my experiment and calculated the binomial distribution for each group, trying to see if they are significantly different from each other. However, the z sore I got ...
0
votes
0answers
14 views

Bernoulli Cusum Chart?

Can I use the R package named 'cusum' to make bernoulli cusum charts or should I use another package? I've been asked to explore using Bernoulli cusum chart for trending a parameter that's usually 0 ...
3
votes
1answer
47 views

Probability statistics - probability that 10 or more of the donors are Rh-negative?

In a certain population, 18% of the people have Rh-negative blood. A blood bank serving this population receives 95 blood donors on a particular day. So my teacher posted a solution to a problem ...
6
votes
2answers
974 views

Can multinomial distribution be simulated by a sequence of binomial draws?

I wonder if single multinomial distribution (I will use the notation from JAGS/WinBUGS, but in fact, this is principial thing rather than of particular language) ...
1
vote
1answer
57 views

Bayesian inference for Beta distribution after an uncertain outcome

Normally, when we have $$p\sim Beta(a,b)$$ and an observation of $x=1$ (''success'') from a Bernoulli trial with ''success'' probability $p$, the Bayesian inference on the parameter value $p$ is $$p|x\...
2
votes
1answer
122 views

How to calculate the posterior probability with bayesian theory?

The Bayesian formula is given as the following simple way. $${\mathsf P}(a\mid x) ~=~ \dfrac{{\mathsf P}(x\mid a)~{\mathsf P}(a)}{{\mathsf P}(x)}$$ A factory makes pencils. prior probability: ...
2
votes
1answer
179 views

When are real limits used for calculating z score?

I'm taking an introductory statistics course. At first, the textbook talks about real limits in the context of continuous variables and frequency distribution table, that is all clear. But on what ...
2
votes
1answer
255 views

Is Rule of Three inappropriate in some cases?

I'm building binomial proportion confidence intervals for a patient dataset containing the frequency of home nursing visits during the week prior to hospital admission. The freq. of home visit ...
0
votes
1answer
45 views

binomial pairs probability

A group of four people is said to be “interesting", if there are at most five pairs who are friends. Assume that each pair of people are friends, independent of every other pair, with probability 1/2 ....
1
vote
1answer
166 views

difference between independent binomial variables

let and $ X_1\ and \ \ X_2$ be independent such that $ X_1 $ ~ binomial (m,1/2) and $ X_2 $ ~ binomial (n,1/2) , n $ \ne$ m then how to prove that $ X_1 - X_2 + m $ ~ binomial (m + n ,1\2) ...
1
vote
1answer
27 views

binomial correlation?

I am interested in testing for a correlation between two variables, both of which are binomial. I guess this is equivalent to a Model II regression where both variables are binomial. Ideally I want ...
0
votes
1answer
11 views

How to “fit” the size of a binomial distribution

I'm solving a problem where I have 15 samples of a unknown distribution. They ask me to fit somehow the parameters of the Binomial, Poisson and Normal distributions. I could use the sample mean and ...
0
votes
0answers
9 views

Tuning the “strength” of updates to a posterior distribution for conjugates

I'm asking this question as a sanity check- I am not a statistician or research scientist, and just am doing a gut check on a model I am building. I want to quantify uncertainty of a specific metric ...
3
votes
1answer
211 views

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?
1
vote
1answer
39 views

Why “sum of squared Pearson residuals” is around “number of dependent variables” in Binomial distribution?

A Pearson residual is defined as: $r_{i}(\theta)=\frac{y_{i}-E(y_{i}|\theta)}{\sqrt{Var(y_{i}|\theta)}}\tag{1}$ Sum of squared standard residuals $X^{2}$ is: $X^{2}=\sum_ir_i^2\tag{2}$ where $y_{i}$ ...
0
votes
1answer
185 views

Residual Deviance and degrees of freedom - Negative Binomial Distribution

I am trying to model count data using python's statsmodels module (Beer's sold at a football stadium as function of visitors, "tilskuer", and weather data). ...
50
votes
8answers
12k views

How to tell the probability of failure if there were no failures?

I was wondering if there is a way to tell the probability of something failing (a product) if we have 100,000 products in the field for 1 year and with no failures? What is the probability that one of ...
0
votes
0answers
25 views

Testing for extinction using the binomial distribution

I'm using quadrat sampling to determine whether a species of plant is present in a given area - my end goal is to work out how many quadrats need to be checked without finding anything before I can ...
-1
votes
2answers
56 views

Covariance between two binomial random variables

Consider a binomial random variable $X$ with parameter $p$ and another binomial random variable $Y$ with parameter $q$. What is the covariance of $X$ and $Y$? How well does the proof generalize to $n$...
0
votes
0answers
13 views

Null hypothesis test for proportions without minimum requirements? [duplicate]

I have a typical dataset: sample A (method A) which has 200 samples and 25 failures. sample B (method B) which has 240 samples and 0-10 failures. Note that 0 failures is possible. Null hypothesis is ...
0
votes
1answer
65 views

How do you calculate an exact two-tailed P-value using binomial distribution? [closed]

First, I will preface this question with my ulterior motive: I would like more evidence that the use of 19th and 20th century approximations play little to no pedagogic advantage in modern intro stats ...
0
votes
0answers
20 views

flipping card with increasing probability

In an online game you can buy cards which has a 5% probability to be rare cards. If you don't have the rare card for more than 20 times, the chance of next purchase will increase by 5%, repeat until ...
2
votes
1answer
168 views

truncated binomial samples with GLM

We have a binomial process that yields samples of 60 trials. To save time, once 2 failures have been observed the process is reset. So if a test series hits 2 failures early, the resultant sample ...
1
vote
1answer
38 views

How can Bayes avoid Cromwell?

I'm studying widgets and their failures. Generally a widget will run for many years without trouble, but 1-2% of widgets will fail in a given year. I have a table which lists widget manufacturers (A, ...
0
votes
0answers
27 views

Does the number of trials and probability in binomial distribution should be independent variables?

Let's say that the number of trials and probability of success are a function of some variable t i.e, N(t) = f(t) and p(t)=g(t). Can we still use a binomial distribution in this case?
0
votes
0answers
27 views

Binomial Distribution variable classification

Situation: A coin has a probability for heads p=0.5 on any independent flip. After flipping the coin N=2,500 times, heads occurred G=53% of the flips. Question: The change in which parameter (only 1 ...
25
votes
5answers
23k views

Relationship between Binomial and Beta distributions

I'm more of a programmer than a statistician, so I hope this question isn't too naive. It happens in sampling program executions at random times. If I take N=10 random-time samples of the program's ...
1
vote
1answer
18 views

Comparing proportions of two samples in time

I am trying to compare if the proportion of one bird subspecies in a roosting area is different now from over 20 years ago. My dataset looks like following: -In 1996 birds were counted at a ...
1
vote
1answer
330 views

glmer repeated measures binomial - why do I need to include time as random?

I have a response (y/n) taken at 4 time points for two treatments, for the same individuals in each treatment. I've found other answers which say time needs to be included in the model as below, can ...
0
votes
0answers
14 views

GLMM analysis for multiple choice experiment

I’m a little bit desperate with this, so I really hope anybody can give me a hand. I did a multiple choice experiment, in which I had animals (n =6 per replicate) within an experimental arena, where ...