Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A Preface To Logic

Authors: Morris R Cohen

1st Edition

0486801853, 9780486801858

More Books

Students also viewed these Mathematics questions