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

  1. Using R do the following:
    1. 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.

  1. Find the mean, median and standard deviation of these 20 numbers.

  1. Draw a box plot and find out the quartiles.

  1. Create a set of another 20 random numbers (call this y vector) and make a x-y scatter plot.

  1. Using linear regression find the best fit x-y straight line and show on the plot.

  1. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!