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.
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.
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 deep dive into ICH Q1: the purpose of stability testing and the discipline of a systematic program, stress testing versus R&D forced degradation, the chemistry of drug degradation, an integrated forced/accelerated/long-term design, storage conditions, significant change, climatic zones, reduced designs, data evaluation, and the modernized Q1 revision.
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.
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.
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.
A deep dive into ICH Q2(R2): validation as the demonstration that a measurement is fit for its intended purpose — the analytical procedure as a measurement system, the four procedure types, the analytical figures of merit and their formal definitions (accuracy, precision, specificity, detection and quantitation limits, linearity, range, robustness), which characteristics are required for which test type, the R2 reframing around reportable range and multivariate procedures, stability-indicating methods, platform methods, and validation’s place in the Q14 analytical procedure lifecycle.
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.
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.
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.
The Q4 family and the compendial baseline: what a pharmacopoeia is and how a monograph differs from a general chapter, the three ICH-region pharmacopoeias (USP–NF, Ph. Eur., JP) and the Pharmacopoeial Discussion Group that harmonises their shared texts, why full harmonisation (Q4A) stalled and the evaluate-and-recommend mechanism (Q4B) that replaced it, what ‘interchangeable’ actually means and the region-specific text that remains, the fourteen Q4B annexes and the general chapters they cover, and what compendial status demands of the analyst — verification under USP <1226>, the rules for a validated alternative method, and when the compendial method is mandatory.
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).
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.
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.
UV-VIS and Beer’s law as the oldest quantitative measurement in the toolkit, then IR and Raman as complementary vibrational probes and near-IR as the broad-band signal only chemometrics can read — closing with a full read-through of a small-molecule Certificate of Analysis. Carries the second risk-homework checkpoint.
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.
How a control strategy is built and held once a product is made for real, read through the models behind it: chemometrics from its 1970s roots to PCA, PLS and class modeling; where a measurement lives and how late it arrives; prediction, feedback and residence-time diversion on a continuous line (ICH Q13); real-time release testing; the model lifecycle; language models held to the same evidence standard; and a capstone investigation. Post-market signals, product complaints and pharmacovigilance, close the loop by reopening a control strategy that looked adequate at the time.
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.