{ "cells": [ { "cell_type": "markdown", "id": "7d4db7d9", "metadata": {}, "source": [ "# 2020 / 2021\n", "\n", "Progress points for the Scottish Premiership 2020 / 2021 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "ba46f5ab", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:10.520129Z", "iopub.status.busy": "2024-12-24T00:27:10.519933Z", "iopub.status.idle": "2024-12-24T00:27:10.741049Z", "shell.execute_reply": "2024-12-24T00:27:10.740730Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2020\n", "league = \"SC0\"" ] }, { "cell_type": "markdown", "id": "29b963c3", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "ecfed3af", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:10.743061Z", "iopub.status.busy": "2024-12-24T00:27:10.742933Z", "iopub.status.idle": "2024-12-24T00:27:12.268241Z", "shell.execute_reply": "2024-12-24T00:27:12.267933Z" } }, "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": "cab7dcbd", "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": "04ed4a8b", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:12.270420Z", "iopub.status.busy": "2024-12-24T00:27:12.270319Z", "iopub.status.idle": "2024-12-24T00:27:12.373426Z", "shell.execute_reply": "2024-12-24T00:27:12.373155Z" } }, "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": "111ab663", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "f19228e7", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:12.375077Z", "iopub.status.busy": "2024-12-24T00:27:12.374957Z", "iopub.status.idle": "2024-12-24T00:27:12.481163Z", "shell.execute_reply": "2024-12-24T00:27:12.480772Z" } }, "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": "99e1ffe9", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "d43a38c0", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:27:12.482991Z", "iopub.status.busy": "2024-12-24T00:27:12.482878Z", "iopub.status.idle": "2024-12-24T00:27:12.589633Z", "shell.execute_reply": "2024-12-24T00:27:12.589327Z" } }, "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 }