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