Using validation to assess models
Validation allows you to evaluate your predictions using a dataset that was not involved in creating the prediction model.
As with cross-validation, your goals should be to have the following:
- An average error close to zero
- A small root mean square prediction error
- An average standard error similar to the root mean square prediction error
- A standardized mean prediction error near 0
手順:
-
Create the subsets that you will use to create and validate the model:
- Add the dataset to ArcMap that you want to subset.
-
Click the drop-down arrow on the Geostatistical Analyst toolbar and click Subset Features tool.
The Subset Features tool opens. You can also open this tool directly from the Geostatistical Analyst Tools toolbox. It is located in the Working with Geostatistical Layers toolset.
- Specify the dataset that you want to subset.
- Specify names and locations for the training and test subsets that will be created.
- Specify the size of the training subset. The default is 50 percent of the data, but you can specify a different percentage or a specific number of features by switching Subset size units to ABSOLUTE_VALUE.
- Click Finish.
- Create an interpolation model:
- [Geostatistical Analyst] ツールバーの [Geostatistical Wizard] ボタン をクリックします。
- Use the training dataset to create your interpolation model.
- Run validation using the test dataset:
- Once the output surface has been created, right-click the layer and choose Validation/Prediction.
This opens the Layer To Points dialog box.
- The Input geostatistical layer box should already be populated with the layer you chose to validate.
- Under Point observation locations, specify the Test dataset.
- Field to validate on must be the same field (attribute) you used to create the interpolation model.
- Specify a location for the file in the Output statistics at point locations box.
- Click OK.
- Once the output surface has been created, right-click the layer and choose Validation/Prediction.
- Evaluate the results:
- Open the attribute table of the point feature layer created in the previous step by right-clicking the layer and choosing Open Attribute Table.
- Scroll to the right until you see the Included, Predicted, and Error fields. There may be others, such as Standard Error, Standardized Error, and Normal Value, if you are validating a kriging model.
- Right-click the Error column heading and click Statistics.
The mean value should be close to 0.
- To calculate the root mean square error, add a field (defined as double) called Error_squared to the attribute table. Right-click this column heading and use Field Calculator to calculate its values. Set the expression to Error * Error. Use the Statistics tool to obtain the mean of these squared errors. Finally, take the square root of the mean value. This is the root mean square error, and its value should be as low (close to 0) as possible.
- Right-click the Standard Error column heading and click Statistics.
The mean value should be as low (close to 0) as possible. It should also be similar to the root mean square error.
- If you are validating a kriging model, right-click the Standardized Error column heading and click Statistics. The mean value should be close to 0.
- It may also be useful to plot the predicted versus the measured (the original attribute) values in a scatterplot to see if the points fall close to a 45-degree line.
関連トピック
4/26/2014