Skip to content
svgtest-information

Test information

Over which range of the trait does the test measure precisely?

Demo data · seed 20261101 · 81 rows · default settings · 640 × 360SVG, lightSVG, darkDemo CSV

How to read it

  1. Read the solid curve as how precisely the test measures at each ability.
  2. Read the dashed curve as the standard error on the right axis.
  3. Precise where the solid curve is high and the dashed is low.
  1. Callout 1: Most precise at this ability.
  2. Callout 2: The standard error is large at the extremes.

Watch out

  • A single reliability number hides this: precision varies across people.

Defaults

No settings: the chart draws one way.

Pinned in the code

  • Draws the run's numbers as given (computed by the Python/R engine); the chart computes nothing statistical.
  • Information is the sum of item informations; SE(θ) = 1/√I(θ) when the engine sends it.
# Test information — Codesplash Chart Lab (recipe "test-information")
# controls: defaults
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

try:
    import codesplash as cs  # optional: the app's chart theme
except ImportError:
    cs = None
if cs:
    cs.use_codesplash(dark=False)
PALETTE = cs.palette(dark=False)["categorical"] if cs else plt.rcParams["axes.prop_cycle"].by_key()["color"]

df = pd.read_csv("test-information-demo.csv", keep_default_na=False, na_values=[""])  # demo data (only empty cells are missing): Chart Lab → Code → Download demo CSV

TH = "ability θ"
INFO = "test information"
SE = "standard error"
d = df.dropna(subset=[TH, INFO]).sort_values(TH)
fig, ax = plt.subplots(figsize=(8, 4.5))
ax.plot(d[TH], d[INFO], color=PALETTE[0], linewidth=2, label="test information")
ax.set_xlabel(TH)
ax.set_ylabel(INFO)
if SE:
    ax2 = ax.twinx()
    ax2.plot(d[TH], d[SE], color=PALETTE[1], linestyle="--", linewidth=1.6)
    ax2.set_ylabel(SE)
plt.show()

Needs pandas, numpy, matplotlib · reads test-information-demo.csv · app theme from the optional codesplash helper