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.

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
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
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON