Session Ready
Exercise

Exercise 7. Distribution of IQ scores

The distribution of IQ scores is approximately normally distributed. The average is 100 and the standard deviation is 15. Suppose you want to know the distribution of the person with the highest IQ in your school district, where 10,000 people are born each year.

Generate 10,000 IQ scores 1,000 times using a Monte Carlo simulation. Make a histogram of the highest IQ scores.

Instructions
100 XP
  • Use the function rnorm to generate a random distribution of 10,000 values with a given average and standard deviation.
  • Use the function max to return the largest value from a supplied vector.
  • Repeat the previous steps a total of 1,000 times. Store the vector of the top 1,000 IQ scores as highestIQ.
  • Plot the histogram of values using the function hist.