Solve this using R programming language 1. Markov’s and Chebychev’s Bounds. Recall that given a random variable X with
Posted: Wed Jul 06, 2022 12:20 pm
Solve this using R programming language1. Markov’s and Chebychev’s Bounds.Recall that given a random variable X with mean μ and variance σ2,we have Markov’s bound given as (fora > 0) P(X ≥a) ≤ μ/a,and Chebychev’s bound given by (for k > 0):P(|X −μ|≥k) ≤ σ^2/k^2Write functions “markov” and “chebychev” which take input relevantinputs (a,μ for Markov and k,σ2forChebychev) and output the relevant value of the bounds.
2. Normal distributionFor values of a ∈(14,22) plot the true value of P(X ≥a) and theMarkovs bound on the same plot (x-axiswill be (14,22)) when X ∼N(μ = 18,σ = 1.5).For values of k ∈(0,5) plot the true value of P(|X −μX|≥k) and theChebychev’s bound, on the same plot(x-axis will be (0,5)) when X ∼N(μ = 18,σ = 1.5).
3. Exponential DistributionFor values of a ∈(0,5) plot the true value of P(X ≥a) and theMarkovs bound on the same plot (x-axis willbe (0,5)) when X ∼Exp(λ = 2).For values of k ∈(0,5) plot the true value of P(|X −μX|≥k) and theChebychev’s bound, on the same plot(x-axis will be (0,5)) when X ∼Exp(λ = 2).
2. Normal distributionFor values of a ∈(14,22) plot the true value of P(X ≥a) and theMarkovs bound on the same plot (x-axiswill be (14,22)) when X ∼N(μ = 18,σ = 1.5).For values of k ∈(0,5) plot the true value of P(|X −μX|≥k) and theChebychev’s bound, on the same plot(x-axis will be (0,5)) when X ∼N(μ = 18,σ = 1.5).
3. Exponential DistributionFor values of a ∈(0,5) plot the true value of P(X ≥a) and theMarkovs bound on the same plot (x-axis willbe (0,5)) when X ∼Exp(λ = 2).For values of k ∈(0,5) plot the true value of P(|X −μX|≥k) and theChebychev’s bound, on the same plot(x-axis will be (0,5)) when X ∼Exp(λ = 2).