{ "cells": [ { "cell_type": "markdown", "id": "18d83c6c", "metadata": {}, "source": [ "# 2001 / 2002\n", "\n", "Progress points for the Premier League 2001 / 2002 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "a513d41f", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:28.488106Z", "iopub.status.busy": "2024-12-24T00:22:28.487944Z", "iopub.status.idle": "2024-12-24T00:22:28.707694Z", "shell.execute_reply": "2024-12-24T00:22:28.707289Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2001\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "5ce1416d", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "87b56064", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:28.709587Z", "iopub.status.busy": "2024-12-24T00:22:28.709464Z", "iopub.status.idle": "2024-12-24T00:22:30.116977Z", "shell.execute_reply": "2024-12-24T00:22:30.116703Z" } }, "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": "bd9ea6ab", "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": "eac73c6c", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:30.119435Z", "iopub.status.busy": "2024-12-24T00:22:30.119341Z", "iopub.status.idle": "2024-12-24T00:22:30.247986Z", "shell.execute_reply": "2024-12-24T00:22:30.247703Z" } }, "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": "0f56da15", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "5b53d0f3", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:30.250271Z", "iopub.status.busy": "2024-12-24T00:22:30.250133Z", "iopub.status.idle": "2024-12-24T00:22:30.343040Z", "shell.execute_reply": "2024-12-24T00:22:30.342751Z" } }, "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": "f60ff636", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "b13336c9", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:30.344863Z", "iopub.status.busy": "2024-12-24T00:22:30.344764Z", "iopub.status.idle": "2024-12-24T00:22:30.460066Z", "shell.execute_reply": "2024-12-24T00:22:30.459782Z" } }, "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 }