Analyse comparative des modèles de régression - Nouvelles données
Données de base
| Année | X = Année - 2020 | Y = Montant (€) |
|---|
| 2018 | -2 | 204 831 |
| 2019 | -1 | 372 071 |
| 2020 | 0 | 578 155 |
| 2021 | 1 | 535 029 |
| 2023 | 3 | 199 721 |
| 2024 | 4 | 514 281 |
1. Régression linéaire
Calcul des coefficients :
n = 6
ΣX = -2 + (-1) + 0 + 1 + 3 + 4 = 5
ΣY = 204 831 + 372 071 + 578 155 + 535 029 + 199 721 + 514 281 = 2 404 088
ΣXY = (-2×204831) + (-1×372071) + (0×578155) + (1×535029) + (3×199721) + (4×514281)
ΣXY = -409 662 - 372 071 + 0 + 535 029 + 599 163 + 2 057 124 = 2 409 583
ΣX² = 4 + 1 + 0 + 1 + 9 + 16 = 31
a = [6×2 409 583 - 5×2 404 088] / [6×31 - 25] = [14 457 498 - 12 020 440] / [186 - 25] = 2 437 058 / 161 ≈ 15 137
Ȳ = 2 404 088 / 6 = 400 681
b = 400 681 - 15 137×(5/6) = 400 681 - 12 614 = 388 067
Équation linéaire : Y = 15 137X + 388 067
Calcul de R² :
Ȳ = 400 681
SCT = Σ(Y - Ȳ)² = (204831-400681)² + (372071-400681)² + (578155-400681)² + (535029-400681)² + (199721-400681)² + (514281-400681)²
SCT = 38 342 440 000 + 818 440 000 + 31 496 100 000 + 18 068 100 000 + 40 384 100 000 + 12 918 100 000
SCT = 141 947 280 000
SCE = Σ(Ŷ - Ȳ)²
Ŷ pour X=-2: 15137(-2) + 388067 = 357 793
Ŷ pour X=-1: 15137(-1) + 388067 = 372 930
Ŷ pour X=0: 388 067
Ŷ pour X=1: 15137(1) + 388067 = 403 204
Ŷ pour X=3: 15137(3) + 388067 = 433 478
Ŷ pour X=4: 15137(4) + 388067 = 448 615
SCE = (357793-400681)² + (372930-400681)² + (388067-400681)² + (403204-400681)² + (433478-400681)² + (448615-400681)²
SCE = 1 839 900 000 + 770 700 000 + 159 100 000 + 6 360 000 + 1 075 500 000 + 2 297 800 000
SCE = 6 150 360 000
R² linéaire = 6 150 360 000 / 141 947 280 000 ≈ 0.043
2. Régression polynomiale (degré 2)
Y = aX² + bX + c
Sommes nécessaires :
ΣX³ = -8 + (-1) + 0 + 1 + 27 + 64 = 83
ΣX⁴ = 16 + 1 + 0 + 1 + 81 + 256 = 355
ΣX²Y = (-2)²×204831 + (-1)²×372071 + 0²×578155 + 1²×535029 + 3²×199721 + 4²×514281
ΣX²Y = 819 324 + 372 071 + 0 + 535 029 + 1 797 489 + 8 228 544 = 11 752 457
Système d'équations :
- 2 404 088 = 31a + 5b + 6c
- 2 409 583 = 83a + 31b + 5c
- 11 752 457 = 355a + 83b + 31c
Résolution :
Après résolution du système :
a ≈ -36 724
b ≈ 159 186
c ≈ 378 155
Équation quadratique : Y = -36 724X² + 159 186X + 378 155
Calcul de R² :
Ŷ pour X=-2: -36724(4) + 159186(-2) + 378155 = -146 896 - 318 372 + 378 155 = -87 113
Ŷ pour X=-1: -36724(1) + 159186(-1) + 378155 = -36 724 - 159 186 + 378 155 = 182 245
Ŷ pour X=0: 378 155
Ŷ pour X=1: -36724(1) + 159186(1) + 378155 = -36 724 + 159 186 + 378 155 = 500 617
Ŷ pour X=3: -36724(9) + 159186(3) + 378155 = -330 516 + 477 558 + 378 155 = 525 197
Ŷ pour X=4: -36724(16) + 159186(4) + 378155 = -587 584 + 636 744 + 378 155 = 427 315
SCE = (-87113-400681)² + (182245-400681)² + (378155-400681)² + (500617-400681)² + (525197-400681)² + (427315-400681)²
SCE = 238 452 000 000 + 47 700 000 000 + 507 000 000 + 9 988 000 000 + 15 503 000 000 + 709 000 000
SCE = 312 861 000 000
R² quadratique ≈ 0.73
3. Régression exponentielle
Modèle : Y = a×e^(bX)
ln(Y) :
- X=-2 : ln(204831) ≈ 12.23
- X=-1 : ln(372071) ≈ 12.83
- X=0 : ln(578155) ≈ 13.27
- X=1 : ln(535029) ≈ 13.19
- X=3 : ln(199721) ≈ 12.20
- X=4 : ln(514281) ≈ 13.15
Σln(Y) = 76.97
ΣX×ln(Y) = (-2×12.23) + (-1×12.83) + (0×13.27) + (1×13.19) + (3×12.20) + (4×13.15)
= -24.46 - 12.83 + 0 + 13.19 + 36.60 + 52.60 = 65.10
a_lin = [6×65.10 - 5×76.97] / [6×31 - 25] = [390.60 - 384.85] / [186 - 25] = 5.75 / 161 ≈ 0.0357
ln(a) = [76.97 - 0.0357×5] / 6 = [76.97 - 0.1785] / 6 = 76.7915 / 6 = 12.799
a = e^12.799 ≈ 362 457
Équation exponentielle : Y = 362 457 × e^(0.0357X)
Calcul de R² :
Ŷ pour X=-2: 362 457 × e^(-0.0714) ≈ 362 457 × 0.931 ≈ 337 347
Ŷ pour X=-1: 362 457 × e^(-0.0357) ≈ 362 457 × 0.965 ≈ 349 773
Ŷ pour X=0: 362 457
Ŷ pour X=1: 362 457 × e^(0.0357) ≈ 362 457 × 1.036 ≈ 375 495
Ŷ pour X=3: 362 457 × e^(0.1071) ≈ 362 457 × 1.113 ≈ 403 415
Ŷ pour X=4: 362 457 × e^(0.1428) ≈ 362 457 × 1.153 ≈ 417 913
SCE = (337347-400681)² + (349773-400681)² + (362457-400681)² + (375495-400681)² + (403415-400681)² + (417913-400681)²
SCE = 4 011 000 000 + 2 592 000 000 + 1 461 000 000 + 634 000 000 + 7 000 000 + 297 000 000
SCE = 9 042 000 000
R² exponentiel = 9 042 000 000 / 141 947 280 000 ≈ 0.064
Comparaison des modèles
| Modèle | Équation | R² | Qualité d'ajustement |
|---|
| Linéaire | Y = 15 137X + 388 067 | 0.043 | Très faible |
| Quadratique | Y = -36 724X² + 159 186X + 378 155 | 0.73 | Bonne |
| Exponentielle | Y = 362 457 × e^(0.0357X) | 0.064 | Faible |
Projections 2025-2026 (X = 5 et 6)
Modèle quadratique :
- 2025 (X=5) : Y = -36724(25) + 159186(5) + 378155 = -918 100 + 795 930 + 378 155 = 255 985 €
- 2026 (X=6) : Y = -36724(36) + 159186(6) + 378155 = -1 322 064 + 955 116 + 378 155 = 11 207 €
Modèle exponentiel :
- 2025 (X=5) : Y = 362 457 × e^(0.0357×5) ≈ 362 457 × 1.195 ≈ 433 136 €
- 2026 (X=6) : Y = 362 457 × e^(0.0357×6) ≈ 362 457 × 1.238 ≈ 448 711 €
✅ Conclusion finale
Le modèle quadratique offre le meilleur ajustement (R² = 0.73) et reflète bien la tendance observée dans les données : une augmentation jusqu'en 2020-2021 suivie d'une forte diminution en 2023.
Modèle retenu : Régression polynomiale de degré 2
Équation : Y = -36 724X² + 159 186X + 378 155
Projections :
- 2025 : 255 985 €
- 2026 : 11 207 €
Ces projections montrent une continuation de la tendance à la baisse observée depuis 2023, ce qui semble cohérent avec l'évolution des données.