Hadley Wickham’s tidy-data rules decide what one observation is before any model is fitted. A tidymodels recipe then removes zero- and near-zero-variance predictors, filters correlated ones, imputes, transforms and scales, and is re-estimated inside every resampling fold.
An incoming-material identity problem introduces the 1970s roots of chemometrics, its overlap with machine learning, and the evidence needed before a model can be trusted with a pharmaceutical decision.
Convert X-ray powder diffraction (XRPD) peak positions to lattice d-spacings with Bragg’s law, write an identity criterion on peak positions, and quantify why sample displacement shifts every peak while preferred orientation changes intensities but not positions. Bragg’s law is set beside Beer–Lambert from Week 6: both describe radiation meeting matter, one reading packing, the other amount.
Compute the pH–solubility profile of Compound X hydrochloride with its pHmax and the common-ion effect of 0.1 N HCl, check sink conditions for a 50 mg tablet across media, and use Noyes–Whitney to rank the levers that set dissolution rate.
Two reading paths on Compound X hydrochloride monohydrate that together say what the solid is: thermal analysis (DSC, TGA and moisture sorption) reads what heat and humidity do to it, and X-ray powder diffraction reads its crystal packing directly. Dissolution then checks whether that form performs in the tablet.
Write a defensible analytical target profile for Compound X, translate it into development experiments, and retain the evidence needed for lifecycle decisions.
What thermogravimetric analysis (TGA) and differential scanning calorimetry (DSC) physically measure, what is inside each instrument, and how pairing the mass and heat-flow traces turns an unknown powder’s thermogram into testable hypotheses.
Before any technique week makes sense, the course needs to answer what is actually being made: a small molecule, a large molecule / biologic, and an advanced therapy compared side by side — size, manufacture, what “the molecule” even is, what purity means, and why small molecule dominates entry-level hiring.
A four-reading path through differential scanning calorimetry (DSC), thermogravimetric analysis (TGA) and moisture sorption: what each instrument measures, then Compound X hydrochloride monohydrate through two readouts of one temperature ramp, hydrate stoichiometry reconciled against Karl Fischer, and the humidity and amorphous-content questions that decide whether the form survives.
Map a salt hydrate’s specification attribute by attribute to the test that answers it, and see why water and counterion are composition and identity, not housekeeping.
The active pharmaceutical ingredient as a multi-step organic synthesis: route selection, why bench chemistry and plant chemistry are different disciplines, what changes — and what breaks — going from milligrams to tonnes, where ICH Q7 GMP begins in the route, and how the API’s final physical form sets up everything the next section does to it.
Kuhn and Johnson’s practice of fitting a panel of models built on different mathematics (PLS, penalized regression, MARS, SVM, KNN, random forest, boosting and a neural network) on the same resamples, comparing them honestly, stacking them into an ensemble and choosing what a regulated setting can defend.
A stepwise pharmaceutical adaptation of Kuhn and Johnson’s predictive-modeling framework, using NIR prediction of granule water content: define the decision, match X and Y, split by batch, preprocess inside resampling, tune, freeze and test.
A three-reading path through X-ray powder diffraction, following Compound X hydrochloride monohydrate: Bragg’s law and the peak-position fingerprint, quantifying a minor form and the amorphous blind spot, and watching forms change with humidity — with single-crystal diffraction, polarised light microscopy and solid-state NMR placed around them.
Use ionization, lipophilicity, solubility, UV response, and solution stability to choose defensible pH windows and sample conditions across small molecules, proteins, and hybrid modalities.
Develop an LC procedure from the analytical requirement through molecular understanding, column selection, screening, optimization, validation and lifecycle control.
Build a calibration for anhydrate in Compound X monohydrate from a form-specific reflection, compute its detection and quantitation limits, and quantify why an amorphous fraction below about 5% hides under the background.
Overlay computed thermogravimetric (TGA) and differential scanning calorimetry (DSC) traces of Compound X hydrochloride monohydrate to tell a dehydration endotherm from a melt, and see why a kinetic event’s onset moves with heating rate while a melting onset does not.
Treat dissolution hardware and arithmetic as part of the measurement: mechanical calibration and the performance verification test, coning and degassing, the sampling-volume correction, and filter recovery for Compound X tablets.
Standardize a titrant against a primary standard, compute the potentiometric titration of a two-site hydrochloride salt, and see why a precise titration can be precisely wrong when endpoints merge or an impurity reacts.
A six-reading path through dissolution, following a constructed Compound X tablet: solubility, pH and sink conditions; the apparatus and arithmetic as part of the method; comparing profiles with f2; building and proving discriminating power; and the staged USP ⟨711⟩ criteria, in vitro–in vivo correlation and the Biopharmaceutics Classification System biowaiver; then a worked investigation in which a stability failure is traced back to the solid form.
Turning the API powder into a tablet the patient can swallow: direct compression versus dry (roller-compaction) and wet (fluid-bed) granulation, compression and coating, and the packaging that protects what all of it achieved — bottles, foil blisters, and capsules — with each process choice justified against the API’s own properties and the stability / quality-by-design case behind it.
Three things that have to be understood together before anything else in the course makes sense: how an analytical method actually gets developed and regulated, what is actually being made (the modality landscape), and how much evidence is enough (quality risk management).
Use ISA-88 process recipes, FMEA, screening and response-surface optimization to transform predictive associations into pharmaceutical process understanding, design space, lifecycle control and organizational learning.
Watch Compound X monohydrate convert to the anhydrate in a computed variable-humidity X-ray powder diffraction (XRPD) series, compare XRPD and ion chromatography as detectors of salt disproportionation, and use the ritonavir Form II case to see what a missed form change costs.
Convert a thermogravimetric (TGA) mass-loss step into waters per molecule with uncertainty, reconcile it against Karl Fischer water and gas-chromatography solvent results, and use computed isothermal kinetics to choose the loss-on-drying and Karl Fischer oven temperatures for Compound X hydrochloride monohydrate.
Explore pharmaceutical NIR spectra with PCA, tell scores from loadings, and see how class modeling and PLS turn the same spectra into an identity decision or a water-content prediction, each needing different evidence.
Choose an LC column format against the ATP and receiving-laboratory constraints, then calculate flow, injection, gradient-time and pressure consequences of scaling.
Compare three constructed Compound X test batches against a clinical reference with the f1 and f2 factors, apply the conditions under which a mean-based f2 is valid, and use a bootstrap when unit-to-unit variability is too high for the mean to decide.
Use the Karl Fischer reaction’s 1:1 water–iodine stoichiometry to choose between volumetric and coulometric titration, and quantify how titer drift, background drift and sample handling bias a water result.
Connect ICH Q1, accelerated and forced degradation, representative analytical samples, specificity and mass balance to a practical stability-testing program.
Clean and align analytical signals, investigate overlapping components with MCR-ALS and PARAFAC, and connect spectral flow cytometry to the same mathematical framework.
Off-line, at-line, on-line and in-line measurements on a granule dryer: sampling representativeness, transport delay and latency, soft sensors as inference rather than a location, and the evidence a process decision needs.
Challenge a Compound X dissolution method with deliberately varied batches — hard tablets, coarse drug substance, over-lubrication, the anhydrate and a disproportionated lot — in four media and agitation conditions, and choose the condition that detects the changes that matter.
Treat loss on drying and residue on ignition as procedure-defined gravimetric tests, use constant weight as a diagnostic, reconcile LOD against Karl Fischer and GC, and budget the weighing uncertainty of a 0.1% residue limit.
Use a dynamic vapour sorption isotherm to find where Compound X’s monohydrate forms and is lost, quantify a small amorphous fraction from its heat-capacity step, and see with the Gordon–Taylor equation why water turns a stable glass into a recrystallization risk.
Explore common LC surface chemistries, design a chemically diverse column screen, and explain separation changes using interaction hypotheses and evidence.
A six-reading path through the tests that round out a small-molecule specification beyond routine LC–UV — titrimetry, Karl Fischer water, loss on drying and residue on ignition, and ion chromatography — ending with the reconciliation that makes a salt hydrate’s specification add up.
Code the USP ⟨711⟩ stage rules for an immediate-release tablet, simulate their operating characteristic against batch mean and unit variability, and see when Compound X’s dissolution evidence could support an ICH M9 Biopharmaceutics Classification System (BCS) biowaiver or an in vitro–in vivo correlation (IVIVC).
A continuous direct-compression line connects measurements and predictions to feedback, feedforward, residence-time distribution and material diversion, and separates detecting, inferring, deciding, acting and confirming.
Execute and interpret a 24-condition LC screening plan with representative samples, restricted randomization, peak tracking, explicit ranking and a realistic instrument-time budget.
Measure Compound X’s chloride counterion by suppressed-conductivity anion chromatography, compute k, α and Rs for the critical pair, calibrate and calculate the result, and see why a separation beats a titration for this question.
Tablet assay, content uniformity and dissolution show what evidence connects process measurements to real-time release testing: each attribute needs its own justification, equipment failure differs from an unfavourable result, and the specification stays.
A worked investigation that closes the week: a Compound X stability lot fails USP ⟨711⟩ at 12 months with no manufacturing deviation. Rule out laboratory error and process causes, then use the medium the failure appears in, the chloride-to-base ratio, XRPD and water content to trace it to salt disproportionation in a pack without desiccant, and see that the solid-state tests saw it six months before dissolution did.
Convert results between as-is, anhydrous and salt bases, sum a salt hydrate’s composition with uncertainty, use stoichiometric ratios to diagnose what a balance misses, and assemble the routine controls that keep each wet-chemistry test honest.
Translate a risk assessment into optimization and robustness experiments, fit a quadratic resolution model, and distinguish a mean-response contour from a probability-based candidate operating region.
The Q6 family and the release contract: what a specification is (a list of tests, references to analytical procedures, and acceptance criteria) and why it confirms quality rather than creating it, how specifications evolve from wide and provisional in early development to tight and fully justified at filing as uncertainty is retired, the certificate of analysis as the specification applied to one batch, Q6A for chemical substances — the universal tests, the dosage-form-specific tests, and the decision trees for polymorphism, chirality, impurities, degradation products, residual solvents, microbial limits and dissolution — Q6B for biotechnological products — characterisation versus routine testing, product-related substances versus impurities, potency and the in-house reference standard — and the concepts that decide where a limit sits: process capability versus clinical relevance, release versus shelf-life acceptance criteria, periodic (skip) testing, parametric release, and real-time release testing, plus how the specification gathers up Q1, Q3 and Q5 and hands the result to Q2 and batch release.
From a sealed headspace vial to a residual-solvent result: GC instrumentation, partitioning, FID and MS, calibration, and the bridge to evolved-gas analysis.
An NIR supplier-change case connects prediction errors, Hotelling’s T² and Q diagnostics, instrument transfer and controlled model maintenance: validation establishes evidence for an intended use, and monitoring asks whether it still applies.
Link analytical controls and validation to the ATP, propose defensible lifecycle responsibilities, and evaluate a discontinued column or newly observed degradant without overstating regulatory flexibility.
Everything separations, in one session: the theory behind every separation (retention, selectivity, efficiency, resolution, van Deemter), the workflow that turns an analytical target profile into a validated LC method, forced degradation and the stability-indicating method, system suitability as the running proof a method still works, the wet-chemistry workhorses (Karl Fischer, titrimetry, ion chromatography), gas chromatography for residual solvents, and how the same separation logic carries into biologics and advanced therapies.
A fictional capstone investigation on a continuous tablet line connects model applicability, event timing, material diversion, release evidence and review of an AI-written investigation summary, and ends on an interim conclusion rather than a verdict.
Two threads outside the spectroscopy/separations/mass-spec mainline but load-bearing in a real quality-control lab. The solid-form thread follows one Compound X tablet from what its solid is (differential scanning calorimetry (DSC), thermogravimetric analysis (TGA), dynamic vapour sorption and X-ray powder diffraction (XRPD)) to how it performs (dissolution), and closes on a stability failure that needs both to explain. The cell thread follows a CAR-T lot through flow cytometry and the cell count that turns its fractions into a dose.
Mass spectrometry as inference on top of one measurement: ionization and mass-analyzer trade-offs, targeted quantitation versus high-resolution identification, ion suppression and the stable-isotope internal standard — then the same physics doing heavier lifting on biologics and advanced therapies. Carries the third and final risk-homework checkpoint.
Week 11 used one instrument on one product; this week maps the rest of the field. Tidy data and tidymodels preprocessing, Kuhn and Johnson’s model panels and ensembles, designed experiments as the route from correlation to cause, chromatogram alignment and curve resolution, multivariate monitoring of a biologic batch, and high-dimensional flow cytometry for CAR-T, plus ICH M7 as the clearest case of a prediction accepted in place of an experiment. Final paper presentations run alongside.