2. Consider the following R code. Some of the output is missing. For (a)-(d), (i) describe what the code is doing, (ii) determine the exact or approximate value and (iii) indicate if the output would be exactly equal or approximately equal to the value you compute. Clearly show your steps and justify your answer. > x <- rnbinom (1000, 2,0.2) (a)> sqrt (var (x)) [1] output a (b) > mean (x<=2) [1] output b (c) > qnbinom (0.04,2,0.2) +2 [1] output d (d) > mean (x) [1] output c

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question
2. Consider the following R code. Some of the output is missing. For (a)-(d), (i) describe what the code is
doing, (ii) determine the exact or approximate value and (iii) indicate if the output would be exactly
equal or approximately equal to the value you compute. Clearly show your steps and justify your
answer.
> x <- rnbinom (1000,2,0.2)
(a) > sqrt (var (x))
[1] output a
(b) > mean (x<=2)
[1] output b
(c) > qnbinom (0.04,2,0.2) +2
[1] output d
(d) > mean (x)
[1] output c
Transcribed Image Text:2. Consider the following R code. Some of the output is missing. For (a)-(d), (i) describe what the code is doing, (ii) determine the exact or approximate value and (iii) indicate if the output would be exactly equal or approximately equal to the value you compute. Clearly show your steps and justify your answer. > x <- rnbinom (1000,2,0.2) (a) > sqrt (var (x)) [1] output a (b) > mean (x<=2) [1] output b (c) > qnbinom (0.04,2,0.2) +2 [1] output d (d) > mean (x) [1] output c
Expert Solution
steps

Step by step

Solved in 7 steps with 4 images

Blurred answer