Question: jmp.com/learn rev 02/2014 Simple Linear Regression Simple linear regression is used to model the relationship between two continuous variables. Simple Linear Regression Using Fit Y
jmp.com/learn rev 02/2014 Simple Linear Regression Simple linear regression is used to model the relationship between two continuous variables. Simple Linear Regression Using Fit Y by X Example: Big Class.jmp (Help > Sample Data) 1. From an open JMP data table, select Analyze > Fit Y by X. 2. Click on a continuous variable from Select Columns, and click Y, Response (continuous variables have blue triangles). 3. Select a second continuous variable, and click X, Factor. 4. Click OK to generate a scatterplot. 5. To fit a regression line, click on the red triangle and select Fit Line. By default, JMP will provide the following results: The regression equation (under Linear Fit). The Summary of Fit. Lack of Fit (if the data table includes replicates of X values). The ANOVA table. The parameter estimates. Additional options, such as residual plots and confidence curves, are available from the red triangle next to Linear Fit (directly under the graph). Tips: For other fit options, such as polynomial, transformation (fit special) and spline, use the top red triangle. To add a legend, change markers, or make other changes to the graphical display, right-click on the graph. To fit separate lines for categories of a grouping variable, click on the top red triangle, select Group By, and choose a grouping variable. Then, click on the top red triangle and select Fit Line. JMP will fit separate lines and provide results for each level of the grouping variable. Notes: Simple linear regression can also be performed from Analyze > Fit Model. For more details on regression analysis, see the book Basic Analysis (under Help > Books) or search for \"regression\" in the JMP Help. jmp.com/learn rev 02/2014 Simple Logistic Regression Logistic regression is used to predict the probability of the occurrence of an event. Example: Car Poll.jmp (Help > Sample Data) Logistic Regression Using Fit Y by X 1. From an open JMP data table, select Analyze > Fit Y by X. 2. Click on a categorical variable from Select Columns, and click Y, Response (nominal variables have red bars, ordinal variables have green bars). 3. Click on a continuous variable, and click X, Factor (continuous variables have blue triangles). 4. Click OK to run the analysis. By default, JMP will provide the following results: The logistic plot, with curves of cumulative predicted (fitted) probabilities. The whole model test for model significance. Parameter estimates for the fitted model. Tips: When the response is nominal, a nominal logistic model will be fit. When the response is ordinal, as in this example, an ordinal logistic model will be fit. To color points and add a legend, right-click in the graph and select Row Legend. Select a variable under Mark by Column, and select Markers to change the marker, and click OK. To save the probability formula or request other options, click on the top red triangle and select the option. To find the fitted probability for a given value of X, select the cross-hair tool ( ) from the toolbar or use the keyboard shortcut (C), and click on the graph. Interpretation (for this example, X = buying age and Y = car size): The bottom curve represents the predicted probability that for a given age, someone will buy a large car. The second curve represents the probability that someone will buy a large or medium car. The distance between the two curves represents the probability that someone will buy a medium car. The distance between 1.00 and the top curve represents the probability that someone will buy a small car. The cross-hairs show that the predicted probability that someone aged 44.98 years will purchase a large car is 0.2373. Notes: Simple nominal and ordinal logistic regression can also be performed from Analyze > Fit Model. For more details see the book Basic Analysis (under Help > Books) or search for \"simple logistic regression\" in the JMP Help. jmp.com/learn rev 02/2014 Clustering Use clustering to automatically group rows having similar characteristics. Hierarchical Clustering Example: Cereal.jmp (Help > Sample Data) 1. From an open JMP data table, select Analyze > Multivariate Methods > Cluster. 2. Select one or more variables from Select Columns and click Y, Columns. 3. If available, select a Label variable. 4. Select the desired method (bottom left corner) and click OK. JMP will generate: A dendrogram, showing the clusters formed at each step. A scree plot, showing the distance bridged each step. The clustering history, giving cluster statistics for each step. Tips: To color clusters, to mark or save clusters, or to request other options, click the top red triangle. To dynamically change the number of clusters, click and drag one of the black diamonds left or right. K-Means Clustering 1. From an open table, select Analyze > Multivariate Methods > Cluster. 2. Select one or more continuous variables from Select Columns and click Y, Columns (continuous variables have blue triangles). 3. Under Options, change Hierarchical to KMeans, and click OK. 4. In the resulting Control Panel, enter the number of clusters and click Go. JMP will generate: A summary of the cluster sizes. Tables of cluster means and standard deviations for each variable. Tips: To obtain biplots, parallel plots or request other options, click the red triangle for the K Means heading. To perform analyses for a range of cluster sizes: In the Control Panel, enter the lower limit in number of clusters and the upper limit in range of clusters, then click Go. To step through the formation of the clusters: In the Control Panel, check Single Step then click Go. To locate potential multivariate outliers, select Declutter in the Control Panel. Note: For more information on Declutter and additional discussion of these and other clustering methods, search for \"cluster\" in the JMP Help or see the book Multivariate Methods (under Help > Books). Type Size Co Computer small Pharmaceutbig Computer small Pharmaceutbig Computer small Pharmaceutbig Computer small Computer small Computer small Computer small Computer small Pharmaceutmedium Computer big Computer small Pharmaceutbig Pharmaceutsmall Pharmaceutmedium Computer big Pharmaceutbig Computer medium Pharmaceutsmall Computer small Pharmaceutmedium Computer small Computer small Computer small Computer small Computer big Pharmaceutmedium Computer medium Pharmaceutmedium Computer big Sales ($M) Profits ($M# Employ 855.1 31 7523 5453.5 859.8 40929 2153.7 153 8200 6747 1102.2 50816 5284 454 12068 9422 747 54100 2876.1 333.3 9500 709.3 41.4 5000 2952.1 -680.4 18000 784.7 89 4708 1324.3 -119.7 13740 4175.6 939.5 28200 11899 829 95000 873.6 79.5 8200 9844 1082 83100 969.2 227.4 3418 6698.4 1495.4 34400 5956 412 56000 5903.7 681.1 42100 2959.3 252.8 31404 1198.3 86.5 8527 990.5 20.9 8578 3243 471.3 21300 1382.3 0.3 2900 1014 47.7 9100 1769.2 60.8 10200 1643.9 118.3 9548 1096.9 -639.3 82300 2916.3 176 20100 3078.4 -424.3 28334 4272 412.7 33000 63438 3758 383220 profit/empAssets 4120.697 615.2 21007.11 4851.6 18658.54 2233.7 21690.02 5681.5 37620.15 2743.9 13807.76 8497 35084.21 2090.4 8280 468.1 -37800 1860.7 18903.99 955.8 -8711.79 1040.2 33315.6 5848 8726.316 10075 9695.122 808 13020.46 7919 66530.13 784 43470.93 6756.7 7357.143 4500 16178.15 8324.8 8049.93 5611.1 10144.25 1791.7 2436.465 624.3 22126.76 3613.5 103.4483 1076.8 5241.758 977 5960.784 1269.1 12390.03 1618.8 -7767.922 10751 8756.219 3246.9 -14974.94 2725.7 12506.06 3051.6 9806.378 77734 %profit/sales 3.625307 15.76602 7.104053 16.33615 8.591976 7.928253 11.58861 5.83674 -23.048 11.34191 -9.038737 22.49976 6.966972 9.100275 10.99147 23.46265 22.32473 6.917394 11.53683 8.542561 7.21856 2.110045 14.53284 0.021703 4.704142 3.436582 7.196301 -58.28243 6.035044 -13.78313 9.660581 5.923894