Does Size Matter?

Kayla Thurman
3 min readFeb 4, 2021

Now I know what you’re thinking…. “Of course size matters Kayla!”, but does it really?

In the world of Pokémon I wanted to see if the size of Legendary Pokémon had any relationship to their attack power.

I started with the Pokémon dataset from kaggle: https://www.kaggle.com/rounakbanik/pokemon.

This data set is a collection of 801 Pokémon and all their stats. We won’t be working with most of the features in this dataset but let’s see how big it actually is.

Yikes! That’s a lot of info to work with…. How about we just work with the top of the top…. the Legendary! The Legendary Pokémon are very rare and very powerful Pokémon.

Now that we have our Pokémon narrowed let’s narrow our features to only those that we really need. Let’s also clean up the appearance of our table and sort our Pokémon by type. Pokémon can have up to two ‘types’ which are given based off the Pokémon and their attacks. For this test we are only going to use and sort by the first ‘type’ the Pokémon are classified as. Now we have some nice tidy data.

So now out of curiosity let’s see the percentage of each ‘type’ of Pokémon. Can you guess what type is the most common among Legendary? My guess was water.

I can honestly say that I am not surprised at the top type. I was however surprised that there are SOO many different types of Legendary Pokémon.

So now let’s hypothesize….

Our null hypothesis is that there is no relationship between size and attack power.

Our alternative is that there is a relationship between size and attack power.

I used a linear regression model to test this hypothesis:

Now if there is truly a linear relationship between size and attack, we should be able to predict the attack power of a Pokémon with a height of 1.5 meters.

Wow that is way off… let’s graph it just to make sure…

We also check our p-value which is 0.008. Since this p-value is less than 0.05 we fail to reject the null hypothesis that there is no relationship between height and attack power.

This graph shows our data with a 95% confidence interval. It is apparent that there is no linear relationship between height and attack power.

So no SIZE DOEN’T MATTER.

Thanks for reading!

Checkout my full notebook at: https://colab.research.google.com/drive/1NOH8m2sWEpKdeUkKsJJ6ZMgYnZTIeFn3?usp=sharing

--

--

Kayla Thurman
0 Followers

Current Data Science student at Lambda School aspiring to work with an assistive tech company.