Measures

The Measure view displays a detailed, quantitative view of the quality of the polynomial regression analysis and measure of fit information to help you determine the accuracy of your predicted data points.

This page discusses:

See Also
About Machine Learning Models

The Measure view also displays a family of table and visuals that help you understand how well the predicted data matches the actual data.



For each output parameter, Results Analytics performs a regression analysis to measure how well the predicted model approximates the actual function at the data points used to construct the model. The analysis returns the following values:

R 2

An R 2 value of 1.00 indicates that the values of the predicted model and the values of the actual function are identical at all the data points. It is always possible to perfectly fit N points using a polynomial with N + 1 coefficients. Therefore, a perfect value of the R 2 coefficient does not necessarily indicate that the model will match the actual function everywhere in the design space, unless the number of points used for analysis is considerably greater (3–10 times) than the number of polynomial coefficients.

R 2 Adjusted

R 2 adjusted is a modified value of R 2 that accounts for the number of parameters in your model relative to the number of data points. Results Analytics provides a value for R 2 adjusted to account for the value of R 2 increasing when you add parameters to the data set. The value of R 2 adjusted is always less than, or equal to, the value of R 2 .

Root Mean Square Error

The root mean square error is the standard deviation of the differences between the predicted and actual values and is a numerical measure of the difference between the predicted values and the actual values.

RMSE = ∑ t = 1 n ( Y ^ t − Y t ) 2 n

You should apply different interpretations to R 2 and R 2 adjusted. You use R 2 as an indication of the measure of fit to the regression line. In contrast, you use R 2 adjusted to compare combinations of different parameters in your machine learning models. Some parameters are redundant and play no role in the machine learning model. Adding a redundant parameter increases the value of R 2 , but decreases the value of R 2 adjusted.

You can select points from the Actual By Predicted plot and/or the Residual By Predicted plot and use the select menu from the top toolbar to exclude the points from the machine learning model. After you exclude points; Results Analytics shows the machine learning model status as out of date; you must retrain the machine learning model by clicking Retrain from the top toolbar.

Excluding a point from a measures plot is the same as excluding a design from a row of the data table on the Designs page and allows you to remove designs that are outliers and are exerting undue influence over the calculation of the machine learning model.

Actual by Predicted

The Actual By Predicted plot is an XY plot of the actual value of the output parameter versus the value predicted by the polynomial regression analysis.



The blue line at a 45° indicates a perfect fit (the predicted value equals the actual value). Results Analytics considers the machine learning model to be a good fit when all the following conditions are satisfied:
  • The R 2 value is greater than 0.80
  • The R 2 adjusted value is greater than 0.80
  • The root mean square value is less than 0.005

Residual by Predicted

The Residual By Predicted plot is an XY plot of the residual value of the output parameter versus the value predicted by the regression analysis for each data point. The residual is the distance between the predicted value and the line indicating a perfect fit. The predicted value can lie above the line (a positive residual) or below the line (a negative residual). The blue, horizontal line in the plot of residual versus predicted data indicates a zero residual—predicted value equals the actual value. Results Analytics considers the machine learning model to be a good fit when the ratio is less than 0.05.



Re s i d u a l Pr e d i c t e d ⁢ =   ( max ⁡   ( r e s i d u a l )   −   min ⁡   ( r e s i d u a l ⁢ ) ) ( max ⁡   ( p r e d i c t e d )   −  min (predicted)) 

You can use the Residual By Predicted plot to identify outliers (points significantly further from the blue, zero residual line). You can remove outliers by selecting points from the graph and choosing to exclude them from the data set. (You can also exclude selected points using the Actual By Predicted plot.)

The Residual By Predicted plot also allows you to identify trends and patterns in the residuals. Ideally, the distribution of the residuals should be random, not increasing or decreasing or following a discernible shape with increasing predicted values.

Percent Error

Percent error is the relative deviation of each prediction from its actual value in a machine learning data set.

P e r c e n t ⁢   E r r o r ⁢ = ( p r e d i c t e d ⁢   ⁢   ⁢ v a l u e ⁢ −   a c t u a l ⁢   v a l u e ) ⁢ a c t u a l ⁢   v a l u e ⁢ ⁢   × 100

The app calculates Percent Error Absolute Mean and Percent Error Absolute Maximum as the maximum absolute values of the percent error data column. The app computes Percent Error Standard Deviation using a standard deviation calculation for the same column.

You can compute these metrics for either the training data or the cross-validation data. The training data contains the values used to train the machine learning model, while cross-validation evaluates a subset of data excluded from the training data set using methods such as K-fold validation, that the app selects during model creation.

Cross Validation Percent Error

To cross-validate the machine learning model, Results Analytics randomly selects data points from the data set and divides the data set into 10 subsets of equal size. Results Analytics then removes each subset of data from the data set, recalculates the polynomial coefficients using the reduced data set, and calculates the cross-validation percent error by comparing the actual and predicted values of the output parameter at each point that was removed. Results Analytics repeats this procedure for each of the 10 subsets. This type of cross-validation is called "k-fold cross-validation"; the value of "k" is fixed at 10 and cannot be changed.



The Cross Validation Percent Error plot is a bar chart showing the percent error (predicted value − actual value / actual value) as a frequency of occurrence. You can use the Cross Validation Percent Error plot to determine the validity of your machine learning model for designs that do not appear in your data set (but still lie between the upper and lower boundaries). Ideally, the plot will show a normal distribution centered around a value of zero percent error. If the residual errors are small and the cross-validation errors are large, you are predicting a data point that is not represented in the original data set, and you need to repeat the machine learning model with a larger data set.