{ "cells": [ { "cell_type": "markdown", "id": "d65ed239", "metadata": {}, "source": [ "# 2021 / 2022\n", "\n", "Progress points for the Scottish Premiership 2021 / 2022 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "08aca6f9", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:14.289009Z", "iopub.status.busy": "2024-12-24T00:27:14.288671Z", "iopub.status.idle": "2024-12-24T00:27:14.523557Z", "shell.execute_reply": "2024-12-24T00:27:14.523253Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2021\n", "league = \"SC0\"" ] }, { "cell_type": "markdown", "id": "042c8424", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "75c49df9", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:14.525353Z", "iopub.status.busy": "2024-12-24T00:27:14.525256Z", "iopub.status.idle": "2024-12-24T00:27:16.138618Z", "shell.execute_reply": "2024-12-24T00:27:16.138332Z" } }, "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": "3cfd8d3f", "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": "db3d9fae", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:16.140623Z", "iopub.status.busy": "2024-12-24T00:27:16.140504Z", "iopub.status.idle": "2024-12-24T00:27:16.239666Z", "shell.execute_reply": "2024-12-24T00:27:16.239389Z" } }, "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": "5da4826a", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "2427dfb1", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:16.241395Z", "iopub.status.busy": "2024-12-24T00:27:16.241257Z", "iopub.status.idle": "2024-12-24T00:27:16.342980Z", "shell.execute_reply": "2024-12-24T00:27:16.342692Z" } }, "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": "d514dd9a", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "20832fef", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:16.344611Z", "iopub.status.busy": "2024-12-24T00:27:16.344511Z", "iopub.status.idle": "2024-12-24T00:27:16.446194Z", "shell.execute_reply": "2024-12-24T00:27:16.445924Z" } }, "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 }