{ "cells": [ { "cell_type": "markdown", "id": "8a373c2d", "metadata": {}, "source": [ "# 1998 / 1999\n", "\n", "Progress points for the Premier League 1998 / 1999 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "e56d7636", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:17.620459Z", "iopub.status.busy": "2024-12-24T00:22:17.620182Z", "iopub.status.idle": "2024-12-24T00:22:17.915063Z", "shell.execute_reply": "2024-12-24T00:22:17.914313Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 1998\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "07f21039", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "a8c931d6", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:17.917568Z", "iopub.status.busy": "2024-12-24T00:22:17.917412Z", "iopub.status.idle": "2024-12-24T00:22:19.256896Z", "shell.execute_reply": "2024-12-24T00:22:19.256132Z" } }, "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": "9b1ef34f", "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": "bf6605e8", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:19.260948Z", "iopub.status.busy": "2024-12-24T00:22:19.260695Z", "iopub.status.idle": "2024-12-24T00:22:19.404398Z", "shell.execute_reply": "2024-12-24T00:22:19.404100Z" } }, "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": "1578fc76", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "b945110c", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:19.406354Z", "iopub.status.busy": "2024-12-24T00:22:19.406253Z", "iopub.status.idle": "2024-12-24T00:22:19.503814Z", "shell.execute_reply": "2024-12-24T00:22:19.503522Z" } }, "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": "80efd62b", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "9bfaf3e8", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:19.505821Z", "iopub.status.busy": "2024-12-24T00:22:19.505717Z", "iopub.status.idle": "2024-12-24T00:22:19.628552Z", "shell.execute_reply": "2024-12-24T00:22:19.628282Z" } }, "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 }