Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 4. (5 marks). For this question, we will say that a continuous random variable X follows a mystery distribution with parameters a and b
Question 4. (5 marks). For this question, we will say that a continuous random variable X follows a mystery distribution with parameters a and b (with a, b > 0) if the probability density function for X is given by fx (z) = I (2) 46. ((2 ) 4 + 1 ) - 6 - 1 if x > 0 otherwise. In that case, we write X ~ Mystery(a, b). (a) Write an R function dmystery with three arguments x, a and b, which computes this probability density function. Ensure your function is vectorised for the remaining parts of this question; you may use Vectorize as in the lab classes. Use correct syntax to define a function, i.e., dmystery 2.604) (iii) P(1.906
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started