-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
_freeze/lacrosse/college_lacrosse_faceoffs/execute-results/html.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"hash": "d3a13518c0a43a78d97d8c003e11cbc9", | ||
"result": { | ||
"markdown": "---\ntitle: \"Lacrosse Faceoff Proportions\"\ndate: February 5, 2024\ndescription: Using data from NCAA Div I lacrosse teams to explore the importance of winning faceoffs\nauthor:\n - name: Jack Fay\n affiliation:\n - id: slu\n name: St. Lawrence University\n - name: Ivan Ramler\n email: [email protected]\n affiliation:\n - ref: slu\n - name: A.J. Dykstra\n affiliation:\n - ref: slu\neditor: \n canonical: true \ncategories:\n - Hypothesis testing\n - Single proportion\n---\n\n\n### Introduction\n\nIn this engaging activity, we explore the exciting sport of NCAA Division I Lacrosse, with a special focus on faceoff percentages—a critical aspect of the game. A faceoff occurs at the start of each quarter and after every goal, where two players compete to gain possession of the ball, setting the stage for their team’s offensive play. Winning a high percentage of faceoffs is often key to controlling the game and can significantly impact a team’s overall performance.\n\n::: {.callout-note collapse=\"true\" title=\"Video Demonstrating a Faceoff\" appearance=\"minimal\"}\n\n```{=html}\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/yL1z6a96Y1w?si=ysfTXdXWc6ozJu6R\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>\n```\n\n:::\n\nOur primary goal is to compare a specific team's faceoff performance with overall league statistics for the 2022-2023 season. Through this exploration, we'll introduce you to the concept of one-sample proportion hypothesis testing, a powerful statistical tool widely used in sports analytics. By the end of this exercise, you'll gain a fundamental understanding of hypothesis testing and how it can be practically applied to evaluate team performance in lacrosse and beyond.\n\n::: {.callout-note collapse=\"true\" title=\"Activity Length\" appearance=\"minimal\"}\nThis activity would be suitable for an in-class example (of approximately 10 - 20 minutes) or can be modified to be a quiz or part of an exam.\n:::\n\n::: {.callout-note collapse=\"true\" title=\"Learning Objectives\" appearance=\"minimal\"}\n1. Comprehend the concept of one sample proportion hypothesis testing and its relevance in sports statistics.\n2. Analyze and interpret dataset variables related to faceoff percentages in NCAA Division I Lacrosse.\n3. Evaluate a specific team's faceoff performance by comparing it with league-wide statistics using hypothesis testing.\n:::\n\n::: {.callout-note collapse=\"true\" title=\"Methods\" appearance=\"minimal\"}\nStudents are expected to have been exposed to the following concepts and use the activity to reinforce their understanding of these methods.\n\n1. Basic probability and percentages.\n2. Null and alternative hypotheses.\n3. Sample size and sample proportion calculations.\n4. Success-failure condition for hypothesis testing.\n5. Calculation of test statistics (Z-score).\n6. Understanding significance levels (⍺) and p-values.\n7. Drawing conclusions and implications from hypothesis test results.\n:::\n\n### Data\n\nNote that because the activity only uses results from one team, students do not necessarily need to directly access this data. However, the activity can easily be adapted to use other teams. Instructors are encouraged to personalize the activity if they so choose.\n\nThe data set where the activities statistics come from contains 72 rows and 22 columns. Each row represents the season results for a lacrosse team at the NCAA Division 1 level from the 2022-2023 season.\n\nDownload data: [lax_2022_2023.csv](../module_resources/college_lacrosse_faceoffs/lax_2022_2023.csv)\n\n<details>\n\n<summary><b>Variable Descriptions</b></summary>\n\n| Variable | Description |\n|-----------------------|-----------------------------------------------------------------------------------------------------------------|\n| Team | college of the team |\n| avg_assists | average assists to goals per game |\n| avg_caused_turnovers | average turnovers forced by the team per game |\n| clearing_pctg | percentage of successful attempts to earn an offensive opportunity after gaining the ball in the teams own half |\n| total_faceoffs | total faceoffs taken by a team for the season |\n| faceoff_wins | total faceoff wins by a team for the season |\n| faceoff_win_pct | proportion of total faceoff wins out of total faceoffs |\n| avg_goals | average goals per game |\n| avg_goals_allowed | average goals allowed by the team per game |\n| avg_ground_balls | average loose balls picked up by the team per game |\n| man_down_defense_pctg | proportion of times a team stops the opponent from scoring while man down due to a penalty |\n| man_up_offense_pctg | proportion of times the offense scores out of total opportunities while man up |\n| avg_scoring_margin | average margin of goals per game |\n| opp_clear_pctg | opponents clearing percentage averaged by game |\n| avg_points | average team points per game |\n| avg_saves | average saves per game |\n| shot_pctg | proportion of shots that go in out of total shots |\n| avg_turnovers | average turnovers that are directly the fault of a player per game |\n| W | total wins by the team |\n| L | total losses by the team |\n| win_loss_pctg | proportion of games won out of total games |\n\n**Data Source**\n\nThe data were collected from the NCAA Website for Men's Lacrosse Division I\n\n<http://stats.ncaa.org/rankings/change_sport_year_div>\n\nInstructors interested in updating the data to a newer season can do so via the following\n\n1. Go to <http://stats.ncaa.org/rankings/change_sport_year_div>\n2. Select Men's Lacrosse, *season of choice*, Division I, Final Statistics\n3. In the \"Teams\", download each of the data tables.\n4. Read in each file, join the tables, and do some light cleaning. The code below shows an example used for the 2022-2023 season.\n\n\n::: {.cell}\n\n```{.r .cell-code code-fold=\"true\" code-summary=\"Show the code\"}\nlibrary(tidyverse)\n\n\n# reading\n# the files listed here are what\n# you will download from the site\n\nassists<- read_csv(\"assists_l.csv\", col_select = 1:2)\ncaused_turnovers<- read_csv(\"caused_turnovers_l.csv\", col_select = 1:2)\nclearing<- read_csv(\"clearing_pctg_l.csv\", col_select = 1:2)\nfo <- read_csv(\"fo_win_pctg.csv\", col_select = 1:4)\ngoals_against<- read_csv(\"goals_against.csv\", col_select = 1:2)\ngoals<- read_csv(\"goals_l.csv\", col_select = 1:2)\ngroundballs<- read_csv(\"ground_balls_l.csv\", col_select = 1:2)\nman_down <- read_csv(\"man_down_defense_l.csv\", col_select = 1:2)\nman_up <- read_csv(\"man_up__offense_l.csv\", col_select = 1:2)\nmargin <- read_csv(\"margin_l.csv\", col_select = 1:2)\nopp_clear <- read_csv(\"opp_clear_l.csv\", col_select = 1:2)\npoints <- read_csv(\"points_l.csv\", col_select = 1:2)\nsaves <- read_csv(\"saves_l.csv\", col_select = 1:2)\nshot <- read_csv(\"shot_pctg_l.csv\", col_select = 1:2)\nturnovers<- read_csv(\"turnovers_l.csv\", col_select = 1:2)\nshots_per_game <- read_csv(\"shots_per_game.csv\", col_select = 1:3)\nwin_loss <- read_csv(\"win_loss_l.csv\")\n\n# joining\n# students familiar with the purrr package could\n# use the reduce function to reduce the amount of code\n\nlax_2022_2023 <- \n left_join(assists, caused_turnovers, by = \"Team\") %>%\n left_join(clearing, by = \"Team\") %>%\n left_join(fo, by = \"Team\") %>%\n left_join(goals, by = \"Team\") %>%\n left_join(goals_against, by = \"Team\") %>%\n left_join(groundballs, by = \"Team\") %>%\n left_join(man_down, by = \"Team\") %>%\n left_join(man_up, by = \"Team\") %>%\n left_join(margin, by = \"Team\") %>%\n left_join(opp_clear, by = \"Team\") %>%\n left_join(points, by = \"Team\") %>%\n left_join(saves, by = \"Team\") %>%\n left_join(shot, by = \"Team\") %>%\n left_join(turnovers, by = \"Team\") %>%\n left_join(shots_per_game, by = \"Team\") %>%\n left_join(win_loss, by = \"Team\")\n\n# cleaning\nlax_2022_2023 <- lax_2022_2023 %>%\n separate(Team, into = c(\"Team\",\"Conference\"), sep = \"\\\\(\", extra = \"merge\")%>%\n mutate(Conference = str_remove_all(Conference,\"\\\\)\"),\n Team = str_trim(Team))%>%\n mutate(shots_per_game = Shots/Games)%>%\n select(-20, -21)\n\n# saving\nwrite_csv(x = lax_2022_2023, file = \"lax_2022_2023.csv\")\n```\n:::\n\n\n</details>\n\n### Materials\n\n[Class handout](../module_resources/college_lacrosse_faceoffs/single_prop_wksht.docx)\n\n[Class handout - with solutions](../module_resources/college_lacrosse_faceoffs/single_prop_wksht_key.docx)\n\n::: {.callout-note collapse=\"true\" title=\"Conclusion\" appearance=\"minimal\"}\nIn this insightful exploration of NCAA Division I Lacrosse faceoff percentages, we have embarked on a statistical journey to evaluate a specific team's performance in comparison to league-wide statistics. Through the application of one sample proportion hypothesis testing, we gained valuable insights into the team's faceoff win percentage, unveiling strong evidence that their performance exceeded what we would expect by random chance alone. As we consider the broader implications of faceoffs in Division I Lacrosse, it becomes evident that faceoff wins play a pivotal role in team rankings and outcomes. The fact that Duke, the second-best team in the country, exhibited a faceoff win percentage above the league average highlights the significance of excelling in this aspect of the game. Winning faceoffs likely translates to higher goal-scoring opportunities, ultimately leading to more successful game outcomes.\n:::\n", | ||
"supporting": [], | ||
"filters": [ | ||
"rmarkdown/pagebreak.lua" | ||
], | ||
"includes": {}, | ||
"engineDependencies": {}, | ||
"preserve": {}, | ||
"postProcess": true | ||
} | ||
} |
Oops, something went wrong.