I1.02: Section 1
Section 1: Graphing data and model together
In order to find a good model for a dataset, we need to be able to compare the actual data values with the predictions of the model. This can be done by applying the model formula to each of the x values in Column A to compute “model y” values that are placed in Column C next to the corresponding “data y” value in Column B. Then a scatter plot that is made with all three columns selected will show both the data and the model predictions, in different colors. For a good model, the two kinds of points will be close to each other, although the data points will usually also include some random noise.Example 1—Adding a model to a dataset and setting up a comparison graph
|
The dataset to the left has a relationship between x and y that is approximated by the linear formula y = 1.4 x + 7.3. This formula can be used to compute model y values for each of the rows of the dataset, which we will put into column C next to the corresponding output data y value so that we can easily compare them.
|
| A | B | C | D | E | F | G | H | I | |
| 1 | Input | Output | Prediction | ||||||
| 2 | x | data y | model y | ||||||
| 3 | 0 | 6.6 | 7.3 | ||||||
| 4 | 1 | 9.3 | 8.7 | ||||||
| 5 | 2 | 9.2 | 10.1 | ||||||
| 6 | 3 | 11.5 | 11.5 | ||||||
| 7 | 4 | 12.9 | 12.9 | ||||||
| 8 | 5 | 15.2 | 14.3 | ||||||
| 9 | 6 | 14.4 | 15.7 | ||||||
| 10 | 7 | 17.5 | 17.1 | ||||||
| 11 | 8 | 19.3 | 18.5 | ||||||
| 12 | 9 | 19.8 | 19.9 | ||||||
| 13 |
Licenses & Attributions
CC licensed content, Shared previously
- Mathematics for Modeling. Authored by: Mary Parker and Hunter Ellinger. License: CC BY: Attribution.