Data Analysis at a Glance
This page gathers in one place the concepts that appear in the Codyssey AI Advanced A1-1 mission, "Find loyal customers by analyzing who visits often and buys a lot at an online store." Skim the overall flow and concepts here first, and see each concept's article for details.
Analysis Flow
Load
→ Explore (EDA, descriptive statistics)
→ Preprocess (missing value imputation, IQR outliers, clipping)
→ Feature engineering (images and text into numeric columns)
→ Statistics & visualization (correlation coefficient, 6 chart types)
→ Customer segmentation (RFM, cohorts)
→ Insights (evidence, action, validation)Concepts in One Line
| Concept | One-line meaning | Details |
|---|---|---|
| NumPy | A library that computes on numeric arrays all at once without loops | NumPy and Pandas |
| Pandas | A library that reads, cleans, and aggregates tabular data by group | NumPy and Pandas |
| Vectorized operations | Applying an operation to a whole array at once instead of using a for loop | NumPy and Pandas |
| Multimodal data | A mix of data in different forms, such as numbers, text, dates, and images | EDA and Descriptive Statistics |
| EDA | The step of summarizing and plotting data to understand its characteristics before drawing conclusions | EDA and Descriptive Statistics |
| Descriptive statistics | Summarizing data with the mean, median, standard deviation, and quartiles | EDA and Descriptive Statistics |
| Group-wise imputation | Filling blanks with a statistic from a group of similar rows | Missing Values and Outliers |
| IQR outliers | Values lying more than 1.5 times the middle-50% range (IQR) outside it | Missing Values and Outliers |
| Clipping | Pressing outliers down to the boundary value instead of deleting them | Missing Values and Outliers |
| Feature engineering | Creating new columns (derived variables) for analysis from the raw data | Feature Engineering |
| Correlation coefficient | A value from -1 to 1 showing how much two variables move together | Correlation and Visualization |
| 6 visualization types | Histogram, box plot, bar chart, heatmap, scatter plot, line chart | Correlation and Visualization |
| Customer segmentation | Grouping customers who behave similarly and responding differently to each group | RFM and Customer Segmentation |
| RFM | A method that scores and divides customers by recency (R), frequency (F), and monetary value (M) | RFM and Customer Segmentation |
| Cohort analysis | A method that groups customers who first arrived in the same period and tracks how many remain over time | RFM and Customer Segmentation |
| Evidence, action, validation | A format for writing insights split into numeric evidence, an action plan, and cases where it could be wrong | Insights and the Limits of Analysis |
| Pipeline class | A class that bundles analysis steps into methods so they can be reused | Insights and the Limits of Analysis |
What A1-1 Left Behind
| Item | Details |
|---|---|
| Data | 1,067,371 transactions over 2 years from a UK online gift shop (Online Retail II) + 60,000 practice clothing images (Fashion-MNIST) |
| Tools | NumPy, Pandas, Matplotlib, Seaborn (without machine learning or image-specific libraries) |
| Cleaning result | 1,007,913 rows (5.6% removed) |
| Deliverables | DataAnalyzer class (src/pipeline.py), analysis notebook, README with 4 insights |
| Key results | 21.7% of customers (VIP) account for 68% of purchase amount, 39.9% of customers have churned, sales are concentrated in October and November |
| Biggest limitation | Original orders that were later canceled remain in the data, so some customers' purchase amounts may be inflated |
Source: dubu-alt/A1-1 (Codyssey AI Advanced A1-1 mission)
