Skip to content

Commit 8ade5c2

Browse files
committed
Adding blackjack module
1 parent cad527e commit 8ade5c2

File tree

9 files changed

+232
-7
lines changed

9 files changed

+232
-7
lines changed

_freeze/baseball/mlb_injuries/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/mixed_martial_arts/mma_interrater_reliability/index/execute-results/html.json

Lines changed: 21 additions & 0 deletions
Large diffs are not rendered by default.
50.1 KB
Loading

_freeze/robotics/FIRST_Robotics_Competition/index/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.tabwid {
2+
font-size: initial;
3+
padding-bottom: 1em;
4+
}
5+
6+
.tabwid table{
7+
border-spacing:0px !important;
8+
border-collapse:collapse;
9+
line-height:1;
10+
margin-left:auto;
11+
margin-right:auto;
12+
border-width: 0;
13+
border-color: transparent;
14+
caption-side: top;
15+
}
16+
.tabwid-caption-bottom table{
17+
caption-side: bottom;
18+
}
19+
.tabwid_left table{
20+
margin-left:0;
21+
}
22+
.tabwid_right table{
23+
margin-right:0;
24+
}
25+
.tabwid td, .tabwid th {
26+
padding: 0;
27+
}
28+
.tabwid a {
29+
text-decoration: none;
30+
}
31+
.tabwid thead {
32+
background-color: transparent;
33+
}
34+
.tabwid tfoot {
35+
background-color: transparent;
36+
}
37+
.tabwid table tr {
38+
background-color: transparent;
39+
}
40+
.katex-display {
41+
margin: 0 0 !important;
42+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
document.addEventListener("DOMContentLoaded", function(event) {
2+
var els = document.querySelectorAll(".tabwid");
3+
var tabwid_link = document.querySelector('link[href*="tabwid.css"]')
4+
if (tabwid_link === null) {
5+
const tabwid_styles = document.evaluate("//style[contains(., 'tabwid')]", document, null, XPathResult.ANY_TYPE, null );
6+
tabwid_link = tabwid_styles.iterateNext();
7+
}
8+
9+
Array.prototype.forEach.call(els, function(template) {
10+
const dest = document.createElement("div");
11+
template.parentNode.insertBefore(dest, template.nextSibling)
12+
dest.setAttribute("class", "flextable-shadow-host");
13+
const fantome = dest.attachShadow({mode: 'open'});
14+
fantome.appendChild(template);
15+
if (tabwid_link !== null) {
16+
fantome.appendChild(tabwid_link.cloneNode(true));
17+
}
18+
});
19+
20+
const shadowHosts = document.querySelectorAll('.flextable-shadow-host:not(:has(div > table.no-shadow-dom))');
21+
shadowHosts.forEach(host => {
22+
if (host.shadowRoot) {
23+
const spanElements = host.shadowRoot.querySelector('div > table > caption > span[id]');
24+
if (spanElements) {
25+
const id = spanElements.getAttribute("id");
26+
host.setAttribute("id", id);
27+
}
28+
}
29+
});
30+
31+
});

_freeze/tennis/Teaching_ANOVA_Through_Aces/index/execute-results/html.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"hash": "5dbe77cc56be3bea1098a01abd7ca465",
2+
"hash": "1ed3cc974faaa1f34bb4960b87c5d4b3",
33
"result": {
44
"engine": "knitr",
5-
"markdown": "---\ntitle: \"Linear Regression with Categorical Variables and ANOVA: Ace Rates in Tennis by Surface\"\nformat: html\ndate: January 22, 2025\ndescription: Using tennis to teach ANOVA and linear regression with categorical variables\neditor: \n canonical: true\ncategories:\n - ANOVA\n - Tennis\noutput: \n learnr::tutorial:\n progressive: TRUE\n---\n\n\n\n\n\n\n## Welcome\n\nAn accompanying worksheet for instructors is available [here](https://github.com/nick3703/WP_SCORE/raw/main/external_submissions/Tennis/Tennis_Ace_Rate_Worksheet_Version_forInstructors.docx)\n\nA worksheet for students to follow is available [here](https://github.com/nick3703/WP_SCORE/raw/main/external_submissions/Tennis/Tennis_Ace_Rate_Worksheet_Version_forStudents.docx) \n\nThis module is interactive and can be accessed [here]( https://github.com/zbinney/SCORE_Tennis_Linear_Regression_ANOVA)\n\n\n### Authors\n\nZachary O. Binney, PhD MPH and Heyi Yang\n\nOxford College of Emory University",
6-
"supporting": [],
5+
"markdown": "---\ntitle: \"Linear Regression with Categorical Variables and ANOVA: Ace Rates in Tennis by Surface\"\nauthor:\n - name: Zachary O. Binney\n affiliation:\n - id: emory\n name: Oxford College of Emory University\n - name: Heyi Yang\n affiliation:\n - ref: emory\nformat: html\ndate: January 22, 2025\ndescription: Using tennis to teach ANOVA and linear regression with categorical variables\neditor: \n canonical: true\ncategories:\n - ANOVA\n - Tennis\noutput: \n learnr::tutorial:\n progressive: TRUE\n---\n\n\n\n\n\n\n\n## Welcome\n\nAn accompanying worksheet for instructors is available [here](https://github.com/nick3703/WP_SCORE/raw/main/external_submissions/Tennis/Tennis_Ace_Rate_Worksheet_Version_forInstructors.docx)\n\nA worksheet for students to follow is available [here](https://github.com/nick3703/WP_SCORE/raw/main/external_submissions/Tennis/Tennis_Ace_Rate_Worksheet_Version_forStudents.docx) \n\nThis module is interactive and can be accessed [here]( https://github.com/zbinney/SCORE_Tennis_Linear_Regression_ANOVA)\n\n\n## Authors\n\nZachary O. Binney, PhD MPH and Heyi Yang\n\nOxford College of Emory University\n\n\n## How to Cite\n\nIf you use this module in your work, please cite it as follows:\n\nBinney, Z., & Yang, H. (2025, January 22). Linear Regression with Categorical Variables and ANOVA: Ace Rates in Tennis by Surface. \"The SCORE Network.\" <https://doi.org/10.17605/OSF.IO/UA9XP>\n\nYou can include this citation directly in your references or bibliography.\n\n",
6+
"supporting": [
7+
"index_files"
8+
],
79
"filters": [
810
"rmarkdown/pagebreak.lua"
911
],

games/BlackJack/index.qmd

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
title: "BlackJack Logistic Regression"
3+
author:
4+
- name: Andrew Tran
5+
affiliation:
6+
- id: wp
7+
name: West Point
8+
- name: Nicholas Clark
9+
10+
affiliation:
11+
- ref: wp
12+
date: "July 23, 2025"
13+
description: "An Introduction to Logistic Regression Using BlackJack"
14+
editor:
15+
canonical: true
16+
categories:
17+
- Logistic Regression
18+
- Binary Data
19+
---
20+
21+
## Module
22+
23+
Please note that these material have not yet completed the required pedagogical and industry peer-reviews to become a published module on the SCORE Network. However, instructors are still welcome to use these materials if they are so inclined.
24+
25+
26+
This module is available on the ISLE platform [BlackJack Module](https://isle.stat.cmu.edu/SCORE/Blackjack/)
27+
28+
29+
### How to Cite
30+
31+
If you use this module in your work, please cite it as follows:
32+
33+
Tran, A. and Clark, N. (2025, July 25). Blackjack Logistic Regression. "The SCORE Network." <https://doi.org/10.17605/OSF.IO/M4WV7>
34+
35+
You can include this citation directly in your references or bibliography.
36+
37+
38+
<!-- ### Introduction -->
39+
40+
<!-- #### The NBA Draft -->
41+
42+
<!-- Each year, the National Basketball Association (NBA) holds a [draft](https://www.bbc.co.uk/newsround/65997816){target="_blank"}, where prospective basketball players are able to be chosen to join one of the 30 professional teams across the United States and Canada. -->
43+
44+
<!-- In order to be eligible for the draft, a player must be at least 19 years old and out of high school for at least one year. Prior to 2006, this rule was not in effect, and players could be drafted during/right out of high school. -->
45+
46+
<!-- The draft is comprised of 60 players and takes place over two rounds of 30 selections. Teams pick players in an order based on performance from the previous season, with teams that performed poorly getting earlier picks in order to create a seemingly more level playing field. It's important to note that there weren't always 30 players selected in each round, the number made its way up to 30 as more teams were added into the NBA. -->
47+
48+
<!-- #### Playing Basketball -->
49+
50+
<!-- The goal in basketball is to score as many points as possible by throwing the ball through the other team's hoop. -->
51+
52+
<!-- In the middle of [the court](https://en.wikipedia.org/wiki/Basketball_court){target="_blank"} there is a half-court line that divides the two sides. On both sides, surrounding the hoops, there is an arch called the three-point line. Within the three-point line stands the free-throw line, where a player would shoot from should there be a foul called. -->
53+
54+
<!-- **Scoring** -->
55+
56+
<!-- Players can shoot towards the hoop from any point on the court. A different number of points is awarded based on where the player is standing when they release the ball. The three shots are explained below. -->
57+
58+
<!-- - Field Goal: Worth 2 points, scored by shooting within the three point line -->
59+
<!-- - Three Pointer: Worth 3 points, scored by shooting outside the three point line. -->
60+
<!-- - Free Throw: Worth one point, taken from the free throw line after a foul. -->
61+
62+
<!-- A rebound is when a player from the team that is on defense obtains the ball after the other team takes a shot attempt at the hoop. At the end of the game, which is played in four twelve-minute quarters, the team with the most points wins. -->
63+
64+
<!-- ::: {.callout-note collapse="true" title="Learning Objectives" appearance="minimal"} -->
65+
<!-- By the end of this activity, you will: -->
66+
67+
<!-- 1. Further understand the different components of a one-way ANOVA test and how to solve for them. -->
68+
69+
<!-- 2. Be able to explain the significance of the F-statistic and the implications it has on the result of the ANOVA test -->
70+
71+
<!-- 3. Become proficient in ability to interpret the results of an ANOVA test in context and apply it to real world examples. -->
72+
<!-- ::: -->
73+
74+
<!-- ::: {.callout-note collapse="true" title="Methods" appearance="minimal"} -->
75+
<!-- Students should have prior knowledge of conducting one-way analysis of variance tests and the implications. Students should be able to explain the different components of an ANOVA table as well as familiarity with the formulas necessary to complete the table. -->
76+
<!-- ::: -->
77+
78+
<!-- ::: {.callout-note collapse="true" title="Technology Requirements" appearance="minimal"} -->
79+
<!-- No explicit technology is necessary, although a calculator is recommended. -->
80+
<!-- ::: -->
81+
82+
<!-- ### Data -->
83+
84+
<!-- The `nba_draft` data set includes data from players that were selected in the NBA drafts between the years 1990-2021. Each row represents a different player and statistics from their respective careers in the NBA, some of which are still ongoing. -->
85+
86+
<!-- <details> -->
87+
88+
<!-- <summary><b>Variable Descriptions</b></summary> -->
89+
90+
<!-- | Variable | Description | -->
91+
<!-- |-------------------|----------------------------------------------------------------------------------------------------------------------| -->
92+
<!-- | draft_pick | The pick number a player was selected in the NBA draft | -->
93+
<!-- | team | The NBA team that drafted the player | -->
94+
<!-- | player_name | The name of the player selected | -->
95+
<!-- | college | The college the player attended (NA for those drafted out of high school, G-League team for international prospects) | -->
96+
<!-- | years_played | Number of years spent in the NBA | -->
97+
<!-- | games_played | Games played in the NBA | -->
98+
<!-- | total_mins_played | Total minutes played in the NBA | -->
99+
<!-- | total_pts | Total points scored in the NBA | -->
100+
<!-- | total_rebounds | Total rebounds grabbed in the NBA | -->
101+
<!-- | total_assists | Total assists recorded in the NBA | -->
102+
<!-- | fg_percent | The percent of field goal shots made by the player in the NBA | -->
103+
<!-- | three_pt_percent | The percent of three-point shots made by the player in the NBA | -->
104+
<!-- | ft_percent | The percent of free throws made by the player in the NBA | -->
105+
<!-- | draft_year | Year the player was drafted | -->
106+
<!-- | mins_per_game | Average number of minutes played per game for career in the NBA | -->
107+
<!-- | pts_per_game | Average number of points scored per game for career in the NBA | -->
108+
<!-- | rebounds_per_game | Average number of rebounds per game for career in the NBA | -->
109+
<!-- | assists_per_game | Average number of assists per game for career in the NBA | -->
110+
<!-- | round_picked | Indicates the round the player was selected (either round 1 or round 2) | -->
111+
<!-- | pick_in_round | Indicates the order in which players were selected in that round | -->
112+
113+
<!-- </details> -->
114+
115+
<!-- Download [nba_draft.csv](nba_draft.csv){target="_blank"} -->
116+
117+
<!-- #### Data Source -->
118+
119+
<!-- This data is sourced from [Kaggle](https://www.kaggle.com/datasets/benwieland/nba-draft-data){target="_blank"}, and contains statistics from players selected in the NBA draft, as well as further on in their careers. -->
120+
121+
<!-- ### Materials -->
122+
123+
<!-- [Class handout](nba_draft_worksheet_word.docx) -->
124+
125+
<!-- [Class handout - with solutions](nba_draft_worksheet_word_SOLUTIONS.docx) -->
126+
127+
<!-- ::: {.callout-note collapse="true" title="Conclusion" appearance="minimal"} -->
128+
<!-- Upon conclusion of this module, students will discover that there does seem to be a significant difference between the average number of minutes played based on which group a player was selected in the NBA draft. This learning module offers a valuable opportunity to explore each component of a one-way ANOVA test and how they affect the overall result. -->
129+
-188 KB
Binary file not shown.

0 commit comments

Comments
 (0)