Skip to main content

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.

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

I would like some insight into what I have been working on here

I work in roofing sales which involves door-knocking at the entry level. Our daily numbers are printed in our GroupMe chat for our branch. I took it upon myself to do some analysis on those numbers. ...
therealchriswoodward's user avatar
0 votes
0 answers
18 views

"Important" data points causing problems with nonlinear regression bootstrapping

I am trying to model radar backscatter of a planetary surface. The power which is scattered back to the instrument depends on the angle at which the it observes the surface. The shape of the resulting ...
ampny's user avatar
  • 1
1 vote
0 answers
15 views

Number of successes for correlated Bernoulli variables

Good morning to everyone! The number of successes for a given set of independent Bernoulli random variables is described by the binomial distribution. However, I was wondering what could be said if ...
BullWebster's user avatar
0 votes
0 answers
7 views

cloglog.sample.size function (Binomial distribution)

I was wondering if cloglog.sample.size function from binom package in R can be used to calculate the sample size for the following model (Binomial dis with cloglog) which can be used for discrete ...
user413503's user avatar
0 votes
0 answers
34 views

Showing Poisson as a binomial approximation [closed]

How would you calculate an upper bound in the error of approximating a binomial by a Poisson? While it is true that a $\text{Binomial}(n,p)$ approximates a $\text{Poisson}(n*p)$ for large $n$ and ...
Peret's user avatar
  • 1
1 vote
1 answer
36 views

Distribution of outcomes of multiple binomial distributions

I have a sample of 50 subjects, where every subject completes a task with two possible outcomes (left or right hand use, with 50% probability) 30 times. On an individual level, this leads to a ...
AnnaB's user avatar
  • 11
1 vote
0 answers
40 views

Probability of leaving with $20

You play a game with a coin. You may place a bet; if Heads is flipped then you receive your bet back plus the same in winnings. If Tails is flipped then you lose your bet. You have 20 dollars and you ...
Yuna's user avatar
  • 11
2 votes
0 answers
42 views

How to fit a binomial model with repeated observations per subject

I have a small dataset for 100 participants. The dataset includes repeated 'tests' over a course of a week. A test can have the binary outcome of pass or fail, and the same number of tests are not ...
snalmznh's user avatar
0 votes
0 answers
24 views

Binomial distribution in R is not symmetrical

I expected the code below to produce the same output, but it's not. My thought was based on the the binomial distributon formula for the density function. I use Rstudio. Where is the mistake? $$ P(x) =...
Simone Gheller's user avatar
3 votes
1 answer
96 views

Is it true that R(k+1, n+1) < R(k, n)?

Is the following statement correct or not: The probability of having at least k+1 successes in n+1 trials is less than the probability of having at least k successes in n trials. That is, is it true ...
user413516's user avatar
2 votes
1 answer
41 views

What is the difference between using logistf and brglm2 when dealing with complete separation in a logistic regression?

I am trying to looking at how the three factors A (5 levels, a-e), B (2 levels, a and b) and C (2 levels, a and b) affect the likelihood of event Y (1 = occured, 0 = did not occur). I initially ran a ...
Insect_biologist's user avatar
0 votes
1 answer
75 views

glmer significant and post-hoc test not significant

I ran a glmer model to test the effects of treatment on my response variable ...
GiorgioS's user avatar
0 votes
1 answer
32 views

Determining chance level for forced-choice performance validity tests

Psychologists, especially neuropsychologists, use performance validity tests (PVTs) to detect individuals who might intentionally underperform on ability tests, e.g., memory tests, because diagnosed ...
Mark D Worthen PsyD's user avatar
0 votes
1 answer
36 views

Binary response vs probability response

Consider these two scenarios: respondents are asked to choose between two options offered to them (the resulting data is binary 0 & 1) respondents are asked to give their probability of choice ...
user41838's user avatar
  • 531
0 votes
1 answer
37 views

Goodness of fit test binomial random variables without "compensation"

Let $N_{1}, N_{2}\in\mathbb{N}^{+}$ and random variables $X_{1}\sim B(N_{1},p_{1}),X_{2}\sim B(N_{2},p_{2})$ with null hypothesis $H_{0}:p_{1}=p_{1,0}, p_{2}=p_{2,0}$. I would like to apply a GoF test ...
CorrieElba's user avatar
0 votes
0 answers
31 views

Exam P Sample Problems # 30

The question: A company establishes a fund of 120 from which it wants to pay an amount, C, to any of its 20 employees who achieve a high performance level during the coming year. Each employee has a ...
BadAtMaff's user avatar
1 vote
0 answers
20 views

Why confidence interval for proportion uses z instead of t score? [duplicate]

The confidence interval (Wald interval) for the parameter $p$ of a binomial distribution is computed from the approximation by a Normal distribution: $$ \ p ~~ \approx ~~ \hat p \pm \frac{\; z_\alpha\ ...
luchonacho's user avatar
  • 2,750
0 votes
0 answers
17 views

Multiway McNemar-Type Test?

I need a test that would be similar to McNemar, but has e.g. 3 binary outcomes (0,1). Kappa also comes to mind for something that may be similar like interrator agreement. However, my hypotheses is ...
wjktrs's user avatar
  • 860
2 votes
1 answer
44 views

Can a GLM Binomial regression on repeated measures be seen as a trustworthy alternative for a Survival Analysis?

I'm working on an actuarial project to estimate monthly probabilities that someone becomes disabled. We have data available in a wide format. For example, the following lines are part of the data: ...
user avatar
3 votes
1 answer
36 views

describing binomial data in likelihood models

Binomial data can be described in various ways. Suppose we flip a fair coin twice and get one head (success). One method to calculate its negative log-likelihood is ...
quibble's user avatar
  • 1,684
0 votes
1 answer
22 views

binomial data, margin of error, standard error of a sample

Election season is coming soon, and polls frequently have a "margin of error" associated with their results (e.g. there are 2 candidates, and there's a survey, and candidate A is the ...
thanks_in_advance's user avatar
0 votes
0 answers
21 views

Binomial mixed model with conditions only ever 'succeeding'

I've been wrestling with getting some models to converge and make sense and think I've identified the problem, but am now looking for a solution (and if you agree with the "problem"). ...
igwill's user avatar
  • 21
2 votes
0 answers
97 views

Analyzing Cumulative Distribution Functions in Sampling Without Replacement vs. With Replacement

Originally asked on MATHEMATICS. I am studying a population of $N$ bits, comprising $K$ ones and $N-K$ zeros. For sampling $n$ bits without replacement, the situation conforms to a hypergeometric ...
Dotman's user avatar
  • 71
10 votes
4 answers
470 views

Conditions for Binomial Distribution

It is known that if $X$ is the sum of $n$ independent and identical Bernoulli random variables, $X$ follows a Binomial distribution. How about the reverse, can a sum of dependent and/or non-identical ...
Usermaths88's user avatar
1 vote
1 answer
27 views

Next steps - variable can't be a fixed and random effect?

I have been trying to run a binomial GLMM on the proportion of emerged seedlings across locations (categorical variable) and over the monitoring period (continous variable). We obtained and planted ...
TruthSeeker4's user avatar
1 vote
0 answers
13 views

Am I using the correct test statistic for a binomial glm using the type III Anova function in the package car?

I am trying to look at how the likelihood of event Y is influenced by two factors A (5 levels) and B (2 levels) and my model is as follows: ...
Insect_biologist's user avatar
5 votes
2 answers
160 views

Why do I get a negative chi-squared value in my type III ANOVA output for my binomial GLM?

I am trying to look at how the likelihood of event X occurring is affected by three factors A (5 levels), B (2 levels) and C (3 levels). To do this I have run a binomial glm followed by a type 3 ANOVA ...
Insect_biologist's user avatar
3 votes
2 answers
81 views

Estimate a GLM where the intercept is known

I have some x and y values. The y values have some random error. ...
Dan's user avatar
  • 595
0 votes
0 answers
23 views

GLMM logistic regression with interactions

I have been working on a mixed effects logistic regression model to analyze some data, and I'm seeking some clarification on interpreting the results, particularly when incorporating interaction terms....
Sebastian Rocano's user avatar
4 votes
2 answers
113 views

Confidence interval for the sum of 2 binomially distributed variables

$P_1$ and $P_2$ are uncorrelated, binomially distributed variables with success probabilities $p_1 \neq p_2$. Say I measure: $k_1 = 9$ successes out of $n_1 = 10$ trials for $P_1$ and $k_2 = 1000$ ...
dimitsev's user avatar
1 vote
0 answers
19 views

Model Fit Measures in a Binomial Logistic Regression

I am very new to regression statistics and have produced four models in the statistical package Jamovi using binomial logistic regression. Looking at model fit measures I am confused as the results ...
Max's user avatar
  • 11
1 vote
0 answers
40 views

Standard deviation of the mean for biased coin with all heads for first $N$ trials

Imagine that we have a biased coin but we only have $N$ trials to determine how much it is biased towards heads (we are resource limited in how many trials we can conduct). Say we assign a value of $0$...
j314erre's user avatar
  • 123
0 votes
0 answers
12 views

Predict quality of a product, from production line, by looking at a sample instead of the whole batch

I have a machine that produces cartons. Every batch that is produced is of 3000 cartons. I want to determine what percentage of cartons are GOOD and what percentage are NOT GOOD ( marks on the carton, ...
Aran's user avatar
  • 1
0 votes
0 answers
25 views

Binomial Test for data with normally distributed messurement error

I have a series of measurements and I want to perform a binomial test to see if the chance of exceeding some value $a$ is less or equal to some $p_0$. The measurement has some error which is normally ...
Adrian 's user avatar
3 votes
0 answers
52 views

Forcing GLM with binomial distribution through zero intercept [duplicate]

I have been re-directed to cross-validated after my post here on stack-overflow. I want to force the intercept of a glm model with a binomial link function to be zero, since there are biological ...
Squan Schmaan's user avatar
0 votes
0 answers
26 views

"Bi-bumped" ROC curve meaning?

I am exploring some models for the classification of proteins based on their similarity. Briefly, I am testing the classification with a binomial fit and then analyzing the corresponding ROC curve to ...
Natalia's user avatar
0 votes
0 answers
21 views

Confidence interval for binomial distribution [duplicate]

I'm developing a simple application for memorization, for personal use. The user gives responses corresponding to prompts, and each prompt belongs to some category. At the end, we have for each ...
Matt's user avatar
  • 1
3 votes
1 answer
55 views

Calculating binomial distribution probability for dependent trials

Context: I am a software developer and recently we've had a bug report saying that one of our login systems are potentially insecure to a brute-force attack. I need to come up with a formula to ...
choket's user avatar
  • 33
1 vote
1 answer
68 views

For the binomial distribution, is the proportion of successes distributed the same as the number of successes?

Given a known population proportion and an IID population, the number of successes given n trials should be: $$ X \sim B(n, p) $$ It seems intuitive that the probability of observing a certain ...
ZPears's user avatar
  • 11
0 votes
0 answers
15 views

How to test whether the "prevalence ratio" of one marker is higher than that of another

Here is my setup. I have two sets of DNA sequences, one bound by a protein (transcription factor), another not bound by the protein. Let's say I have two candidate motifs, or DNA patterns the protein ...
ffffffyyyy's user avatar
0 votes
1 answer
34 views

Analogue of fisher's exact test for one group?

I understand that Fisher's exact test applies to testing whether the proportion of an outcome in one group, $p_1$, differs from the proportion of the outcome in another group, $p_2$. This could be ...
ffffffyyyy's user avatar
1 vote
1 answer
19 views

What is the distribution of similarites between 2 iterations of a binomial variable?

Suppose I have a binary vector $v$ of dimension $n$ with $np$ entries set to $1$ and $n(1-p)$ entries set to $0$ (where $0 \leq p \leq 1$, and $q:=1-p$). Suppose I then generate a random vector $w$ by ...
magnesium's user avatar
  • 121
6 votes
1 answer
102 views

Small Sample Sizes and Zero Inflated Count Data in R

I am working to produce a model in R for seed germination count data with lots of zeros (around 50% of the 264 total observations). The purpose is to determine the effect treatments have on plant ...
newspice's user avatar
28 votes
4 answers
3k views

Coin flip game: HH vs HT in a sequence of flips

An interesting thought experiment involving flipping a fair is going around X/Twitter: Flip a fair coin 100 times—it gives a sequence of heads (H) and tails (T). For each HH in the sequence of flips, ...
David B's user avatar
  • 1,602
1 vote
1 answer
64 views

What am I doing wrong when finding the Fisher information of a binomial distribution with $n=2$?

I am trying to find the Fisher information of a binomial distribution where $n=2$ and $p=\theta$. I have the log-likelihood function as $$n\ln2 + \sum^{n}_{i=1}x_i\ln \theta + (2n-\sum^{n}_{i=1}x_i)(...
Peverel Shipley's user avatar
7 votes
1 answer
93 views

What are the units of a binomial variable's standard deviation?

I recall that a standard deviation is in the same units as the random variable, which is useful. However, when deriving the standard deviation of a binomial variable, how do we resolve the units of ...
E. Kaufman's user avatar
0 votes
0 answers
39 views

Protein conservation analysis with trident scores in R script

I am currently working on analyzing protein conservation across amino acid positions using Trident scores as output from the MstatX tool. I have 40,000 Trident score files, each containing amino acid ...
C. Valera's user avatar
0 votes
1 answer
51 views

How does probability scale with length? [closed]

Suppose we have a probability per length—-say a circuit segment of length 1 km has a 0.01 percent probability of igniting a fire over a period of one year. If we doubled the length to 2 km, I think we ...
Rooster's user avatar
1 vote
1 answer
48 views

binomial GLM for proportion Vs Beta regression

Suppose that I have a dependent variable which is the proportion of persons infected with a certain disease out of the total number tested in different locations. Assuming the difference in ...
Wagathu's user avatar
  • 189
4 votes
1 answer
84 views

Conditional expectation of Poisson, conditional on Poisson sums

Consider independent Poisson random variables $X_1\sim \text{Poisson}(\alpha_1)$, $X_2\sim \text{Poisson}(\alpha_2)$, $Y\sim \text{Poisson}(\lambda)$, and suppose $Z_1=X_1+Y$ and $Z_2=X_2+Y$. I want ...
Car Loz's user avatar
  • 850

1
2 3 4 5
49