Random Difference

Start Timer

0:00:00

Upvote
0
Downvote
Save question
Mark as completed
View comments (5)

Write a function to generate M samples from a random normal distribution of size N.

Then return the average difference between the 5th and 6th lowest values.

Note: N should always be greater than 6.

Bonus: How would you verify your function returning the correct results?

Example:

Input:

N = 10
M = 20

Output:

random_differences(M, N) -> 0.5
.
.
.
.
.


Comments

Loading comments