TI-89 / TI-92 Plus / Voyage™ 200 PLT Statistics with List Editor App † Calc Menu 110
randSamp(
Description
† (
Calc) Æ 4:Probability Æ 8:randSamp(
randSamp(
LIST1,CHOOSE[,NOREP=1]) ⇒ LIST
randSamp( returns a LIST containing a random sample of the size you CHOOSE from a
LIST with an option for sample replacement (NOREP=0), or no sample replacement
(NOREP=1). The default is with sample replacement.
Example
1. In the list editor, enter: list3={1,2,3,4,5}
2. Move the cursor to the list name of an empty list (
list4) where you want to return the
random sample.
3. Press † (
Calc) and select 4:Probability. Then select 8:randSamp(. The randSamp(
command is displayed in the entry line.
4. Enter the list (list3) from which you want to return the random sample. Enter the
number of the sample (
6). Separate the list name from the sample number with a
comma. Close the expression with a close parenthesis.
Tip: You can press 2 °, highlight a list, and then press ¸ to paste the list name into
the list editor. Be sure to close arguments with a right parenthesis (d).
You can also press … (List) and select 1:Names to display the VAR-LINK [All] menu.
5. Press b to generate and display the random sample.
CHOOSE = 6, the number in the random sample
LIST1 = list3, the input data
List4 = a random sample of 6 from list3