Responsesreplicatek sumnumberresponses create a table

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
number.responses.replicate[k] = sum(number.responses) } #create a table of response counts response.counts = table(number.responses.replicate) response.counts #plot the response counts barplot(response.counts) ``` b) Run the code. From the barplot, describe the distribution. \vspace{3cm}
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
c) Based on the results of the simulation, estimate the probability that 0 patients respond well to the new drug. \vspace{3cm} d) Based on the results of the simulation, construct a probability distribution for the random variable $X$, the number of patients who respond well to the experimental drug. \begin{table}[h!] \setlength{\tabcolsep}{12pt} \begin{large} \begin{tabular}{|l |r|r|r|r|r|r|r|r|r| l|} \hline $x_i$ & \text{ 0 } &\text{ 1 } & \text{ 2 } & \text{ 3 } & \text{ 4 } & \text{ 5 } & \text{ 6 } & \text{ 7 } & \text{ 8 } & Total \\ \hline $P(X = x_i)$ & & & & & & & & & & = 1.00\\ \hline \end{tabular} \end{large} \end{table} e) What value(s) for response probability would produce a left-skewed distribution? what value(s) would produce a symmetric distribution? \vspace{3cm} f) Calculate $E(X)$, where $X$ is the number of patients who respond well to the experimental drug. \vspace{4cm} g) Calculate $SD(X)$, where $X$ is the number of patients who respond well to the experimental drug. It is sufficient to write the answer in an unsimplified form where only simple arithmetic is necessary to reach the final value.
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '16
  • banubaydil
  • Probability distribution, probability density function, Cumulative distribution function, Probability space, experimental drug

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern