cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
Random Sampling and Random Data

This guide demonstrates methods for selecting a random sample and generating random data.

Random Sampling

  1. From an open JMP data table, select Tables > Subset.
  2. Specify how you’d like the sample to be selected:
  • Random – sampling rate (specify the proportion).
  • Random – sample size (specify the desired sample size).
  • To select a stratified sample across another variable, check Stratify and select the variable.
  1. Under Columns, specify All columns or Selected columns.
  2. Click OK to generate the random sample.

Car Physical Data.jmp (Help > Sample Data Folder)Car Physical Data.jmp (Help > Sample Data Folder)

 





 

 

 

 

 

 

 

 

 

Generating Random Data

Manually Create Formula:

  1. Create a new Data Table (File > New > Data Table).
  2. Create the number of desired row (Rows > Add Rows).
  3. Assign a name for the column (e.g., ‘Random Normal’)
  4. Right-click on the column and select Formula. This takes you to the JMP Formula Editor.
  5. Click on the gray icon next to Random in the function list on the left, and select the distribution of interest. Here, we will select Random Normal.
  6. Click on the caret once to add the standard deviation field. Type in the desired values for the mean and standard deviation. Click OK. JMP will populate the new column with simulated random normal data.

 

 

gail_massari_0-1753990195468.png

 

Simulated random standard normal data. The fat plus sign next to the variable name under the Columns panel tells us that a formula is stored in that column.Simulated random standard normal data. The fat plus sign next to the variable name under the Columns panel tells us that a formula is stored in that column.

 

 

 

 

 

 

 

 

 

 

 

 

 

Instant Formula:

Right click any continuous column in the data table and select New Formula Column > Random > Random Normal.

A new column containing a formula will be added to the data table. To reveal or modify the formula, right click on the column header for the new column and select Formula.

Visit Using JMP > Reshape Your Data > Create a Subset Data Table, and Using JMP > Create Formulas in JMP in JMP Help to learn more.

Recommended Articles