For the latest version of JMP Help, visit JMP.com/help.


Design of Experiments Guide > Space-Filling Designs > Latin Hypercube Designs > Visualizing the Latin Hypercube Design
Publication date: 04/28/2021

Visualizing the Latin Hypercube Design

To visualize the nature of the Latin Hypercube technique, create a plot with Graph Builder:

1. Create another Latin Hypercube design using the default X1 and X2 factors.

2. Be sure to change the factor values so that they are 0 and 1 instead of the default –1 and 1.

3. Click Continue.

4. Specify a sample size of eight (Number of Runs).

5. Click Latin Hypercube.

Figure 21.12 Latin Hypercube Design with Two Factors and Eight Runs 

6. Click Make Table.

7. Select Graph > Graph Builder.

8. Specify X1 as X and X2 as Y.

9. Right-click the plot and select Graph > Size/Scale > Size to Isometric to adjust the frame size so that the frame is square.

10. Right-click the plot, select Customize from the menu. In the Customize panel, click the large plus sign to see a text edit area, and enter the following script:

For Each Row(Circle({:X1, :X2}, 0.404/2))

where 0.404 is the minimum distance number that you noted in the Design Diagnostics panel (Figure 21.12). This script draws a circle centered at each design point with radius 0.202 (half the diameter, 0.404), as shown on the left in Figure 21.13. This plot shows the efficient way JMP packs the design points.

11. Repeat the above procedure exactly, but with 10 runs instead of eight (step 5). Remember to change 0.404 in the graphics script to the minimum distance produced by 10 runs.

You should see a graph similar to the one on the right in Figure 21.13. Note the irregular nature of the sphere packing. In fact, you can repeat the process to get a slightly different picture because the arrangement is dependent on the random starting point.

Figure 21.13 Comparison of Latin Hypercube Designs with Eight Runs (left) and 10 Runs (right) 

Note that the minimum distance between each pair of points in the Latin Hypercube design is smaller than that for the Sphere-Packing design. This is because the Latin Hypercube design constrains the levels of each factor to be evenly spaced. The Sphere-Packing design maximizes the minimum distance without any constraints.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).