Calculating the MAPE

Report a typo

You are given the following dataset:

xx yy y^\hat{y}
0 3.2 4
1 4.7 4.3
2 4 4.6
3 5.6 4.9
4 5.6 5.2
5 6.2 5.5
6 5.1 5.8
7 6.4 6.1

Calculate the mean absolute percentage error. Round the answer up to the second decimal place.

yy and y^\hat{y} values as Python lists
y = [3.2, 4.7, 4, 5.6, 5.6, 6.2, 5.1, 6.4]
y_hat = [4, 4.3, 4.6, 4.9, 5.2, 5.5, 5.8, 6.1]
Enter a number
___

Create a free account to access the full topic