Question: Like SAS, R is code-driven software that provides computation and graphics easily. This means that you need to write code in order to obtain the
Like SAS, R is code-driven software that provides computation and graphics easily. This means that you need to write code in order to obtain the results. In this CT assignment, you will write code to find the probabilities. Some R example code to find the probabilities under specific distributions are given in Section 1.11 of zyBooks. For each problem, write an R code to compute each probability.
(a) Binomial Distribution: X ~ Bin(10, 0.7)
(i) P(X = 2)
(ii) P(X < 2)
(iii) P(X > 2)
(iv) P(1 < X < 7)
(b) Normal Distribution: X ~ N(0, 4). Note that variance is 4 and, hence, the standard deviation is 2.
(i) P(X < 3)
(ii) P(X > 3)
(iii) P(1 < X < 3)
(c) Choose either (a) or (b) and interpret the results in a real-life scenario. Make sure to define X and interpret each probability.
For parts (a) and (b), take screenshots of R codes and the answers. Copy and paste the screenshot(s) into a Word document and submit the Word file in Canvas.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
