Data Analysis (14%)
Official exam topics: exam-guide/nca-genl-exam-page.md ("Data Analysis"). NVIDIA defines this area as inspecting, cleansing, transforming and modelling data to discover useful information, inform conclusions and support decision-making.
Expect questions that give you a dataset, a chart or a pair of model results and ask which metric, which chart, which conclusion is right, or what could be distorting the result. The reading list points at scikit-learn's Metrics and Scoring, Matplotlib, the Python Data Science Handbook, and GPU-accelerated data science with RAPIDS cuDF and cuML.
Exam topics in this domain 1. 2.1 Extract insights from large datasets with data mining and visualization 2. 2.2 Compare models using statistical performance metrics (loss functions, explained variance) 3. 2.3 Conduct data analysis under a senior team member's supervision 4. 2.4 Create graphs and charts to convey results 5. 2.5 Identify relationships, trends and factors that could affect results
Checked against RAPIDS and scikit-learn documentation (November 2026).
- RAPIDS cuDF is a GPU DataFrame library with a pandas-like API. Its cudf.pandas accelerator mode (generally available since RAPIDS 24.02) runs unchanged pandas code on the GPU: load it with %load_ext cudf.pandas in Jupyter or python -m cudf.pandas script.py. Unsupported operations fall back to the CPU automatically.
- RAPIDS cuML offers GPU versions of scikit-learn-style algorithms (linear models, random forest, k-means, DBSCAN, UMAP, PCA, nearest neighbours) with a familiar fit/predict API.
2.1 Exploring Large Datasets
Exploratory data analysis (EDA) checklist
- Shape and types: rows, columns, dtypes (
df.shape,df.info()); numbers stored as text are a common surprise. - Summary statistics:
df.describe(): mean, median, standard deviation, min/max, quartiles. A mean far from the median signals skew or outliers. - Missing values:
df.isna().sum(); is missingness random, or does it depend on something (only one region missing)? - Duplicates: exact and near-duplicates. In LLM training data, duplicates cause memorization and inflate benchmark scores.
- Distributions: histograms for numbers, value counts for categories; check class imbalance.
- Outliers: box plots, IQR rule (beyond 1.5 × IQR), z-scores. Decide: error to fix, real extreme to keep, or a separate segment.
- Relationships: correlation matrix, scatter plots, group-by summaries.
Data mining techniques
| Technique | Finds | Example |
|---|---|---|
| Clustering (k-means, DBSCAN, HDBSCAN) | Natural groups | Customer segments; topic groups of support tickets via embeddings |
| Association rules (Apriori) | Items that occur together (support, confidence, lift) | Market-basket analysis |
| Anomaly detection (isolation forest, z-scores) | Rare, unusual records | Fraud; corrupted training samples |
| Dimensionality reduction (PCA, t-SNE, UMAP) | Low-dimensional view of high-dimensional data | Plotting embeddings in 2D to see clusters |
| Text mining | Frequent terms, n-grams, entities, topics | TF-IDF top terms; spaCy NER counts |
LLM-specific dataset analysis
- Token length distribution: histogram of tokens per document or per prompt–response pair. Reveals examples that will be truncated by the context length and drives chunk size and batch planning.
- Language and domain mix, toxicity and PII rates, duplicate rate, label balance in fine-tuning data.
- Tools: pandas or cuDF for tabular stats; Hugging Face Datasets for large text corpora (memory-mapped Arrow files,
mapandfilterin batches); NeMo Curator for large-scale cleaning and deduplication (D3).
Scaling the analysis with GPUs
When pandas or scikit-learn becomes the bottleneck on large data:
- cuDF (or cudf.pandas with no code changes) for joins, group-bys and filtering on the GPU.
- cuML for clustering, dimensionality reduction (UMAP on millions of embeddings) and tree models.
- Dask with cuDF to scale across several GPUs or nodes.
- XGBoost with GPU training (device="cuda").
2.2 Comparing Models with Metrics
Classification
From the confusion matrix (TP, FP, TN, FN):
| Metric | Formula | Use when |
|---|---|---|
| Accuracy | (TP+TN) / all | Classes are balanced and errors cost the same |
| Precision | TP / (TP+FP) | False positives are costly (spam filter deleting real mail) |
| Recall (sensitivity) | TP / (TP+FN) | False negatives are costly (missing fraud or disease) |
| F1 | Harmonic mean of precision and recall | Imbalanced classes; one balanced number |
| ROC-AUC | Area under TPR vs FPR across thresholds | Threshold-independent ranking quality |
| PR-AUC | Area under precision–recall curve | Rare positive class (more informative than ROC-AUC there) |
| Log loss (cross-entropy) | Penalizes confident wrong probabilities | Probability quality matters |
Accuracy paradox: with 99% negative cases, a model that always says "negative" is 99% accurate and useless. Use precision, recall, F1 or PR-AUC.
Macro-average (each class equal) vs micro/weighted average (by frequency) matters for multi-class problems.
Regression
| Metric | Notes |
|---|---|
| MAE | Average absolute error; same units as the target; robust to outliers |
| MSE / RMSE | Squares errors, so it punishes large misses; RMSE is in target units |
| R² (coefficient of determination) | Proportion of variance explained: 1 is perfect, 0 equals predicting the mean, negative is worse than the mean |
| Explained variance score | Like R² but ignores a constant bias in the predictions (scikit-learn explained_variance_score) |
Loss functions
The loss is what training minimizes; the metric is what you report. They can differ (train with cross-entropy, report F1). - Cross-entropy: classification and language modelling (next-token prediction). - MSE / MAE / Huber: regression (Huber is less sensitive to outliers than MSE). - Loss curves: compare training and validation loss over steps; a widening gap means overfitting (D1).
Language model metrics
| Metric | What it measures | Notes |
|---|---|---|
| Perplexity | exp(average cross-entropy per token): how "surprised" the model is by text | Lower is better; only comparable between models with the same tokenizer |
| BLEU | n-gram precision against reference text | Machine translation |
| ROUGE (ROUGE-1, -2, -L) | n-gram and longest-common-subsequence overlap, recall-oriented | Summarization |
| BERTScore | Similarity of contextual embeddings | Captures paraphrase better than n-gram overlap |
| Exact match / F1 | Token overlap with a reference answer | Extractive question answering |
| pass@k | Share of problems where at least one of k generated programs passes tests | Code generation |
| Benchmark accuracy | MMLU, HellaSwag, GSM8K, etc. | Run with LM Evaluation Harness (D3) |
n-gram metrics reward word overlap, not truth: a fluent, wrong summary can score well. Add human or LLM-as-a-judge evaluation for faithfulness and helpfulness (D3).
Retrieval metrics (for RAG)
- Recall@k: share of queries where a relevant chunk is in the top k.
- Precision@k, MRR (mean reciprocal rank of the first relevant result), nDCG (graded relevance, position-weighted).
2.3 Working Under Supervision
The associate runs the analysis; the senior engineer sets the question and signs off. Good practice the exam rewards: - Confirm the question and success metric before analysing. - Work in reproducible notebooks or scripts: fixed random seeds, versioned data, recorded package versions. - Document assumptions, filters and anything removed (outliers, duplicates). - Report uncertainty (confidence intervals, variance across folds or seeds), not just a single number. - Escalate surprises (a sudden metric jump is more often a bug or leakage than a breakthrough).
2.4 Visualization
Match the chart to the message:
| Message | Chart |
|---|---|
| Trend over time or training steps | Line chart (loss curves, latency over time) |
| Compare categories | Bar chart (accuracy per model) |
| Distribution of one variable | Histogram, density plot, box plot (shows median, quartiles, outliers) |
| Relationship between two numeric variables | Scatter plot |
| Correlations across many variables | Heatmap of the correlation matrix |
| Classification errors | Confusion matrix heatmap |
| Threshold trade-offs | ROC curve, precision–recall curve |
| Embedding clusters | 2D scatter after PCA, t-SNE or UMAP |
| Parts of a whole (few parts) | Stacked bar (pie charts are hard to compare) |
Tools: Matplotlib (base plotting: plt.plot, plt.bar, plt.hist, plt.scatter, subplots), Seaborn (statistical plots on top of Matplotlib), Plotly (interactive), TensorBoard and Weights & Biases (training curves; D3).
Honest charts: label axes and units, start bar charts at zero, use consistent scales across panels, and avoid 3D or dual-axis charts that distort.
2.5 Relationships, Trends and Confounding Factors
- Correlation: Pearson (linear), Spearman (rank, monotonic). Correlation ranges from −1 to 1 and does not imply causation.
- Confounders: a third variable drives both (ice-cream sales and drownings both rise in summer). Control for it, stratify, or run a randomized experiment (A/B test).
- Simpson's paradox: a trend that appears in every subgroup reverses when the groups are combined, because the group sizes differ. Always check segment-level results.
- Selection bias / sampling bias: the data doesn't represent the population (only users who opted in; only English text).
- Data drift: the input distribution changes over time; concept drift: the relationship between input and output changes. Both degrade a deployed model.
- Data leakage and train–test contamination: benchmark questions that appeared in pretraining data inflate LLM scores.
- Statistical significance: small differences between models may be noise. Repeat with different seeds or folds, use confidence intervals or significance tests, and make sure the test set is large enough.
Exam Tips
- Imbalanced classes → precision, recall, F1, PR-AUC, not accuracy.
- Missed positives are costly → recall; false alarms are costly → precision.
- R² = share of variance explained; negative means worse than predicting the mean.
- Perplexity is lower-is-better and tokenizer-dependent.
- BLEU for translation, ROUGE for summarization.
- Time trend → line chart; distribution → histogram or box plot; relationship → scatter; correlation matrix → heatmap.
- cuDF / cudf.pandas for pandas at GPU speed; cuML for scikit-learn-style ML on GPU.
References
- NVIDIA NCA-GENL certification exam page — checked Nov 11, 2026
Check your understanding
A fraud model shows 99% accuracy on data with 1% fraud. Does that prove it works?Show answerHide answer
Answer
No. Predicting 'not fraud' every time also scores 99%. Use precision, recall, F1 or PR-AUC for imbalanced classes.Can you compare perplexity between two models that use different tokenizers?Show answerHide answer
Answer
No. Perplexity is per token, so it depends on the tokenizer; compare it only between models that share one. Lower is better.Does a higher BLEU or ROUGE score prove a summary is factually correct?Show answerHide answer
Answer
No. They measure n-gram overlap with a reference, not truth. ROUGE is the usual choice for summaries and BLEU for translation.How do you move an existing pandas pipeline onto the GPU with the least work?Show answerHide answer
Answer
Loadcudf.pandas, which accelerates existing pandas code with no code changes; cuML does the same for scikit-learn-style ML.