{ "cells": [ { "cell_type": "markdown", "id": "e7750d28", "metadata": {}, "source": [ "# 2015 / 2016\n", "\n", "Progress points for the Premier League 2015 / 2016 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "2790d913", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:20.807245Z", "iopub.status.busy": "2024-12-24T00:23:20.807100Z", "iopub.status.idle": "2024-12-24T00:23:21.025959Z", "shell.execute_reply": "2024-12-24T00:23:21.025652Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2015\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "d12146aa", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "d68beb8c", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:21.028030Z", "iopub.status.busy": "2024-12-24T00:23:21.027879Z", "iopub.status.idle": "2024-12-24T00:23:22.545444Z", "shell.execute_reply": "2024-12-24T00:23:22.545123Z" } }, "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": "b8316bc2", "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": "99a18792", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:22.548020Z", "iopub.status.busy": "2024-12-24T00:23:22.547928Z", "iopub.status.idle": "2024-12-24T00:23:22.681216Z", "shell.execute_reply": "2024-12-24T00:23:22.680948Z" } }, "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": "a9668bc1", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "c7cb3040", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:22.682995Z", "iopub.status.busy": "2024-12-24T00:23:22.682882Z", "iopub.status.idle": "2024-12-24T00:23:22.777038Z", "shell.execute_reply": "2024-12-24T00:23:22.776778Z" } }, "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": "0503ef5f", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "26228fa1", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:23:22.778836Z", "iopub.status.busy": "2024-12-24T00:23:22.778739Z", "iopub.status.idle": "2024-12-24T00:23:22.895511Z", "shell.execute_reply": "2024-12-24T00:23:22.895231Z" } }, "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 }