71.1k views
0 votes
Assign the selected values with randomly selected elements from the row array dataset. Duplicate selections are acceptable. Hint: Use the randi function and an indexing array.

User Gislef
by
8.2k points

1 Answer

5 votes

Final answer:

To assign randomly selected elements from a row array dataset, you can use the randi function and an indexing array. Follow these steps to create a stratified sample by column and pick three quiz scores randomly from each column.

Step-by-step explanation:

To assign randomly selected elements from a row array dataset, you can use the randi function and an indexing array. Here's how:

  1. Number each row in your dataset from 1 to 10.
  2. Go to the PRB menu on your calculator and select 5:randInt(.
  3. Enter the range of numbers for the column you want to sample from, such as 1 to 10.
  4. Press ENTER to generate a random number.
  5. Repeat the previous step two more times to get a total of three random numbers.
  6. Record these three random numbers.
  7. Record the three quiz scores in column one that correspond to these three numbers.

User Lemon Kazi
by
7.9k points