Interview Query

Random Difference

Have you seen this question before?

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?

N = 10
M = 20
random_differences(M, N)
Next question: Demand Metrics
Python 3.9.6
Loading editor