Question: This one using R code, please help me thank you so much Distribution Information: X ~ Bin(n = 10, p = 0.21) Random Sampling (Part

This one using R code, please help me thank you so much

Distribution Information: X ~ Bin(n = 10, p = 0.21) Random Sampling (Part 2) Seed: 151 Part 1: Graphing a Binomial Distribution (C 1) Store the size of your distribution as nBerTrial. (C 2) Store your probability of successes as pbty. (C 3) Create a vector that includes the numbers 0 through the number of Bernoulli Trials of your distribution. Store this information as num_successes. These are the potential values that your random variable X can possibly take on. (C 4) Next, we want to find the probabilities at all of the points in your vector for a Binomial Random Variable based on the size of your distribution, and your probability of success. Store this information as probabilities. (C 5) We need to make num_successes into a factor. Do this using the code factor (num_successes [1: (nBerTrial+1)] ) and store it as successes. (C 6) Create a barplot of your probabilities. Include in your barplot function names . arg = successes. Set the x-axis label to be "Successes", and the y-axis label to be "Binomial Probabilities (PMF)". Have the limits on the y-axis go from 0 to 0.32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
