Question 1:
Given the following histogram that describes the anticipated range of the GPA for a newly admitted student.
| GPA | Probability |
| 1 to 2 | 0.2 |
| 2 to 3 | 0.5 |
| 3 to 4 | 0.3 |
Generate ten random samples for the GPA, using the following uniformly distributed random numbers U[0,1]: 0.35, 0.97, 0.22, 0.15, 0.60, 0.43, 0.79, 0.52, 0.81, 0.65.
Hint: Use the following Formula for linear interpolation:
Question 2:
Given the following CDF for variable x, generate random samples for x, using the following uniformly distributed random numbers U[0,1]: 0.35, 0.97, 0.22, 0.15, 0.60, 0.43, 0.79, 0.52, 0.81, 0.65.
| x | F(x) |
| 1 | 0 |
| 2 | 0.2 |
| 3 | 0.7 |
| 4 | 1 |
Hint: Also use linear interpolation (similar to question 1).
please Dr. can u upload answer of sheet 7,8,9,10 ... because we need it .
ReplyDelete