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)
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̄)...
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 = 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) =
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) =
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...
0.5 kilograms of air are compressed from 100 kPa and 300 K in a polytropic process,...
0.5 kilograms of air are compressed from 100 kPa and 300 K in a polytropic process, n = 1.3, to a state where V2 = 0.5 V1. The air is further compressed at constant pressure until the final volume is 0.2 V1 . Draw a sketch of the processes on a p-V diagram. Determine the work for each process.
Use R. Generate a random sample with n=15 random observations from an exponential distribution with mean=1....
Use R. Generate a random sample with n=15 random observations from an exponential distribution with mean=1. Calculate the sample median, which is an estimator of the population median. Use bootstrap (nonparametric, with B=1000) methods to estimate the variance of the estimator for the population median. use the Monte Carlo method, e.g. generate 1000 samples of size 15 to estimate the true variance of the median estimator. Compare and comment on your results.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT