Question

Develop an algorithm for generation a random sample of size N from a binomial random variable...

  1. Develop an algorithm for generation a random sample of size N from a binomial random variable X with the parameter n, p.

[Hint: X can be represented as the number of successes in n independent Bernoulli trials. Each success having probability p, and X = Si=1nXi , where Pr(Xi = 1) = p, and Pr(Xi = 0) = 1 – p.]

(a) Generate a sample of size 32 from X ~ Binomial (n = 7, p = 0.2)

(b) Compute the sample mean and variance

(c) Make a histogram of the sample of part (a) and compare it with the theoretical probability density function of X.

Homework Answers

Answer #1

the Histogram based on sample values ( empirical probability )and theoretical probability distribution is nearly same .

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
A binomial random variable X is defined as the number of successes achieved in the n...
A binomial random variable X is defined as the number of successes achieved in the n trials of a Bernoulli process. Describe an event in your life that fits the properties of a Bernoulli process, being sure to explain how each property is met by your event. Finally, state the number of trials and the number of successes for your event. Be specific.
Let X be the binomial random variable obtained by adding n=4 Bernoulli Trials, each with probability...
Let X be the binomial random variable obtained by adding n=4 Bernoulli Trials, each with probability of success p=0.25. Define Y=|X-E(x)|. Find the median of Y. A.0 B.1 C.2 D.3 E.Does not exist
Assume the random variable X has a binomial distribution with the given probability of obtaining a...
Assume the random variable X has a binomial distribution with the given probability of obtaining a success. Find the following probability, given the number of trials and the probability of obtaining a success. Round your answer to four decimal places. P(X≥2),n=5,p=0.2
Use R to code a function to generate a random sample of size n from the...
Use R to code a function to generate a random sample of size n from the Beta(a, b) distribution by the acceptance-rejection method. (1) Generate a random sample of size 3000 from the Beta(4,3) distribution. (2) Graph the histogram of the sample with the theoretical Beta(4,3) density superimposed. Answer the above questions by showing the R codes and results.
Given a random sample size n=1600 from a binomial probability distribution with P=0.40 do the following......
Given a random sample size n=1600 from a binomial probability distribution with P=0.40 do the following... with probability of 0.20 Find the number of successes is less than how many? Please show your work
If the random variable X follows a binomial distribution with the probability of success given by...
If the random variable X follows a binomial distribution with the probability of success given by p, show that the variance of X is equal to np(1-p). [Hint:Consider first a Bernoulli probability distribution with n=1.]
Given a random sample of size of n equals =3,600 from a binomial probability distribution with...
Given a random sample of size of n equals =3,600 from a binomial probability distribution with P equals=0.50​, complete parts​ (a) through​ (e) below. Click the icon to view the standard normal table of the cumulative distribution function .a. Find the probability that the number of successes is greater than 1,870. ​P(X greater than>1 comma 1,870​) ​(Round to four decimal places as​ needed.)b. Find the probability that the number of successes is fewer than 1 comma 1,765. ​P(X less than<1...
Assume the random variable X has a binomial distribution with the given probability of obtaining a...
Assume the random variable X has a binomial distribution with the given probability of obtaining a success. Find the following probability, given the number of trials and the probability of obtaining a success. Round your answer to four decimal places. P(X>4), n=7, p=0.4 Find the standard deviation of the following data. Round your answer to one decimal place. x 1 2 3 4 5 6 P(X=x) 0.1 0.1 0.2 0.1 0.2 0.3
Compute the probability of 6 successes in a random sample of size n=11 obtained from a...
Compute the probability of 6 successes in a random sample of size n=11 obtained from a population of size N=70 that contains 25 successes. The probability of 6 success is?
Let U be a Standard Uniform random variable. Show all the steps required to generate: An...
Let U be a Standard Uniform random variable. Show all the steps required to generate: An exponential random variable with the parameter λ = 3.0; A Bernoulli random variable with the probability of success 0.65; A Binomial random variable with parameters ​n ​ = 12 and ​p ​ = 0.6;
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT