{ "cells": [ { "cell_type": "markdown", "id": "37acd3cf", "metadata": {}, "source": [ "# 2022 / 2023\n", "\n", "Progress points for the Scottish Premiership 2022 / 2023 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "1d5b246c", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:18.018545Z", "iopub.status.busy": "2024-12-24T00:27:18.018225Z", "iopub.status.idle": "2024-12-24T00:27:18.249551Z", "shell.execute_reply": "2024-12-24T00:27:18.249268Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2022\n", "league = \"SC0\"" ] }, { "cell_type": "markdown", "id": "642d5427", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "fb93526e", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:18.251330Z", "iopub.status.busy": "2024-12-24T00:27:18.251226Z", "iopub.status.idle": "2024-12-24T00:27:19.905917Z", "shell.execute_reply": "2024-12-24T00:27:19.905656Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"cumulative\");" ] }, { "cell_type": "markdown", "id": "4ae4bff7", "metadata": {}, "source": [ "## Extrapolated Points\n", "\n", "Final points assuming each team continues to score points at the same rate as they have so far." ] }, { "cell_type": "code", "execution_count": 3, "id": "67ab56a8", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:19.908146Z", "iopub.status.busy": "2024-12-24T00:27:19.908036Z", "iopub.status.idle": "2024-12-24T00:27:20.006412Z", "shell.execute_reply": "2024-12-24T00:27:20.006160Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"extrapolated\");" ] }, { "cell_type": "markdown", "id": "28e4f4df", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "bd8b4dbc", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:20.008093Z", "iopub.status.busy": "2024-12-24T00:27:20.007971Z", "iopub.status.idle": "2024-12-24T00:27:20.112966Z", "shell.execute_reply": "2024-12-24T00:27:20.112692Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"position\");" ] }, { "cell_type": "markdown", "id": "4787b2cf", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "1a4a9667", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:20.114864Z", "iopub.status.busy": "2024-12-24T00:27:20.114755Z", "iopub.status.idle": "2024-12-24T00:27:20.217277Z", "shell.execute_reply": "2024-12-24T00:27:20.216996Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"form\");" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3" }, "mystnb": { "execution_mode": "off" } }, "nbformat": 4, "nbformat_minor": 5 }