--- title: "Performance of the open course materials service" subtitle: "Six months of reproducible illustrative operating data" description: "A data report whose tables, charts, and conclusions share one executable source dataset." author: "DocDuet Lab" lang: en dir: ltr category: "Data analysis" download_name: "open-course-materials-performance" thumbnail: "/static/examples/data-analysis-en.webp" features: ["Source calculations", "Generated tables", "Charts with alt text", "Operational decision"] customizable: true abstract: | This report follows a fictional open course materials service over six months. Tables and figures are generated from a small dataset kept in the source file. The analysis distinguishes observed movement in the sample from causal claims the sample cannot support. cover: kicker: "Performance report ยท illustrative example" title: "Open course materials performance" subtitle: "Demand, timeliness, and quality over six months" author: "DocDuet Lab" context: "Fictional operating data" version: "Review draft 1.0" description-title: "About this analysis" description: "A reproducible report: data, tables, and figures change together in the source, then receive Word review and PDF publication." note: "All measurements are fabricated and internally consistent; they do not describe a live service." --- ```{python} #| label: setup-service-data #| include: false from __future__ import annotations import matplotlib.pyplot as plt import numpy as np import pandas as pd # A self-contained illustrative dataset keeps the downloaded source runnable. records = [ {"month": "Jan", "requests": 420, "on_time": 294, "accessible": 340, "corrections": 31, "median_days": 5.2}, {"month": "Feb", "requests": 505, "on_time": 374, "accessible": 424, "corrections": 32, "median_days": 4.6}, {"month": "Mar", "requests": 565, "on_time": 452, "accessible": 491, "corrections": 29, "median_days": 3.8}, {"month": "Apr", "requests": 630, "on_time": 529, "accessible": 567, "corrections": 26, "median_days": 3.2}, {"month": "May", "requests": 710, "on_time": 611, "accessible": 653, "corrections": 23, "median_days": 2.8}, {"month": "Jun", "requests": 810, "on_time": 721, "accessible": 755, "corrections": 19, "median_days": 2.4}, ] channels = [ {"name": "Course portal", "requests": 470, "on_time": 427}, {"name": "Email", "requests": 225, "on_time": 190}, {"name": "Service desk", "requests": 115, "on_time": 104}, ] df = pd.DataFrame(records) channel_df = pd.DataFrame(channels) assert len(df) == 6 and df["month"].is_unique assert (df[["on_time", "accessible", "corrections"]] >= 0).all().all() assert (df["on_time"] <= df["requests"]).all() assert (df["accessible"] <= df["requests"]).all() assert channel_df["requests"].sum() == df.iloc[-1]["requests"] assert channel_df["on_time"].sum() == df.iloc[-1]["on_time"] df["on_time_rate"] = 100 * df["on_time"] / df["requests"] df["accessible_rate"] = 100 * df["accessible"] / df["requests"] df["correction_rate"] = 100 * df["corrections"] / df["requests"] channel_df["on_time_rate"] = 100 * channel_df["on_time"] / channel_df["requests"] first, last = df.iloc[0], df.iloc[-1] growth = 100 * (last["requests"] / first["requests"] - 1) on_time_change = last["on_time_rate"] - first["on_time_rate"] accessible_change = last["accessible_rate"] - first["accessible_rate"] waiting_change = last["median_days"] - first["median_days"] NAVY, TEAL, GOLD, CORAL = "#1E3A5F", "#0F766E", "#C58B2A", "#C85445" plt.rcParams.update({"font.family": "DejaVu Sans", "font.size": 11, "axes.spines.top": False, "axes.spines.right": False, "axes.labelcolor": NAVY, "xtick.color": NAVY, "ytick.color": NAVY}) ``` # Executive reading {#sec-summary} Can the service handle more demand without sacrificing turnaround and quality? This report tracks requests, delivery on time, an accessibility checklist, corrections after release, and median completion time. It does **not** measure learning outcomes; that would require a separate evaluation design. ::: {.callout-insight title="What the sample shows"} Requests grew by **`{python} f"{growth:.1f}%"`** from the first to the last month. On-time delivery improved by **`{python} f"{on_time_change:.1f}"` percentage points**, while median completion time fell by **`{python} f"{-waiting_change:.1f}"` days**. These are changes in the illustrative data, not evidence that one intervention caused them. ::: # Data and calculation method {#sec-method} Each row is one month. A request is a new or updated learning unit. "On time" means delivery within that month's stated target. "Accessible" means the unit passed checks for alt text, contrast, and heading structure. A correction is an edit made after approval. All values live in the setup cell of this source. ```{python} #| label: tbl-monthly #| output: asis print("| Month | Requests | On time | On-time rate | Accessible | Corrections | Median days |") print("|:------|---------:|--------:|-------------:|-----------:|------------:|------------:|") for row in df.itertuples(): print(f"| {row.month} | {row.requests:,} | {row.on_time:,} | {row.on_time_rate:.1f}% | {row.accessible:,} | {row.corrections:,} | {row.median_days:.1f} |") print("\n: Monthly measurements calculated from the source dataset.") ``` The on-time rate divides on-time requests by all requests in the same month. The accessibility rate uses the same denominator. Monthly percentages should not be added as though every month contained the same number of requests. An overall rate requires summing the numerators and denominators first.^[A simple average of monthly rates differs from the pooled rate when volumes differ.] ## Consistency checks {#sec-checks} The build fails if on-time or accessible counts exceed requests, or if the channel totals do not match the final month. These assertions travel with the data and calculations, so an attractive chart cannot silently mask an inconsistent source. # Demand and delivery trend {#sec-trend} ```{python} #| label: fig-demand #| fig-cap: "Demand rises while the on-time delivery rate improves." #| fig-alt: "Bars show increasing requests from January to June; the on-time delivery line rises at the same time." #| fig-width: 9 #| fig-height: 5 x = np.arange(len(df)) fig, left = plt.subplots(figsize=(9, 5), dpi=220) bars = left.bar(x, df["requests"], color=NAVY, width=.58) left.set_ylim(0, 950) left.set_ylabel("Requests") left.set_xticks(x, df["month"]) left.grid(axis="y", color="#e1e7eb") left.set_axisbelow(True) left.bar_label(bars, padding=3) right = left.twinx() right.plot(x, df["on_time_rate"], color=TEAL, marker="o", linewidth=2.5) right.set_ylim(60, 100) right.set_ylabel("On-time delivery (%)") fig.tight_layout() ``` Both measures rise in @fig-demand. The improvement therefore cannot be explained by a shrinking request volume. The chart still cannot tell us whether staffing, request mix, or a changed deadline caused the trend. A real service should record operational changes alongside these measures. ## Quality alongside speed {#sec-quality} ```{python} #| label: fig-quality #| fig-cap: "Accessibility coverage expands while the post-release correction rate falls." #| fig-alt: "Across six months, the accessibility-check line rises and the corrections-per-request line falls." #| fig-width: 9 #| fig-height: 4.8 fig, ax = plt.subplots(figsize=(9, 4.8), dpi=220) ax.plot(x, df["accessible_rate"], color=TEAL, marker="o", linewidth=2.5, label="Accessibility checked (%)") ax.plot(x, df["correction_rate"], color=CORAL, marker="s", linewidth=2.5, label="Post-release corrections (%)") ax.set_xticks(x, df["month"]) ax.set_ylabel("Share of requests (%)") ax.set_ylim(0, 100) ax.grid(axis="y", color="#e1e7eb") ax.legend(frameon=False, loc="center right") fig.tight_layout() ``` Accessibility coverage rose by **`{python} f"{accessible_change:.1f}"` percentage points**. Corrections fell, but the correction rate is not the true defect rate: some problems may never be reported. Sample published units directly rather than relying only on incoming reports. # Where requests slow down {#sec-channels} The final month can be split by intake channel. This suggests a targeted operating improvement, without assuming the channels have equally difficult requests. ```{python} #| label: tbl-channel-output #| output: asis print("| Channel | Requests | On time | On-time rate |") print("|:--------|---------:|--------:|-------------:|") for row in channel_df.itertuples(): print(f"| {row.name} | {row.requests:,} | {row.on_time:,} | {row.on_time_rate:.1f}% |") print("\n: June requests by channel; totals reconcile to the June row above.") ``` ```{python} #| label: fig-channels #| fig-cap: "Email has the lowest on-time rate in the illustrative June split." #| fig-alt: "Horizontal bars compare the course portal, email, and service desk; email is lower than the other two." #| fig-width: 8 #| fig-height: 4.5 fig, ax = plt.subplots(figsize=(8, 4.5), dpi=220) bars = ax.barh(channel_df["name"], channel_df["on_time_rate"], color=[TEAL, GOLD, NAVY]) ax.set_xlim(0, 100) ax.set_xlabel("On-time delivery (%)") ax.bar_label(bars, fmt="%.1f%%", padding=3) ax.grid(axis="x", color="#e1e7eb") ax.set_axisbelow(True) fig.tight_layout() ``` # Operational decision {#sec-decision} Investigate email intake first. Check whether those requests lack required details or arrive outside staffed hours. Run a small intake-form trial, then compare like-for-like requests before changing the service target. Keep the monthly dataset, checks, generated tables, charts, and decision in the same source so the next report can be rebuilt and reviewed in Word.