Question

Draw 1000 iid samples from a Binomial(k,0.2) population, where k =100. Find MLE(k) use R

Draw 1000 iid samples from a Binomial(k,0.2) population, where k =100. Find MLE(k) use R

Homework Answers

Answer #1

R code-

x=0
s=0
k=100
for (i in 1:1000) {
x=rbinom(1,k,.2)
s=s+x
}
s
s/(1000*k)

Answer is 0.19797

Please note the answer will change over time but it will be close to the actual value of p=0.2

Theory:

For example, suppose that X1, X2, . . . , X10 are an iid sample from a binomial distribution with n = 5 and p . Since each Xi is actually the total number of successes in 5 independent Bernoulli trials, and since the Xi’s are independent of one another, their sum is actually the total number of successes in 50 independent Bernoulli trials. Thus X∼Bin(50,p) and the MLE is p^=x/n, the observed proportion of successes across all 50 trials. Whenever we have independent binomial random variables with a common p , we can always add them together to get a single binomial random variable.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
11. Random samples of size n = 80 were selected from a binomial population with p...
11. Random samples of size n = 80 were selected from a binomial population with p = 0.2. Use the normal distribution to approximate the following probability. (Round your answer to four decimal places.) P(p̂ ≤ 0.26) 12. Random samples of size n = 80 were selected from a binomial population with p = 0.8. Use the normal distribution to approximate the following probability. (Round your answer to four decimal places.) P(p̂ > 0.79)
You repeatedly draw samples of n = 100 from a population with a mean of 75...
You repeatedly draw samples of n = 100 from a population with a mean of 75 and a standard deviation of 4.5. What is the z-score for a sample mean of 64.7?
Use r statistical software to Pick a population with a particular distribution. From the population use...
Use r statistical software to Pick a population with a particular distribution. From the population use software to obtain k random samples (for example k = 10) each containing n elements (for example n = 30.) Give the distributions of X̄ For each sample, calculate the value of the statistic and construct a histogram of the k values. This histogram gives the approximate sampling distribution of the statistic. The statics of interest are X̄ and V (X̄ ) Calculate E(X̄)...
Random samples of size n = 80 were selected from a binomial population with p =...
Random samples of size n = 80 were selected from a binomial population with p = 0.3. Use the normal distribution to approximate the following probability. (Round your answer to four decimal places.) P(p̂ > 0.28) =
Random samples of size n = 85 were selected from a binomial population with p =...
Random samples of size n = 85 were selected from a binomial population with p = 0.8. Use the normal distribution to approximate the following probability. (Round your answer to four decimal places.) P(p̂ < 0.70) =
i.Bias of Sample Mean Draw 20 samples from the normal distribution N(5, 4). Compute the mean...
i.Bias of Sample Mean Draw 20 samples from the normal distribution N(5, 4). Compute the mean of your 20 samples. Report the bias of the sample mean ii. Variance of Sample Mean (Continue of problem i) To estimate the variance of the sample mean, we need to draw many different samples of size 20. Now, we draw 1000 times a sample of size 20. Store all the 1000 sample means. Report the variance of the estimated sample mean. Hint: To...
Random samples of size n = 90 were selected from a binomial population with p =...
Random samples of size n = 90 were selected from a binomial population with p = 0.3. Use the normal distribution to approximate the following probability. (Round your answer to four decimal places.) P(0.26 ≤ p̂ ≤ 0.34) =
Use R and the RANDBETWEEN(1,300) function to generate: a) 100 random numbers, b) 100 samples of...
Use R and the RANDBETWEEN(1,300) function to generate: a) 100 random numbers, b) 100 samples of size 5, and c) 100 samples of size 20. For each sample in parts (b) and (c), find the sample means. Create histograms for parts (a), (b) and (c). For part (a) use the random numbers (i.e. sample size 1), for parts (b) and (c) use the sample means to create the histograms. Copy and Paste just the histograms into your homework paper. Explain...
Random samples of size n = 75 were selected from a binomial population with p =...
Random samples of size n = 75 were selected from a binomial population with p = 0.8. Use the normal distribution to approximate the following probabilities. (Round your answers to four decimal places.) P(p̂ ≤ 0.83) P(0.75 ≤ p̂ ≤ 0.83) =
Use R to answer the following questions: This problem will use R to find all possible...
Use R to answer the following questions: This problem will use R to find all possible orderings of 7 objects and probabilities associated with them. Consider your vector of possible values to be: values = as.character(1:7) (a) Use the function sample to draw from values 7 times (without replacement), and return this vector. Notice it is a vector, with 7 values. Display your particular draw. (b) Repeat (a) 100000 times using an sapply. Notice the result has 7 rows, and...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT