4. Do the followings with R: a. Create a plot of the pf of X. b. Create a plot of the cdf of X. c. Draw a random sample of size 1000 from Binomial(n = 3, p = 0.4). Then plot a histogram calculate the sample mean and the sample variance. Comment briefly on these outputs comp
4. Do the followings with R: a. Create a plot of the pf of X. b. Create a plot of the cdf of X. c. Draw a random sample of size 1000 from Binomial(n = 3, p = 0.4). Then plot a histogram calculate the sample mean and the sample variance. Comment briefly on these outputs comp
A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
Related questions
Question
just q 4's a b and c please thank you
![Q1.
Suppose we toss a coin 3 times. We denote head as “H" and tail as "T". We assume the probability of head
is
Р(Н) — 0.4.
Let X be the number of "H*s.
1. What are the possible values of X? Find the probability function (pf) of X, which is defined by
P(X = k)
for every possible value k. Check that
EP(X = k) =
= 1.
k
2. Find the cumulative distribution function (cdf) of X.
3. Calculate the expectation and the variance of X.
4. Do the followings with R:
a. Create a plot of the pf of X.
b. Create a plot of the cdf of X.
c. Draw a random sample of size 1000 from Binomial(n = 3,p= 0.4). Then plot a histogram and
calculate the sample mean and the sample variance. Comment briefly on these outputs compared
to the results from question 1–3.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F36c16d30-8080-41a6-9b28-34917665af49%2Fbfa922ca-af15-4d8c-a6ae-1f4426c52a48%2Fsy4b6p_processed.png&w=3840&q=75)
Transcribed Image Text:Q1.
Suppose we toss a coin 3 times. We denote head as “H" and tail as "T". We assume the probability of head
is
Р(Н) — 0.4.
Let X be the number of "H*s.
1. What are the possible values of X? Find the probability function (pf) of X, which is defined by
P(X = k)
for every possible value k. Check that
EP(X = k) =
= 1.
k
2. Find the cumulative distribution function (cdf) of X.
3. Calculate the expectation and the variance of X.
4. Do the followings with R:
a. Create a plot of the pf of X.
b. Create a plot of the cdf of X.
c. Draw a random sample of size 1000 from Binomial(n = 3,p= 0.4). Then plot a histogram and
calculate the sample mean and the sample variance. Comment briefly on these outputs compared
to the results from question 1–3.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 7 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![A First Course in Probability (10th Edition)](https://www.bartleby.com/isbn_cover_images/9780134753119/9780134753119_smallCoverImage.gif)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
![A First Course in Probability](https://www.bartleby.com/isbn_cover_images/9780321794772/9780321794772_smallCoverImage.gif)
![A First Course in Probability (10th Edition)](https://www.bartleby.com/isbn_cover_images/9780134753119/9780134753119_smallCoverImage.gif)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
![A First Course in Probability](https://www.bartleby.com/isbn_cover_images/9780321794772/9780321794772_smallCoverImage.gif)