Deriva univariada versus multivariada
Detecte mudanças que um único atributo não identificaria.
Deriva univariada versus multivariada é uma aula grátis de MLOps Academy no CoddyKit. Esta é a aula 1 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de MLOps Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de MLOps Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
One Feature at a Time
The simplest way to watch for drift is to check each feature on its own. That is called univariate drift detection, and it is where most teams start. 📊
How Univariate Checks Work
For univariate drift, you compare each feature's current distribution against its training reference, one column at a time, with tests like PSI or the KS statistic.
Where Univariate Falls Short
Single-feature checks miss shifts that only show up in combinations. Each column can look perfectly normal while their joint distribution has quietly moved.
A Hidden Shift Example
Imagine height and weight each look unchanged alone, but tall-and-light people suddenly appear. The pair drifted even though neither feature did. That is multivariate drift.
What Multivariate Drift Means
Multivariate drift looks at features together, capturing changes in correlations and interactions that any single-column test would completely overlook.
The Domain Classifier Trick
A neat multivariate method trains a classifier to tell reference rows from current rows. If it succeeds, the two sets differ, and that signals drift. 🕵️
from sklearn.ensemble import RandomForestClassifier
# label reference=0, current=1, then check AUC
clf = RandomForestClassifier().fit(X_all, is_current)Reading the AUC Signal
If that classifier's AUC sits near 0.5, the two periods are indistinguishable, so no drift. An AUC climbing toward 1.0 means the sets are easy to separate.
Reconstruction-Based Drift
Another approach uses a model like PCA: fit it on reference data, then watch reconstruction error rise on current data when the input structure shifts.
Combine Both Views
Run univariate checks to know which feature moved, and a multivariate check to catch the shifts hiding between them. They answer different questions together.
Watch the Multiple-Test Trap
Testing hundreds of features one by one means some will flag by pure chance. Adjust thresholds or correct for multiple comparisons so you are not buried in noise.
Start Simple, Add Depth
Begin with univariate checks because they are cheap and explainable. Layer in multivariate detection once you need to catch the subtle joint shifts. ✅
Quick Check
Let us test when you actually need a multivariate view.
Recap
Univariate drift checks each feature alone; multivariate drift catches shifts between them. Use a domain classifier or PCA for the joint view, and mind the multiple-test trap. 🎯
Perguntas Frequentes
A aula “Deriva univariada versus multivariada” é grátis?
Sim — o texto completo de “Deriva univariada versus multivariada” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de MLOps Academy, atualize para CoddyKit PRO. O curso de MLOps Academy inclui 4 aulas no total.
O que vou aprender em “Deriva univariada versus multivariada”?
Detecte mudanças que um único atributo não identificaria. Você pratica MLOps Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar MLOps Academy?
Nenhuma experiência prévia é necessária. MLOps Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 1 de 4.
Quanto tempo leva a aula “Deriva univariada versus multivariada”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de MLOps Academy?
Sim. Cada aula de MLOps Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- Deriva univariada versus multivariada
- Monitore o desempenho com rótulos atrasados
- Ajuste as janelas para reduzir falsos alarmes
- Conecte alertas de deriva ao novo treinamento