Question: Using R do the following: Create a set of 20 random numbers (call this x) in the range of a and b, where ask user
- Using R do the following:
- Create a set of 20 random numbers (call this x) in the range of a and b, where ask user to enter a and b using scan command.
- Find the mean, median and standard deviation of these 20 numbers.
- Draw a box plot and find out the quartiles.
- Create a set of another 20 random numbers (call this y vector) and make a x-y scatter plot.
- Using linear regression find the best fit x-y straight line and show on the plot.
- Given the probability function of a random variable as F(x) = 1 4/x2 for x > 2 and = 0 for x<= 2, where F(x) is defined as P(X<= x). Do not use R for this problem.
Using this distribution function, find the probability that this random variable will take a value (i) less than 3 and (ii) x is between 4 and 5.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
