Introductory Statistics

 

IS: R Assignment 12

[<code class="R">R</code> Assignments]
R Assignment #12

 

General Purpose

General Purpose of these Assignments (the usual): The purpose of these R Assignments is to give you some pointed, direct practice in using R. As such, these are designed to be quick and to the point (less than 10 minutes each). They are also designed to give you a place to return if you forget how to perform some analysis in the future.

Please supply your results in the form below. Clicking on “Click to Check Your Answers” will allow you to see which as correct and which are not. When all are correct (and you can try as many time as you wish), you will be allowed to send your answers to me for credit by clicking on “Click to Email Your Results.” You only receive credit when this is submitted (with all answers correct).

This assignment is due at the start of the class period on

Friday, January 26, 2024.

With that being said, if this R Assignment is available, which is could be until approximately 11:59 pm (CST), then you are able to work on it.

As expected, these are graded according to the syllabus (all or nothing). Please review the appropriate section in the syllabus for more information. Also, if this is not submitted before it is due, then it counts as a zero.


Specific Purpose: Here, I check that you can calculate certain quantities associated with discrete distributions. The three distributions are the Binomial, the Poisson, and the Hypergeometric. It may be helpful for you to review the All Probabilities handout.


Slidedeck Support: The following slidedecks may be helpful for you in completing this R Assignment:


The Problems

There is no data to load, because we are working with probability distributions today. So, please answer the following questions.

  1. What is the probability of observing X = 3, given that X ~ Binom(n=10, p=0.5)?
  2. What is the probability of observing X ≤ 3, given that X ~ Binom(n=10, p=0.5)?
  3. What is the probability of observing X ≤ 5, given that X ~ Binom(n=10, p=0.5)?

Finally, to receive credit for this assignment, please provide your full Knox College email address:

then click on the button here.



For more information on the Binomial (and Hypergeometric and Geometric distributions), visit the laboratory activity associated with discrete distributions. It will show you the importance of the relationship between sampling and discrete distributions. Also, there is the “All Distributions” helper page.

The Answers

Since this is past due, I can now give you the code and the answer:

Since it is now after the time this is due, I can now give you the code and the answers:

dbinom(3, 10,0.5)
pbinom(3, 10,0.5)
pbinom(5, 10,0.5)

The answers are

0.1171875
0.171875
0.6230469

When writing out numbers, remember that e translates as “times 10 to the power of.”

This page was last modified on 2 January 2024.
All rights reserved by Ole J. Forsberg, PhD, ©2008–2024. No reproduction of any of this material is allowed without explicit written permission of the copyright holder.