Inditex is one of the world's largest fashion retailers, with eight brands (Zara, Pull&Bear, Massimo Dutti, Bershka, Stradivarius, Oysho, Zara Home and Uterqüe).
In the second column the number of stores of the Inditex Group worldwide from 2013 to 2020 is given.
In the third column of the table the net sales of the Inditex Group from 2013 to 2020 are given.
Year | No of stores | Net sales |
2013 | 6340 | 16274 |
2014 | 6683 | 17569 |
2015 | 7013 | 20234 |
2016 | 7292 | 20207 |
2017 | 7475 | 25335 |
2018 | 7490 | 26145 |
2019 | 7469 | 28287 |
2020 | 6829 | 20403 |
import numpy as np
from sklearn.linear_model import LinearRegression
x = np.array([6340, 6683, 7013, 7292, 7475, 7490, 7469, 6829]).reshape((-1, 1))
y = np.array([16274, 17569, 20234, 20207, 25335, 26145, 28287, 20403])
model = LinearRegression().fit(x, y)
print('Slope:', model.coef_[0])
print('Intercept:', model.intercept_)
print('R Square:', model.score(x, y))
Slope: 8.963836999293486 Intercept: -41602.312453377206 R Square: 0.8062677103589612