MockDataLab

Chemistry & Chemical Engineering

Chemical kinetics: runs → timepoints (Arrhenius and first-order decay)

Twelve runs (four temperatures × three replicates) of a first-order reaction. Rate constants follow the Arrhenius law (Ea = 50 kJ/mol), concentration decays exponentially from a run-specific A0, and absorbance is limited by the detector's linear range.

runs (12) → timepoints (15)

Data structure

Concentration–time curves per run at several temperatures are the standard physical-chemistry lab and the classic two-stage estimation problem (k per run, then Ea).

runsone row = one kinetic run
Temperature (288–318 K), initial concentration, the true rate constant and half-life.
timepointsone row = one sample
Time, concentration with 2 % relative error and 0.01 mM resolution, occasional missing injections, and absorbance clipped at 2.5 AU.

Generate the chemical kinetics tables

The preset is a starting point: change any formula, noise step or row count and the preview, ER diagram and relation check update.

The relational generator loads as it scrolls into view…

Key relationships

  • k_true_per_min = arrhenius(temperature_K, 2.0e7, 50000)

    Built-in Arrhenius function with R = 8.314 J/(mol·K).

  • concentration_mM = exp_decay(t_min, parent.A0_mM, 1 / parent.k_true_per_min)

    First-order integrated rate law with tau = 1/k.

Common pitfalls

  • Fitting ln(C) against t with ordinary least squares when the error is proportional: use weights or a non-linear fit.
  • Including saturated absorbance readings at early times.
  • Pooling replicate runs before fitting k, which hides run-to-run variation in A0.
  • Estimating Ea from too narrow a temperature range.

Typical analysis

Fit k per run by non-linear least squares on C(t), then regress ln k on 1/T to estimate Ea and A while propagating the per-run standard errors, or fit one non-linear mixed model.

Python
import numpy as np, pandas as pd
from scipy.optimize import curve_fit
runs = pd.read_csv("runs.csv", comment="#")
tp = pd.read_csv("timepoints.csv", comment="#").dropna(subset=["concentration_mM"])
decay = lambda t, a, k: a * np.exp(-k * t)
ks = {rid: curve_fit(decay, g.t_min, g.concentration_mM, p0=[10, 0.05])[0][1]
      for rid, g in tp.groupby("run_id")}
runs["k_fit"] = runs.run_id.map(ks)
slope, _ = np.polyfit(1 / runs.temperature_K, np.log(runs.k_fit), 1)
print("Ea (kJ/mol) =", -slope * 8.314 / 1000)

Further reading

  • Atkins P, de Paula J. Physical Chemistry: chapters on reaction kinetics and the Arrhenius equation.
  • IUPAC Compendium of Chemical Terminology (Gold Book): Arrhenius equation.

Other relational presets