官术网_书友最值得收藏!

  • Minitab Cookbook
  • Isaac Newton
  • 508字
  • 2021-07-16 12:29:23

Creating a scatterplot of two variables

We will use a Scatterplot command to visualize the relationship between a resting pulse and the pulse after a group of students' activity.

How to do it…

The following instructions create a scatterplot of Pulse1—the resting pulse, Pulse2—the pulse after activity, and the Ran column. The Ran column indicates whether a student ran in his/her place or not:

  1. Go to the File menu and select Open Worksheet….
  2. Click on the button labeled Look in Minitab Sample Data folder.
  3. Open the Pulse.MTW worksheet.
  4. Go to the Graph menu and select Scatterplot….
  5. From the graph selection screen, select the With Groups scatterplot.
  6. Enter Pulse2 as the y variable and Pulse1 as the x variable.
  7. Next, enter Ran as Categorical variable for grouping (0-3):. Then click on OK.

How it works…

In the graph, we have created our y variables that are placed on the vertical y axis, and the x variables along the horizontal x axis. The y axis most commonly plots outputs to our responses in the data. Predictors, which are our inputs, are entered on the x axis.

By entering the Ran column as a grouping variable, we change the style of points on the graph. Here, 1 under Ran is shown as circles, and 2 as squares. Our results in the scatterplot may lead us to believe that it was the first group that exercised.

How it works…

There's more…

Least squares regression lines can be added to the scatterplot by right-clicking on the chart and selecting Add | Regression Fit…. A regression line added this way will not report the coefficient tables or analysis of variance tables.

The fitted model can be viewed with a pop-up textbox when hovering the cursor over the line. For statistical information on the model, use fitted line plots in regression.

The Crosshairs feature can be found from the right-click menu and is very useful for finding coordinates on the graph. The brushing tool is also a powerful tool to use in scatterplots. This is available from the right-click menu and is used to highlight individual or groups of data points. By default, it will report row numbers and can also be used to display row information from the worksheet.

There's more…

An example of brushing is shown in the previous screenshot. To brush the chart, right-click on the chart and select Brush. To add row information from the columns in the worksheet, right-click on the graph once more and select Set ID Variables… from the right-click menu. Then, double-click on the Sex, Smokes, and Activity columns in the Variables: section. Click on OK and highlight a few points on the chart to observe the values of the columns entered as variables in brushing.

See also

  • The Visualizing simple regressions with fitted line plots recipe in Chapter 5, Regression and Modelling the Relationship between X and Y
  • The Multiple regression with linear predictors recipe in Chapter 5, Regression and Modelling the Relationship between X and Y
主站蜘蛛池模板: 南岸区| 葫芦岛市| 江孜县| 吉木乃县| 枞阳县| 兴山县| 巧家县| 华坪县| 定南县| 武义县| 海宁市| 白城市| 连南| 富顺县| 杨浦区| 砚山县| 涟水县| 新源县| 苏尼特右旗| 彩票| 遵义市| 象山县| 酒泉市| 无棣县| 察雅县| 尤溪县| 镇远县| 临城县| 巴南区| 垫江县| 宁武县| 许昌市| 杂多县| 勐海县| 海原县| 河北区| 武宁县| 那坡县| 丰宁| 讷河市| 崇义县|