{ "cells": [ { "cell_type": "markdown", "id": "1a367213", "metadata": {}, "source": [ "# 2017 / 2018\n", "\n", "Progress points for the Premier League 2017 / 2018 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "c9b5f94e", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:28.318705Z", "iopub.status.busy": "2024-12-24T00:23:28.318517Z", "iopub.status.idle": "2024-12-24T00:23:28.544393Z", "shell.execute_reply": "2024-12-24T00:23:28.544059Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2017\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "18e940b8", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "93303e50", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:28.546185Z", "iopub.status.busy": "2024-12-24T00:23:28.546078Z", "iopub.status.idle": "2024-12-24T00:23:30.046926Z", "shell.execute_reply": "2024-12-24T00:23:30.046635Z" } }, "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": "008fa788", "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": "f48fe7fd", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:30.049462Z", "iopub.status.busy": "2024-12-24T00:23:30.049381Z", "iopub.status.idle": "2024-12-24T00:23:30.161563Z", "shell.execute_reply": "2024-12-24T00:23:30.161254Z" } }, "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": "2d63756e", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "6b40e754", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:30.163247Z", "iopub.status.busy": "2024-12-24T00:23:30.163134Z", "iopub.status.idle": "2024-12-24T00:23:30.287414Z", "shell.execute_reply": "2024-12-24T00:23:30.287133Z" } }, "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": "9e03cbe1", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "59804ef2", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:30.289369Z", "iopub.status.busy": "2024-12-24T00:23:30.289257Z", "iopub.status.idle": "2024-12-24T00:23:30.428629Z", "shell.execute_reply": "2024-12-24T00:23:30.428304Z" } }, "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 }