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 number of apples in a box when a new box arrives to the restaurant,
so that we may decide the number of menus with apples we may offer to our clients.
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 35 kilos box arrives to the restaurant, by applying the formula
the number of apples in the box is easily estimated:
y= 3.03 *35 + 0.67 = 105 apples
As correlation coefficient is good (r = 0.999), the number of apples computed
will be a good estimation.
