87.4k views
4 votes
Which of the following commands would generate sample with the largest variance?

1. rnorm(100,0.5,10)
2. morm(100,0,1)
3. rnorm(100, 5, 3)
4. rnorm(100,1,2)

User Emil C
by
6.5k points

1 Answer

3 votes

Final answer:

The command 'rnorm(100,0.5,10)' would generate a sample with the largest variance since it has the highest standard deviation value, which determines variance.

Step-by-step explanation:

The command that would generate a sample with the largest variance among the following: 1. rnorm(100,0.5,10) 2. rnorm(100,0,1) 3. rnorm(100, 5, 3) 4. rnorm(100,1,2) is the first command, rnorm(100,0.5,10). In these functions, the third parameter represents the standard deviation of the generated numbers. A larger standard deviation results in a larger variance because variance is the square of the standard deviation. Therefore, a standard deviation of 10 will lead to the largest variance.

User Andre Lombaard
by
6.7k points