A Priori Power Analysis
Before collecting data, a priori power analysis supports design decisions under stated effect and variability assumptions. With a fixed sample, sensitivity calculations answer a different planning question.
Before collecting data, a priori power analysis supports design decisions under stated effect and variability assumptions. With a fixed sample, sensitivity calculations answer a different planning question.
Statistical significance says how incompatible the data are with a null model at a chosen threshold. It does not say how large or how important an effect is.
An obvious outlier among ten values scores 2.8315, which is 99.5% of the maximum that sample size allows.
Do two groups convert at the same rate? The pooled z statistic, a worked A/B example with its interval, when to use Fisher’s exact test, and the A/B pitfalls.
A 12% lift at target power does not rule out detecting 2%. State the power, effect units, and design before judging whether the experiment is worthwhile.
Significance says a difference is detectable. Whether it is worth anything is a separate question that no test answers.
Ten thousand events from two thousand users is not n = 10,000 for a question about users. The unit you sampled decides what n is.
Power is the probability of rejecting the null when a specific alternative is true. Effect size, sample size, α, and variability set it, and it changes with the test design.
α is a tolerance you choose, not a measure of evidence. And the risk it trades against goes up as you push it down.
Divide by the standard deviation and you have an effect size. Divide by the standard error and you have a test statistic. They are not the same number.
A test rejects or fails to reject — it never confirms. And “fail to reject” covers both no effect and not enough data to tell.
A ranking algorithm turns candidates into an ordered list. Pairwise learning to rank trains from item preferences; lambda methods use the effect of swaps on a metric such as NDCG to guide training.
Instead of copying items from two fixed lists, probabilistic interleaving samples each slot from distributions built from the rankings, so small ranking differences change the credit.
Each round a coin flip decides which ranker picks first. Every item belongs to the ranker that picked it, so each click has exactly one owner.
Balanced interleaving alternates between two rankings and counts clicks in each ranking’s top k. With two rankings that differ only by a shift, one ranker can win most random clicks.
The estimate is the gap between what happened and a forecast of what would have happened. Everything depends on that forecast being right.
A bandit algorithm chooses among options while it learns which is best. Regret measures what the learning cost compared with always choosing the best option.
The winning arm is the maximum of several noisy estimates, so its measured lift is biased upward by construction.
Testing several page elements in one experiment. What a factorial design buys, what it does not cost, and how the arm count multiplies the false positives.
Daily monitoring need not change inference. Stopping on a fixed-sample p-value does; valid sequential methods account for repeated looks and stopping.
Causal inference from observational data needs data and identifiability conditions. Choosing a method does not establish the identification assumptions.
A p-value is a probability about data given a model. Reading it as a probability about the hypothesis inverts the conditional.
Estimate minus null value, over a known standard error, against the normal curve. Exact for normal data with known sigma, else approximate; mostly proportions.
Estimate over its estimated standard error, referred to Student’s t. One-sample, paired, and two-sample forms, when to use Welch, and heavy tails.
A hypothetical checkout comparison combines 39% shorter sessions with 47% more revenue; the figures alone do not identify the cause.
Define the revenue and user population first, then distinguish better monetization from changes in mix, retention and the denominator.
The same 5% of customers is 0.1% of revenue or 40.6%, depending on which 5% leaves.
Retention depends on the starting population, return event and time window. Revenue can grow even while the number of retained customers falls.
“Unlikely due to chance” is the one reading a p-value cannot support. What it measures is incompatibility with a model, assumptions included.
Same distribution, no dependence between draws. The assumption behind the usual standard errors and intervals, and the one grouped or time-ordered data breaks.
Serial dependence changes the information in a time series. Positive and negative dependence can affect uncertainty in opposite directions.
Moving one cut point across a series changed the MAE from 1.19 to 3.18 — same data, same model, nine defensible splits.
After a regime change, the sliding window recovers to an MAE of 0.43 while the expanding window stalls at 2.79.
The first fold trained on 200 rows scores 1.77 and the last on 1,000 scores 0.87. Their mean summarizes this sequence of historical evaluations.
Leakage can distort evaluation through future features, preprocessing, or test feedback. Time and group splits help only when they match the intended task.
A chance-level problem scored 0.9198 when groups were split across folds and 0.5323 when they were kept together. The truth was 0.5000.
Five splits of 1,000 rows tested 1,000 draws — but only 679 distinct rows. The other 321 were never in a test set at all.
A class with three samples cannot appear in five folds. scikit-learn warns instead of failing, and the warning is easy to miss.
Selecting features on pure noise before the split turns a chance-level problem into 90 percent accuracy. Inside a pipeline it reads 0.53.
On one dataset, five-fold CV ranges from 0.47 to 0.62 across split seeds. A separate ten-fold simulation illustrates why naive fold error bars can be too small.
The same +0.2 boost moves promoted items in one score band up 989 places on average and items in another band 366, and it does least at the top of the page.
A drift detector compares production with a baseline and raises a flag. Choosing the windows, thresholds, and response is where the design work lies.
Teacher 0.9815, student on hard labels 0.9060, student on teacher probabilities 0.9105. Distillation is a training signal, not extra capacity.
Stopping where the validation set said cost 0.0010 of test loss against the best available. Not stopping at all cost 0.0965.
An epoch counts data exposure. Batch size, accumulation, sampling, and validation determine what that exposure means for updates and useful learning.
Trying 300 configurations instead of one gained 0.0267 on the validation set and only 0.0082 in reality — and past 30, the real score fell.
AI includes reasoning, search, learning, and decision-making. Rules, learned models, generative capabilities, and acting systems play different roles.
One model scored a perfect 1.0000 on the rows it was trained on and 0.3474 on new ones. Another scored 0.9842 and 0.9822.
A model update can change the device behavior that was evaluated. Planned changes need defined scope, validation, and evidence of safety and effectiveness.
KYC is not a check at account opening. It is a continuing program: relationship understanding supplies the context needed to assess ongoing transaction monitoring.