Example: The number of apples arriving to the restaurant per box and their weight
in kilograms were registered. Data is shown in the form above.
We want to estimate the kilograms of apples per box when a new box arrives to the restaurant.
We have computed the linear regresión between both parameters and we have obtained the
value a=3.03 and b=-0.67 to be used in the formula y=ax+b.
When a box with 105 apples arrives to the restaurant, by applying the formula
the number of kilos in the box is easily estimated:
105= 3.03 *x + -0.67 => x = 35 kilos
As correlation coefficient is good (r = 0.999), the number of kilos computed
will be a good estimation.
|