tezvyn:

Data Science & Analytics

Analysis, notebooks, visualization, pandas, statistics

283 bites

More in Data Science & Analytics — page 8

Data Science & Analytics2 min read

Vectorization: Ditch the Python Loop

Vectorization means issuing one batch command to C-backed arrays instead of looping in Python. Use it for million-row DataFrames or matrix math. The footgun is treating apply() as vectorized, or silently materializing giant temporaries that exhaust RAM.

ML Pipeline: Systematic Model Delivery
Data Science & Analytics2 min read

ML Pipeline: Systematic Model Delivery

A machine learning pipeline is the systematic workflow that carries models from data labeling through deployment inside MLOps. It keeps the AI lifecycle repeatable rather than ad hoc. The footgun is treating a one-off notebook as a production pipeline.

t-SNE: Map High-Dimensional Similarity to 2D
Data Science & Analytics2 min read

t-SNE: Map High-Dimensional Similarity to 2D

t-SNE turns high-dimensional similarity into 2D or 3D distance: similar points cluster and dissimilar points separate. Use it to visualize complex datasets on a flat map. Do not read exact distances from the plot; it preserves local probability, not geometry.

ETL: The Three-Phase Data Pipeline
Data Science & Analytics2 min read

ETL: The Three-Phase Data Pipeline

ETL is a three-phase pipeline: extract from sources, transform, and load into containers. It supports many sources and destinations and runs as automated software, manual jobs, or scheduled batches. The footgun is manual execution of recurring jobs.

SVD: Eigendecomposition for Any Matrix
Data Science & Analytics2 min read

SVD: Eigendecomposition for Any Matrix

SVD treats any matrix as rotation, then scaling, then rotation. It generalizes eigendecomposition beyond square normal matrices to any real or complex matrix.

Data Science & Analytics2 min read

MLE: Find the Parameters That Make Data Likely

MLE tunes your model until observed data looks inevitable. Use it to fit distributions to logs, traffic, or errors. The footgun: it assumes your distribution family is correct; under a wrong model, it finds the best-fitting wrong answer with high confidence.

Data Science & Analytics2 min read

The Big Idea: Your Presentation's Single-Sentence Core

The "Big Idea" is a single sentence distilling your presentation's core message. It must state your point of view and what's at stake, telling your audience what to know and what to do.

How a SQL SELECT Query Actually Runs
Data Science & Analytics2 min read

How a SQL SELECT Query Actually Runs

A SQL SELECT query runs in a different order than you write it. It first builds the dataset with FROM/JOINs and filters it with WHERE, only then computing the final columns in SELECT. This is crucial for debugging.

Data Science & Analytics2 min read

Data Sonification: Hearing Your Data's Story

Data sonification is data visualization for your ears, mapping data points to sound properties like pitch or volume. It helps find patterns in complex datasets, like network traffic, where visuals fail.

Dashboard Design: Guide, Don't Overwhelm
Data Science & Analytics2 min read

Dashboard Design: Guide, Don't Overwhelm

A good dashboard guides users to an insight, not just displays charts. Place your key takeaway in the top-left and limit views to 2-3 to maintain focus. The biggest mistake is including too many views, which clutters the message and slows down the dashboard.

Data Science & Analytics2 min read

Data Partitioning: Spreading Data for Scalability

Partitioning splits a huge dataset across many machines, like assigning phonebook sections to different librarians. This allows systems to scale beyond a single server.

Data Science & Analytics2 min read

Spark DataFrame API: SQL Smarts on Distributed Data

The DataFrame API is like giving Spark a schema for your distributed data, letting its Catalyst optimizer plan queries like a database would. Use it for structured data processing with column-based operations.

Data Pipeline Orchestration: Beyond Cron Jobs
Data Science & Analytics2 min read

Data Pipeline Orchestration: Beyond Cron Jobs

Data pipeline orchestration is the conductor for your data workflows, ensuring tasks run in the right order with full dependency awareness. It manages complex chains, like triggering analytics only after an ETL job succeeds.

Idempotency: Making Data Pipelines Retry-Safe
Data Science & Analytics2 min read

Idempotency: Making Data Pipelines Retry-Safe

Idempotency means an operation has the same effect whether run once or multiple times, like closing an already-closed door. It's essential for data pipelines where retries are common. The footgun is assuming retries are safe, leading to data corruption.

Data Science & Analytics2 min read

Log Transformation: Taming Skewed Data for Better Models

A log transform tames skewed data by compressing large values and spreading out small ones. It's used on data like income or web traffic to help it meet the assumptions of linear models. The footgun: it fails on zero or negative values.

Data Science & Analytics2 min read

Missing Data Imputation: Filling in the Blanks

Instead of deleting rows with missing values, imputation makes an educated guess to fill the blanks, preserving your sample size. It's used in survey analysis or time-series data where dropping records would introduce bias.

Cython: Static Typing for Faster Python
Data Science & Analytics2 min read

Cython: Static Typing for Faster Python

Cython speeds up Python by compiling it to C, especially when you add static types to bypass Python's dynamic overhead. Use it for CPU-bound bottlenecks like tight loops in numerical code.

Proxy Metrics: Estimate Long-Term Impact Now
Data Science & Analytics2 min read

Proxy Metrics: Estimate Long-Term Impact Now

A proxy metric uses a model to estimate a slow, long-term outcome, like annual revenue. It lets you quickly judge an A/B test's impact without waiting months for the true result. The footgun is trusting a biased model or ignoring its error, giving you false.

Data Science & Analytics2 min read

Homomorphic Encryption: Compute Without Decrypting

Homomorphic encryption lets you perform computations on data while it's still encrypted. This allows a third party, like a cloud provider, to process your sensitive data without ever seeing the raw information, ensuring privacy.

Counterfactual Fairness: What if You Were Different?
Data Science & Analytics2 min read

Counterfactual Fairness: What if You Were Different?

Asks "what if?" for fairness: would your model's decision change if only a sensitive attribute like race were different? It's used to audit models for hidden bias in areas like hiring.