I randomly pick two integers from 1 to n with replacement where n is a positive integer. (a) What is the probability that the first number will be greater than the second? Derive a simplified expressions in terms of n. (b) Let the random variable X be the maximum of the two numbers. Find the probability mass function of X and express as a formula. (c) Find E(X) and simplify as much as possible (use formulas for the sum and sum of squares of the first n integers which you can find online). (d) Do a simulation in R to verify your answers in (a), (b) and (c) for n = 4 and n = 15. Note: you can do this simulation without a loop. See the pmax function.

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter10: Sequences, Series, And Probability
Section10.8: Probability
Problem 56E
icon
Related questions
Question
4
I randomly pick two integers from 1 to n with replacement where n is a positive integer.
(a) What is the probability that the first number will be greater than the second? Derive a
simplified expressions in terms of n.
(b) Let the random variable X be the maximum of the two numbers. Find the probability
mass function of X and express as a formula.
(c) Find E(X) and simplify as much as possible (use formulas for the sum and sum of squares
of the first n integers which you can find online).
(d) Do a simulation in R to verify your answers in (a), (b) and (c) for n = 4 and n = 15.
Note: you can do this simulation without a loop. See the pmax function.
Transcribed Image Text:I randomly pick two integers from 1 to n with replacement where n is a positive integer. (a) What is the probability that the first number will be greater than the second? Derive a simplified expressions in terms of n. (b) Let the random variable X be the maximum of the two numbers. Find the probability mass function of X and express as a formula. (c) Find E(X) and simplify as much as possible (use formulas for the sum and sum of squares of the first n integers which you can find online). (d) Do a simulation in R to verify your answers in (a), (b) and (c) for n = 4 and n = 15. Note: you can do this simulation without a loop. See the pmax function.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning