2024-10-21

Summary of Data

    Image               Index            Name              Type.1         
 Length:1215        Min.   :   1.0   Length:1215        Length:1215       
 Class :character   1st Qu.: 240.5   Class :character   Class :character  
 Mode  :character   Median : 495.0   Mode  :character   Mode  :character  
                    Mean   : 501.7                                        
                    3rd Qu.: 753.5                                        
                    Max.   :1025.0                                        
    Type.2              Total              HP             Attack      
 Length:1215        Min.   : 175.0   Min.   :  1.00   Min.   :  5.00  
 Class :character   1st Qu.: 332.0   1st Qu.: 52.00   1st Qu.: 57.00  
 Mode  :character   Median : 465.0   Median : 70.00   Median : 80.00  
                    Mean   : 443.1   Mean   : 71.24   Mean   : 81.15  
                    3rd Qu.: 521.0   3rd Qu.: 85.00   3rd Qu.:100.00  
                    Max.   :1125.0   Max.   :255.00   Max.   :190.00  
    Defense          SP..Atk.         SP..Def           Speed       
 Min.   :  5.00   Min.   : 10.00   Min.   : 20.00   Min.   :  5.00  
 1st Qu.: 52.00   1st Qu.: 50.00   1st Qu.: 51.00   1st Qu.: 45.00  
 Median : 70.00   Median : 65.00   Median : 70.00   Median : 68.00  
 Mean   : 75.01   Mean   : 73.22   Mean   : 72.44   Mean   : 70.03  
 3rd Qu.: 91.00   3rd Qu.: 95.00   3rd Qu.: 90.00   3rd Qu.: 91.00  
 Max.   :250.00   Max.   :194.00   Max.   :250.00   Max.   :200.00  

plotly - 3D scatter plot

Pokémon species by Attack, Defense, and Speed.

ggplot 1 - Bar Chart

ggplot 2 - Boxplot

Note that total stats represent the sum all stats.

Math Latex 1

To understand Pokémon overall strength we need the formula for the average total stats:

\(\text{Average Total Stats} = \frac{\sum \text{Total Stats}}{n}\)

where \(n\) is the number of Pokémon.

We get

\(\text{Average Total Stats} = \frac{\text{538372}}{1025} = \text{525.2409756}\)

Math Latex 2

Geting the variance of total stats lets us understand the spread of the data:

\(\text{Variance} = \frac{\sum (x_i - \mu)^2}{n}\)

where \(x_i\) represents each Pokémon’s total stats and \(\mu\) is the mean total stats.

We get \(\text{1.47e+04}\)

R code for Math Latex 1

totalStats <- sum(pokedex$Total)
n <- max(pokedex$Index)
averageTotalStats <- totalStats / n