Question: You have loaded a dataset of people's heights into a 100 x 1 array called `height`. Which statement will return a 100 x 1 array, `sim_height`, with values from a normal distribution with the same mean and variance as your height data?
- sim_height = std(height) + mean(height) \* randn(100, 1);
- sim_height = mean(height) + std(height) \* randn(100, 1);
- sim_height = randn(std(height), mean(height), [100, 1]);
- sim_height = randn(mean(height), std(height), [100, 1]);
Answer: The correct answer of the above question is Option B:sim_height = mean(height) + std(height) \* randn(100, 1);