Math Summative Test

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 14

To perform a linear regression analysis, we'll use Python with the `pandas` library for data manipulation and

the `sta

```python
import pandas as pd
import statsmodels.api as sm

# Load the dataset


data = {
"Name": ["Luxray", "Emolga", "Scizor", "Rhydon", "Castform", "Huntail", "Archeops", "Budew", "Noibat", "Regiroc
"Type 1": ["Electric", "Electric", "Bug", "Ground", "Normal", "Water", "Rock", "Grass", "Flying", "Rock", "Grass", "P
"Type 2": ["", "Flying", "Steel", "Rock", "", "", "Flying", "Poison", "Dragon", "", "", "", "", "Flying", "Electric", "", "Ste
"Total": [523, 428, 500, 485, 420, 485, 567, 280, 245, 580, 180, 425, 500, 370, 471, 445, 424, 328, 495, 300, 380, 5
"HP": [80, 55, 70, 105, 70, 55, 75, 40, 40, 80, 30, 65, 55, 70, 109, 103, 60, 60, 74, 50, 55, 75, 50, 95, 50, 45, 59, 71,
or data manipulation and the `statsmodels` library for regression analysis. First, we'll load the dataset and then proceed with t

ops", "Budew", "Noibat", "Regirock", "Sunkern", "Chimecho", "Alakazam", "Vullaby", "Stunfisk", "Audino", "WormadamTrash Cl
rass", "Flying", "Rock", "Grass", "Psychic", "Psychic", "Dark", "Ground", "Normal", "Bug", "Ground", "Water", "Rock", "Rock", "G
"", "", "Flying", "Electric", "", "Steel", "", "Rock", "Ground", "Grass", "", "", "", "", "", "", "", "Rock", "", "", "", "", "", "", "Flying", "
1, 445, 424, 328, 495, 300, 380, 540, 405, 490, 316, 300, 409, 500, 430, 490, 525, 495, 420, 700, 320, 405, 250, 468, 535, 450, 6
50, 55, 75, 50, 95, 50, 45, 59, 71, 60, 70, 65, 80,
e dataset and then proceed with the analysis:

", "Audino", "WormadamTrash Cloak", "Drilbur", "Carracosta", "Larvitar", "Swadloon", "Magmortar", "Grovyle", "Bouffalant", "
und", "Water", "Rock", "Rock", "Grass", "Fire", "Grass", "Normal", "Grass", "Dragon", "Fire", "Water", "Steel", "Psychic", "Electr
ock", "", "", "", "", "", "", "Flying", "Poison", "Dark", "", "Flying", "", "Dark", "Flying", "", "", "Ground", "Flying", "", "", "Water", "St
00, 320, 405, 250, 468, 535, 450, 680, 465, 485, 275, 310, 630, 500, 305, 295, 300, 480, 410, 250, 244, 600, 475, 360, 329, 330, 4
mortar", "Grovyle", "Bouffalant", "Pansage", "Goomy", "Braixen", "Clawitzer", "Lairon", "Gothitelle", "Jolteon", "Omastar", "Wa
Water", "Steel", "Psychic", "Electric", "Rock", "Normal", "Water", "Fire", "Normal", "Poison", "Dark", "Water", "Psychic", "Flying
und", "Flying", "", "", "Water", "Steel", "", "", "Ice", "", "", "", "", "", "", "", "Fire", "Ground", "Grass", "Psychic", "", "", "", "Fightin
50, 244, 600, 475, 360, 329, 330, 480, 308, 350, 355, 335, 285, 475, 580, 365, 680, 530, 365, 600, 263, 315, 405, 700, 470, 335,
telle", "Jolteon", "Omastar", "Watchog", "LatiasMega Latias", "Psyduck", "Monferno", "Bidoof", "Whiscash", "Crobat", "Seaking
"Dark", "Water", "Psychic", "Flying", "Water", "Dragon", "Water", "Poison", "Normal", "Flying", "Fire", "Normal", "Ice", "Bug", "
rass", "Psychic", "", "", "", "Fighting", "", "", "", "Dragon", "Ground", "Poison", "", "", "", "Rock", "Flying", "Grass", "Fire", "Flying
00, 263, 315, 405, 700, 470, 335, 490, 405, 255, 295, 505, 499, 515, 245, 485, 405, 700, 80, 460, 200, 410, 680],
f", "Whiscash", "Crobat", "Seaking", "HoopaHoopa Unbound", "Mantine", "Gorebyss", "Lillipup", "Doduo", "BlazikenMega Blazi
", "Fire", "Normal", "Ice", "Bug", "Steel", "Water", "Grass", "Water", "Rock", "Ghost", "Fighting", "Water", "Psychic", "Electric",
", "Flying", "Grass", "Fire", "Flying", "Normal", "", "", "Ground", "Ice", "", "Grass", "", "", "", "Fighting", "Ground", "Rock", "Fire",
0, 200, 410, 680],
p", "Doduo", "BlazikenMega Blaziken", "Stoutland", "Venonat", "Horsea", "Croagunk", "Lopunny", "Ponyta", "Swinub", "Combe
g", "Water", "Psychic", "Electric", "Normal", "Grass", "Dark", "Fire", "Normal", "Poison", "Ice", "Rock", "Bug", "Psychic", "Electric
ghting", "Ground", "Rock", "Fire", "Dark", "", "Rock", "Dragon", "Ice"],
nny", "Ponyta", "Swinub", "Combee", "Jirachi", "Dewgong", "Spinda", "Stunky", "Clauncher", "Ludicolo", "Oshawott", "Shieldon
"Rock", "Bug", "Psychic", "Electric", "Normal", "Grass", "Dark", "Fire", "Poison", "Normal", "Ghost", "Grass", "Rock", "Fighting",
Ludicolo", "Oshawott", "Shieldon", "Kabuto", "PumpkabooSuper Size", "Riolu", "Gastrodon", "TornadusTherian Forme", "Flaaff
host", "Grass", "Rock", "Fighting", "Bug", "Ghost", "Water", "Electric", "Normal", "Grass", "Dark", "Ground", "Ghost", "Ghost", "
"TornadusTherian Forme", "Flaaffy", "Palkia", "Feraligatr", "Nidorino", "Genesect", "Shinx", "Darumaka", "Minun", "KyuremBla
rk", "Ground", "Ghost", "Ghost", "Fire", "Ground", "Water", "Fire", "Water"],
Darumaka", "Minun", "KyuremBlack Kyurem", "Grumpig", "Tentacool", "Sigilyph", "Eelektrik", "Patrat", "Shroomish", "Honchkro
"Patrat", "Shroomish", "Honchkrow", "Talonflame", "Lickilicky", "Zubat", "Beartic", "Prinplup", "Banette", "Lilligant", "Pupitar",
, "Banette", "Lilligant", "Pupitar", "Terrakion", "Shedinja", "Dusclops", "Lampent", "Machamp", "GroudonPrimal Groudon", "Sh
", "GroudonPrimal Groudon", "Sharpedo", "Feebas", "Magcargo", "Dialga"],

You might also like