Question

In: Math

1) The first task is to review some information that might be useful later: a) Write...

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: _____________________________.

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): ________________________________.

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

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: _______

probability of getting exactly 2 heads: _______

probability of getting exactly 3 heads: _______

probability of getting exactly 4 heads: _______

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.)

probability of getting no more than 0 heads: ____

probability of getting no more than 1 head: _____

probability of getting no more than 2 heads:_____

probability of getting no more than 3 heads: ____

probability of getting no more than 4 heads: ____

4) The following R command will show the probability of exactly 6 successes in an experiment that has 10 trials in which the probability of success for each trial is 0.5:

dbinom(6, size=10, prob=0.5)
(True/False)____________

5) What is the probability of getting fewer than 2 heads when you flip a fair coin 3 times (round to 2 decimal places) ? ______

6) What is the probability of getting no more than 3 heads when you flip a fair coin 5 times (be sure to understand the wording differences between this question and the previous one—round to 2 decimal places)? ________

---------------------------------------------------

Information

The exponential distribution is a continuous distribution. The main R functions that we will use for the exponential distribution are pexp() and qexp(). Here is an example of the pexp() function. Leaves are falling from a tree at a rate of 10 leaves per minute. The rate is 10, or we can say that lambda = 10 (meaning 10 leaves fall per minute). The leaves do not fall like clockwork, so the time between leaves falling varies. If the time between leaves falling can be modeled with an exponential distribution, then the probability that the time between leaves falling will be less than 5 seconds (which is 5/60 of a minute) would be:

(note: this is an explanation of how pexp() works, you will answer a different question below)

pexp(5/60, rate=10)

which is about 0.565 (meaning that the probability is a bit higher than 50% that the next time-span between leaves falling will be less than 5 seconds).

For tasks 7-12, assume that the time interval between customers entering your store can be modeled using an exponential distribution. You know that you have an average of 4 customers per minute, so the rate is 4, or you can say that lambda =4.

It is easiest to keep everything in the original units of measurement (minutes), but you can also translate that to seconds because a rate of “4 customers per minute” is the same as “4 customer per 60 seconds,” and you can divide each number by 4 to get a rate of “1 customer per 15 seconds” or a rate of “1/15 customers per second.”

7) What is the expectation for the time interval between customers entering the store? Be sure to specify the units of measurement in your answer. Round to 3 decimal places: ___________________

8) What is the variance of the the time interval? Be sure to specify the units of measurement in your answer. Round to 3 decimal places:_________________

9) The pexp() function is introduced at the bottom of Yakir, 2011, p. 79, and there are some tips above. What is the probability that the time interval between customers entering the store will be less than 15.5 seconds. Be sure to enter values so that everything is in the same unit of measurement. Be sure to specify the units of measurement in your answer. Round your answer to 3 decimal places: _________________.

10) What is the probability that the time interval between customers entering the store will be between 10.7 seconds and 40.2 seconds?________

11) The qexp() function in R allows you to enter a probability, and it will tell you the criterion value (“cutoff point”) that corresponds to that probability value (e.g., if you enter .05 it tells you the cutoff point below which 5% of the values in the distribution fall).

What value of x would be the criterion value (cut-off point) for the top 5% of time intervals (Round to 3 decimal places, and include the units of measurement)? _______

---------------------------------

12) Describe in your own words the meaning of the number that the following R command produces (you are asked to interpret the resulting number so that we understand what that number means).

pexp(1.2, rate=3)

---------------------------------

Information

You have now had practice with the binomial distribution and the exponential distribution. The approach to solving problems for the normal distribution is similar to that for the exponential function, but obviously you use different R functions (usually pnorm() or qnorm()).

For the following three exercises, assume that you have a normally distributed random variable, called A, with a mean of 7, and a population standard deviation of 3.

13) What is the probability that a randomly selected value from variable A will be greater than 9?_______

14) What value of variable A would be the cutoff point (criterion value) for identifying the lowest 4% of values in variable A (use the qnorm function)?____________

15) What is the probability that a randomly selected value from variable A will be more than one standard deviation above its mean (there are couple ways to solve this, one way is to use the standard normal distribution?________________

Solutions

Expert Solution

Answer:

As per given data

(1)

(A)

The quartiles of a ranked set of data values are the three points that divide the data set into four equal groups, each group comprising a quarter of the data. The first quartile (Q1) is defined as the middle number between the smallest number and the median of the data set. The second quartile (Q2) is the median of the data. The third quartile (Q3) is the middle value between the median and the highest value of the data set.

(B)

The th quantile of a ranked dataset is that value of the dataset for which

(C)

Arguments of function pbinom(q, size, prob, lower.tail = TRUE, log.p = FALSE)

q - vector of quantiles.

size - number of trials (zero or more).

prob - probability of success on each trial.

log.p - logical; if TRUE, probabilities p are given as log(p).

lower.tail - logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x].

(2)

probability of getting exactly 1 head: 0.25 (R command: dbinom(1, size=4, prob=0.5) )

probability of getting exactly 2 head: 0.375   (R command: dbinom(2, size=4, prob=0.5) )

probability of getting exactly 3 head: 0.25   (R command: dbinom(3, size=4, prob=0.5) )

probability of getting exactly 4 head: 0.0625   (R command: dbinom(4, size=4, prob=0.5) )

(3)

probability of getting no more than 0 heads: 0.0625 (R command : pbinom(0, size = 4, prob = 0.5) )

probability of getting no more than 1 heads: 0.3125 (R command : pbinom(1, size = 4, prob = 0.5) )

probability of getting no more than 2 heads: 0.6875 (R command : pbinom(2, size = 4, prob = 0.5) )

probability of getting no more than 3 heads: 0.9375 (R command : pbinom(3, size = 4, prob = 0.5) )

probability of getting no more than 4 heads: 1 (R command : pbinom(4, size = 4, prob = 0.5) )

(4)

TRUE

(5)

Assuming the probability of success= p =0.5, the probability of getting fewer than 2 heads when we flip a fair coin 3 times is pbinom(1, size = 3, prob = 0.5) = 0.5

(6)

Assuming the probability of success= p =0.5, the probability of getting no more than 3 heads when you flip a fair coin 5 times is pbinom(3, size = 5, prob = 0.5) = 0.8125 0.81 (rounded to two decimal places).


Related Solutions

TASK 1: Annual report is a comprehensive report providing useful financial and non-financial information to shareholders...
TASK 1: Annual report is a comprehensive report providing useful financial and non-financial information to shareholders and interested parties. It contains company’s activities and financial performance for the financial year. Annual reports are prepared at the end of a fiscal year for external users to gain financial information about the inner workings of the company and what management plans to do in the future. a)    Financial statements are the main component in an annual report that indicate financial information...
There are many information that might be useful for users of financial statements. How- ever, the...
There are many information that might be useful for users of financial statements. How- ever, the information are not always mandated in the form of accounting standard. A. Should all the accounting information be mandated for presentation and disclosure in financial statements by way of accounting standards? Why? B. What component/part of the Conceptual Framework should the standard setters use to decide whether an accounting standard should be issued for mandating or not mandat- ing the disclosure of accounting information?...
There are many information that might be useful for users of financial statements. How- ever, the...
There are many information that might be useful for users of financial statements. How- ever, the information are not always mandated in the form of accounting standard. A. Should all the accounting information be mandated for presentation and disclosure in financial statements by way of accounting standards? Why? B. What component/part of the Conceptual Framework should the standard setters use to decide whether an accounting standard should be issued for mandating or not mandat- ing the disclosure of accounting information?...
Review the organization and financials of a chosen university. Describe some performance measures that might be...
Review the organization and financials of a chosen university. Describe some performance measures that might be used in assessing whether this university operates effectively. Using these measurements, how do you think the university is doing??
Task 3: Review Tia’s resume and suggest improvements based on the information provided in the case...
Task 3: Review Tia’s resume and suggest improvements based on the information provided in the case and instances where you consider the information provided is incomplete. Copy Tia’s resume into a new Word document and leverage track changes to highlight required modifications.
Task 1: Some websites impose certain rules for passwords. Write a program that ask the user...
Task 1: Some websites impose certain rules for passwords. Write a program that ask the user to enter a password and checks whether a string (Use input validation to make sure the user enters the correct password and then print it.) is a valid password. Suppose the password rules are as follows: • A password must have list a least 10 characters. • A password must consist of only letters and digits. • A password must contain at least two...
How might the information gained from this lab pertaining to mitosis and meiosis be useful to...
How might the information gained from this lab pertaining to mitosis and meiosis be useful to you as a healthcare professional? (20 points)
For this problem, you will be asked to write some code to accomplish a particular task...
For this problem, you will be asked to write some code to accomplish a particular task given the code fragment below. Each task may depend on the tasks that came before it. Your code must be syntactically correct. None of your operations for this problem may affect S::m_unique. class S { public: S(int init, int size, int id) :m_num(init), m_size(size) {                m_unique = new int[m_num]; for (int i = 0; i < m_num; i++)       m_unique[i] = id;...
Task 3      Write a program that pushes the first 10 natural numbers to the stack,...
Task 3      Write a program that pushes the first 10 natural numbers to the stack, then pops those numbers. Use the debugger to view how the stack changes after each instruction. Once all the data has been pushed to the stack, take a screenshot of the stack in memory. Task 4     Write a subroutine called “Area” that calculates the area of a rectangle. Use accumulator A and B to pass the length and the width to the function....
Task CPP Some information on the Internet may be encrypted with a simple algorithm known as...
Task CPP Some information on the Internet may be encrypted with a simple algorithm known as rot13, which rotates each character by 13 positions in the alphabet. A rot13 cryptogram is a message or word in which each letter is replaced with another letter. rot13 is an example of symmetric key encryption. For example, the string the bird was named squawk might be scrambled to form cin vrjs otz ethns zxqtop Details and Requirements The test driver file lab3.cpp contains...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT