The function F(x)= 1- e-x-xe-x for 0 < x < ∞ and 0 for x< 0 is the CDF of a random variable X. Using R: a) Using R, create a user-defined function for F(named F) in the interval [0,0). b) Using this F, find the probability that X ≤ 6 c) Using F, find the probability that X > 6 d) Using F, find the probability that 2 < X < 4

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

Need the r script(r code)

The function F(x)= 1 - e¯x- x·e¯x for 0 < x < ∞ and 0 for x< 0 is the CDF of a random variable X.
Using R:
a) Using R, create a user-defined function for F(named F) in the interval [0,00).
b) Using this F, find the probability that X ≤ 6
c) Using F, find the probability that X > 6
d) Using F, find the probability that 2 < X < 4
e) What is the probability density function(in R code) for x ≥ 0 ?
f) Paste your R script in the following box
16
Transcribed Image Text:The function F(x)= 1 - e¯x- x·e¯x for 0 < x < ∞ and 0 for x< 0 is the CDF of a random variable X. Using R: a) Using R, create a user-defined function for F(named F) in the interval [0,00). b) Using this F, find the probability that X ≤ 6 c) Using F, find the probability that X > 6 d) Using F, find the probability that 2 < X < 4 e) What is the probability density function(in R code) for x ≥ 0 ? f) Paste your R script in the following box 16
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 7 steps with 9 images

Blurred answer