class: center, middle, inverse, title-slide # Olympics: Cash, Climate, and Champions ## Effect of GDP and Temperature on Medal Count ### Amy Townend, Sam Simmons, Dylan Williams ### Bates College ### 2022-04-23 --- class: inverse, center ## Introduction .pull-left[ * In the 2022 Olympics, there were 91 countries and 109 gold medals awarded. * No athlete from a tropical country has ever won a medal in the Winter Olympics(crazy right?) * Don't believe us? https://olympics.com/en/news/which-tropical-nation-will-win-an-olympic-winter-games-medal * Olympians earn sponsorship from their athletic achievements which allow them to train * With better training facilities and/or climate, do they have a better chance at a medal? ] .pull-right[ <img src="img/coolrunnings.jpg" title="Cool Runnings Movie Poster" alt="Cool Runnings Movie Poster" width="600" height="400" style="display: block; margin: auto 0 auto auto;" /> .footnote[ ####Cool Runnings Movie(1993) ] ] --- class: inverse, center ## Data Information .pull-left[ * Pulled from Kaggle databases, was updated with medal count every other day as Olympics went on * Used WorldBank to get most accurate and recent GDP information * Summarized climate data by averaging temperature from past 4 years * Population was from most recent census data(2020) * We selected the 22 countries with the highest medal count for our analysis ] .pull-right[ <img src="img/medalspic.jpg" title="Three medals, one gold, one silver, one bronze" alt="Three medals, one gold, one silver, one bronze" width="600" height="350" style="display: block; margin: auto 0 auto auto;" /> ] .footnote[ ###### Image: Olympic Medals ] --- class: inverse, center #Where our Data Comes From: .pull-center[
] .pull-left[ * A lot of our data comes from Europe * Causes a bias in our analysis ] --- class: center ======= {r world map, echo=FALSE, fig.align='center', warning=FALSE, out.width="70%", fig.alt="World map with circles showing countries in data set"} background-image: url(https://cdn.britannica.com/90/198290-050-12A37C4E/Alberto-Tomba-gold-medal-way-Mens-Giant-1992.jpg?q=60) <span role="img3" aria-label="Slide background shows: Man alpine skiing at the Winter Olympics."></span> .pull-center[ #Analysis: Medals per Country ] --- class: inverse, center ##Medals Per Country .pull-center[ <img src="presentation_files/figure-html/medals_p-1.png" title="Stacked bar plot showing total number of metals per country divided into gold, silver and bronze" alt="Stacked bar plot showing total number of metals per country divided into gold, silver and bronze" width="70%" style="display: block; margin: auto;" /> ] --- class: center ======= {r figure skater, echo = FALSE, warning = FALSE, out.width="70%", fig.align = 'center', echo=FALSE, fig.alt= "Slide background shows: Olympic Figure Skater"} background-image: url(https://img.olympicchannel.com/images/image/private/t_16-9_1240-700_15x/f_auto/v1538355600/primary/tawjra46vluaxhirp3om) <span role="img4" aria-label="Slide background shows: Woman figure skating in a purple costume."></span> .pull-center[ #Regression: Looking at the Numbers ] --- class: inverse, center ## Regression .pull-center[ * Our regression function of how the average GDP of a country will affect its gold medal chances are as follows, * `\(\hat{Total_i} = 9.04 + 2207374* {AvgGDP_i} + 9496.5 * NumAthletes - 49.15 * AvgTemp - 649927000 * Population\)` * Our R^2 value was 0.5863096! ] ``` ## # A tibble: 5 × 5 ## term estimate std.error statistic p.value ## <chr> <dbl> <dbl> <dbl> <dbl> ## 1 (Intercept) 9.04e+0 5.97 1.51 0.148 ## 2 Avg_GDP 2.21e-7 0.000000624 0.354 0.728 ## 3 Num_Athletes 9.50e-2 0.0395 2.40 0.0280 ## 4 Avg_Temp -4.92e-1 0.377 -1.30 0.210 ## 5 Population -6.50e-9 0.00000000788 -0.825 0.421 ``` ``` ## [1] 0.5863096 ``` --- class: center {r skier, echo = FALSE, warning = FALSE, out.width="70%", fig.align = 'center', echo=FALSE, fig.alt= "Slide background shows: Recreational Alpine Skier"} background-image: url(https://images.unsplash.com/photo-1565992441121-4367c2967103?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8c2tpfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=600&q=60) <span role="img3" aria-label="Slide background shows: Man freestyle skiing in mid-jump."></span> .pull-center[ #Athlete per capita vs Total Medals ] --- class: inverse, center ## Population vs Athletes <img src="presentation_files/figure-html/athletesVSpopulation-1.png" width="80%" /> --- class: center background-image: url(https://olympics.nbcsports.com/wp-content/uploads/sites/10/2022/02/GettyImages-1371324086.jpg <span role="img5" aria-label="Slide background shows: Woman curling at the Winter Olympics"></span> {r curling, echo = FALSE, warning = FALSE, out.width="70%", fig.align = 'center', echo=FALSE, fig.alt= "Slide background shows: Olympic Curling Image"} background-image: url(https://olympics.nbcsports.com/wp-content/uploads/sites/10/2022/02/GettyImages-1371324086.jpg class: center .pull-center[ #Medal Counts ] --- class: inverse, center ###Further analysis, showing medal counts <img src="presentation_files/figure-html/sam2nd-1.png" width="80%" /> ``` ## List of 93 ## $ line :List of 6 ## ..$ colour : chr "black" ## ..$ size : num 0.5 ## ..$ linetype : num 1 ## ..$ lineend : chr "butt" ## ..$ arrow : logi FALSE ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_line" "element" ## $ rect :List of 5 ## ..$ fill : chr "white" ## ..$ colour : chr "black" ## ..$ size : num 0.5 ## ..$ linetype : num 1 ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_rect" "element" ## $ text :List of 11 ## ..$ family : chr "" ## ..$ face : chr "plain" ## ..$ colour : chr "black" ## ..$ size : num 11 ## ..$ hjust : num 0.5 ## ..$ vjust : num 0.5 ## ..$ angle : num 0 ## ..$ lineheight : num 0.9 ## ..$ margin : 'margin' num [1:4] 0points 0points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : logi FALSE ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ title : NULL ## $ aspect.ratio : NULL ## $ axis.title : NULL ## $ axis.title.x :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 1 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 2.75points 0points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.title.x.top :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 0 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 2.75points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.title.x.bottom : NULL ## $ axis.title.y :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 1 ## ..$ angle : num 90 ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 2.75points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.title.y.left : NULL ## $ axis.title.y.right :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 0 ## ..$ angle : num -90 ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 0points 2.75points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.text :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : chr "grey30" ## ..$ size : 'rel' num 0.8 ## ..$ hjust : NULL ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.text.x :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 1 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 2.2points 0points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.text.x.top :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : num 0 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 2.2points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.text.x.bottom : NULL ## $ axis.text.y :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : num 1 ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 2.2points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.text.y.left : NULL ## $ axis.text.y.right :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : num 0 ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 0points 2.2points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ axis.ticks : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ axis.ticks.x : NULL ## $ axis.ticks.x.top : NULL ## $ axis.ticks.x.bottom : NULL ## $ axis.ticks.y : NULL ## $ axis.ticks.y.left : NULL ## $ axis.ticks.y.right : NULL ## $ axis.ticks.length : 'simpleUnit' num 2.75points ## ..- attr(*, "unit")= int 8 ## $ axis.ticks.length.x : NULL ## $ axis.ticks.length.x.top : NULL ## $ axis.ticks.length.x.bottom: NULL ## $ axis.ticks.length.y : NULL ## $ axis.ticks.length.y.left : NULL ## $ axis.ticks.length.y.right : NULL ## $ axis.line : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ axis.line.x : NULL ## $ axis.line.x.top : NULL ## $ axis.line.x.bottom : NULL ## $ axis.line.y : NULL ## $ axis.line.y.left : NULL ## $ axis.line.y.right : NULL ## $ legend.background : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ legend.margin : 'margin' num [1:4] 5.5points 5.5points 5.5points 5.5points ## ..- attr(*, "unit")= int 8 ## $ legend.spacing : 'simpleUnit' num 11points ## ..- attr(*, "unit")= int 8 ## $ legend.spacing.x : NULL ## $ legend.spacing.y : NULL ## $ legend.key : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ legend.key.size : 'simpleUnit' num 1.2lines ## ..- attr(*, "unit")= int 3 ## $ legend.key.height : NULL ## $ legend.key.width : NULL ## $ legend.text :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : 'rel' num 0.8 ## ..$ hjust : NULL ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ legend.text.align : NULL ## $ legend.title :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : num 0 ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ legend.title.align : NULL ## $ legend.position : chr "right" ## $ legend.direction : NULL ## $ legend.justification : chr "center" ## $ legend.box : NULL ## $ legend.box.just : NULL ## $ legend.box.margin : 'margin' num [1:4] 0cm 0cm 0cm 0cm ## ..- attr(*, "unit")= int 1 ## $ legend.box.background : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ legend.box.spacing : 'simpleUnit' num 11points ## ..- attr(*, "unit")= int 8 ## $ panel.background : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ panel.border : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ panel.spacing : 'simpleUnit' num 5.5points ## ..- attr(*, "unit")= int 8 ## $ panel.spacing.x : NULL ## $ panel.spacing.y : NULL ## $ panel.grid :List of 6 ## ..$ colour : chr "grey92" ## ..$ size : NULL ## ..$ linetype : NULL ## ..$ lineend : NULL ## ..$ arrow : logi FALSE ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_line" "element" ## $ panel.grid.major : NULL ## $ panel.grid.minor :List of 6 ## ..$ colour : NULL ## ..$ size : 'rel' num 0.5 ## ..$ linetype : NULL ## ..$ lineend : NULL ## ..$ arrow : logi FALSE ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_line" "element" ## $ panel.grid.major.x : NULL ## $ panel.grid.major.y : NULL ## $ panel.grid.minor.x : NULL ## $ panel.grid.minor.y : NULL ## $ panel.ontop : logi FALSE ## $ plot.background : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ plot.title :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : 'rel' num 1.2 ## ..$ hjust : num 0 ## ..$ vjust : num 1 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 5.5points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ plot.title.position : chr "panel" ## $ plot.subtitle :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : num 0 ## ..$ vjust : num 1 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 0points 0points 5.5points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ plot.caption :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : 'rel' num 0.8 ## ..$ hjust : num 1 ## ..$ vjust : num 1 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 5.5points 0points 0points 0points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ plot.caption.position : chr "panel" ## $ plot.tag :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : 'rel' num 1.2 ## ..$ hjust : num 0.5 ## ..$ vjust : num 0.5 ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ plot.tag.position : chr "topleft" ## $ plot.margin : 'margin' num [1:4] 5.5points 5.5points 5.5points 5.5points ## ..- attr(*, "unit")= int 8 ## $ strip.background : list() ## ..- attr(*, "class")= chr [1:2] "element_blank" "element" ## $ strip.background.x : NULL ## $ strip.background.y : NULL ## $ strip.placement : chr "inside" ## $ strip.text :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : chr "grey10" ## ..$ size : 'rel' num 0.8 ## ..$ hjust : NULL ## ..$ vjust : NULL ## ..$ angle : NULL ## ..$ lineheight : NULL ## ..$ margin : 'margin' num [1:4] 4.4points 4.4points 4.4points 4.4points ## .. ..- attr(*, "unit")= int 8 ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ strip.text.x : NULL ## $ strip.text.y :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : NULL ## ..$ angle : num -90 ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## $ strip.switch.pad.grid : 'simpleUnit' num 2.75points ## ..- attr(*, "unit")= int 8 ## $ strip.switch.pad.wrap : 'simpleUnit' num 2.75points ## ..- attr(*, "unit")= int 8 ## $ strip.text.y.left :List of 11 ## ..$ family : NULL ## ..$ face : NULL ## ..$ colour : NULL ## ..$ size : NULL ## ..$ hjust : NULL ## ..$ vjust : NULL ## ..$ angle : num 90 ## ..$ lineheight : NULL ## ..$ margin : NULL ## ..$ debug : NULL ## ..$ inherit.blank: logi TRUE ## ..- attr(*, "class")= chr [1:2] "element_text" "element" ## - attr(*, "class")= chr [1:2] "theme" "gg" ## - attr(*, "complete")= logi TRUE ## - attr(*, "validate")= logi TRUE ``` --- {r hockey, echo = FALSE, warning = FALSE, out.width="70%", fig.align = 'center', echo=FALSE, fig.alt= "Slide background shows: Olympic Hockey Game Scoring Goal"} background-image: url(https://i.guim.co.uk/img/media/cf1422c8bb2370cb5a476ca1a3e36239c45b0e7b/0_103_5042_3026/master/5042.jpg?width=620&quality=45&auto=format&fit=max&dpr=2&s=1a4fd633120584d2d3fb5887b12806ff) .pull-center[ #Temperature vs Medal Count ] --- class: inverse, center #Heatmap: Temperature vs Medal counts <img src="presentation_files/figure-html/heat-map-1.png" width="80%" /> --- class: inverse, center ###What our Goals were .pull-center[ * Hypothesis: Olympians who live in a warmer climate or receive less funding are less likely to get attention or achieve good results * Goal 1: Investigate for a correlation between both average temperature and medal count * Goal 2: Investigate for a correlation between GDP and medal count ] What we Achieved .pull-center[ * R^2 is estimated to be 1, which would estimate perfect estimation of the variability around the dependent variable. * Heat map shows possibility of temperature and medals correlation * Seems unlikely that we would have perfect R^2, more regressions needed ] <img src="img/question.jpg" title="Red question mark and white man" alt="Red question mark and white man" width="300" height="200" style="display: block; margin: auto 0 auto auto;" /> --- class: inverse, center .pull-center[ #Future Research * Add more countries from different regions * Group sports into bigger categories * Observe temperatures from a wider range of years * Look into economic downturns vs Olympic years * Compare Summer vs Winter impacts of temperature ] .pull-center[ <img src="img/italy.jpg" title="Snowy mountain in Italy" alt="Snowy mountain in Italy" width="600" height="400" style="display: block; margin: auto 0 auto auto;" /> .footnote[ ####Mountain in Cortina d'Ampezzo ] ]