Math 1280
Assignment 6
, 1) The first task is to review some information that might be useful later:
a) Write a brief definition of the word "quartile" as we have used it in
previous weeks. Be sure to provide a citation:
Answer:- Quartiles are just numbers but they separate the data into
quarters” (Yakir, 2011, P32)
2. b) Write a brief definition of the word "quantile" as it might be used in
statistics. Be sure to provide a citation (do not cut and paste... use your own
words to summarize what you discovered):
quantiles are numbers but they separate the data into specific probability.
C. c) From within interactive R, enter the command shown below (the
command shows a help page for the pbinom command). Provide a very brief
description of the arguments that are passed to the pbinom() command
("arguments" in computer programming are the options that you give to a
function so that the function can calculate what you want it to). Note that
one of the arguments is lower.tail = TRUE, and because there is a value
assigned to it with the equals sign, it means that if you do not enter a new
value for lower.tail, it will be set to TRUE by default. Do not type the ">" into
R, it is the command prompt:
> ?pbinom
The arguments are:
1. quantile:- the numbers that separates the data into quarters.
2. size = the repetition of the experiments performed
3. prob = the probability of success,
4. lower.tail = a flag indicating whether to return the probability below or
above that specified value ( i.e q value),
5. log.p = a value that, if set, returns the log of the answer as a means to
reduce loss of precision for very small numbers
2) You can use the dbinom() command (function) in R to determine the
probability of getting 0 heads when you flip a fair coin four times (the
probability of getting heads is 0.5): dbinom(0, size=4, prob=0.5)
Find the equivalent values for getting 1, 2, 3, or 4 heads when you flip the
coin four times. TIP: after you run the first dbinom() command, press the up
arrow and make a small change and run it again.
Probability of getting exactly 1 head: 0.25
Probability of getting exactly 2 heads: 0.375
Probability of getting exactly 3 heads: 0.25
3. Use the pbinom() function in R to show the cumulative probability of
getting 0, 1, 2, 3, or 4 heads when you flip the coin 4 times (this is the same
as finding the probability than the value is less than or equal to 0, 1,2, 3, or
4.)