1/70
Looks like no tags are added yet.
Data science
Combines statistics, computer science, and domain knowledge to turn raw data into predictions and decisions.
How data science differs from traditional Business Intelligence
Describes past data, while data science uses predictive and prescriptive modeling on both structured and unstructured data.
Structured data
Rigid rows and columns, such as SQL tables, CSV files, and Excel sheets, that are easy to search and query.
Semi-structured data
Data that uses tags or key-value pairs instead of rigid tables, such as JSON, XML, and HTML.
Unstructured data
Data with no predefined format, such as images, audio, video, PDFs, raw text, and emails, that needs feature extraction or deep learning.
Discrete data
Countable whole numbers, such as the number of clicks or students in a class.
Continuous data
Numeric data measured on a sliding scale with decimals, such as height, weight, or temperature.
Nominal data
Categorical labels with no order, such as eye color, zip code, or country.
Ordinal data
Categorical labels with a ranked order but unequal gaps between ranks, such as class year or 1 to 5 star ratings.
Converting binary to decimal
Add the place values (powers of 2) where there is a 1. For example, binary 1101 equals decimal 13.
Converting hexadecimal to decimal
Multiply the first digit by 16 to the first power and the second digit by 16 to the zero power, then add. For example, hex 3B equals decimal 59.
Binary to hexadecimal shortcut
Each hex digit equals four binary bits, so group binary digits in fours from right to left. For example, 10101111 equals AF.
Primary data
Data collected firsthand through surveys, experiments, IoT sensors, APIs, or web scraping.
Secondary data
Data collected by someone else, such as US Census data, Kaggle datasets, government databases, or company archives.
Min-max normalization
Scales values into the range 0 to 1 using x' = (x - min) / (max - min).
Z-score standardization
Centers data around a mean of 0 with a standard deviation of 1 using z = (x - mu) / sigma.
One-hot encoding
Turns nominal categories into binary 0/1 columns so algorithms do not invent fake rankings.
Label encoding
Assigns integers such as 0, 1, 2 to ordinal categories.
Clean and wrangle data stage
The stage that takes 60 to 80 percent of total project time.
Exploratory data analysis (EDA)
Summary statistics and charts used to understand the data before modeling.
Deploy and monitor stage
Launching a model to production and watching for accuracy drop or data drift.
Mean
The average of the values, found by summing them and dividing by n. It is pulled strongly by outliers.
Median
The exact middle value when data is sorted, averaging the two middle values if n is even. It is best when data has outliers or skew.
Mode
The most frequent value. A dataset can have zero, one, or multiple modes.
Range
The maximum minus the minimum. It is very sensitive to outliers.
Variance
The average of squared distances from the mean. Sample variance divides by n minus 1.
Standard deviation
The square root of variance, measuring average spread in the same units as the data.
Covariance
Shows the direction two variables move together. Positive means both rise, negative means one rises as the other falls, and zero means no linear relationship.
Correlation (r)
Covariance scaled to a value between -1 and +1.
Empirical (68-95-99.7) rule
About 68 percent of data lies within 1 standard deviation, 95 percent within 2, and 99.7 percent within 3 of the mean in a normal distribution.
Central Limit Theorem (CLT)
As sample size grows (n of at least 30), the distribution of sample means becomes normal regardless of the population's shape.
Expected value E[X]
The long-run weighted average of a random variable, found by summing each outcome times its probability.
Discrete random variable
Countable outcomes, such as coin flips or a binomial distribution, described by a probability mass function (PMF).
Continuous random variable
Infinite values within a range, such as height, described by a probability density function (PDF) where probability is the area under the curve.
Histogram
A chart for one continuous variable showing frequency distribution and skew, with bars that touch.
Bar chart
A chart for one categorical variable that compares counts across groups, with gaps between bars.
Boxplot
Shows the five-number summary and IQR, and flags outliers more than 1.5 times the IQR beyond the quartiles.
Scatterplot
A chart of two continuous variables that shows correlation, direction, clusters, and outliers.
Heatmap
A matrix or correlation table that uses color intensity to highlight high and low values.
Multiple linear regression
Predicts a continuous number from several inputs and is evaluated with R squared and RMSE.
Logistic regression
Used for binary classification. It outputs a probability between 0 and 1 using an S-shaped sigmoid curve.
Principal Component Analysis (PCA)
Compresses many correlated features into fewer uncorrelated components while keeping maximum variance.
Imputation
Filling missing values with the mean, the median for skewed data, or the mode for categories.
K-Means clustering
Groups unlabeled data into k clusters around the nearest centroids.
Decision tree
A flowchart of if-else rules that splits data using Gini impurity or entropy (information gain).
SQL HAVING clause
Filters groups or aggregates, such as COUNT(*) greater than 5. WHERE cannot use aggregate functions.
INNER JOIN
Returns only the rows that match in both tables.
LEFT JOIN
Returns all rows from the left table plus matching rows from the right table, with NULL where there is no match.
Primary key (PK)
A column that uniquely identifies every row in a table. It must be unique and never NULL.
Foreign key (FK)
A column that links to another table's primary key to enforce referential integrity.
Normalization
Splitting tables into 1NF, 2NF, and 3NF to eliminate duplicate data and update anomalies.
ACID compliance
Atomicity, Consistency, Isolation, and Durability, which keep database transactions reliable.
NumPy
Fast multi-dimensional arrays (ndarray), vectorized math, and linear algebra.
Pandas
Tabular data library using Series (1D) and DataFrame (2D), with wrangling tools such as groupby() and merge().
Generative AI
AI that learns data patterns to create brand-new content such as text, images, audio, video, or code.
Discriminative AI
AI that classifies or predicts labels on existing data, such as deciding whether an email is spam.
Large Language Model (LLM)
Deep neural networks built on the Transformer architecture, trained on massive text data to predict the next token.
Hallucination
Making up false facts, citations, or URLs with confidence because LLMs predict plausible words rather than verifying truth.
Training set
Used to train the model. It typically holds about 70 to 80 percent of the data and adjusts the model's weights.
Validation set
Used to tune hyperparameters and check progress during training. It typically holds about 10 to 15 percent of the data.
Test set
Kept locked away until the very end to measure unbiased performance on brand-new data. It typically holds about 10 to 15 percent of the data.
Overfitting (high variance)
The model memorizes training noise, so it has high training accuracy but poor test accuracy. Fixes include more data, regularization, pruning, or dropout.
Underfitting (high bias)
The model is too simple to capture the pattern, so accuracy is poor on both training and test sets. Fixes include a more complex model or better features.
Deep learning
Multi-layered neural networks that automatically learn features from raw unstructured data, removing the need for manual feature engineering.
Supervised learning
Learning from labeled data (X, y) to predict numbers (regression) or categories (classification).
Unsupervised learning
Learning from unlabeled data (X) to find hidden groups or compress features.
Reinforcement learning (RL)
Learning optimal actions through trial and error to maximize cumulative reward, using methods such as Q-learning, DQN, and PPO.
Universal quantifier
The symbol for all, meaning the statement is true for every x. For example, for all x, if Dog(x) then Mammal(x).
Existential quantifier
The symbol for there exists, meaning the statement is true for at least one x. For example, there exists an x such that Cat(x) and Black(x).
Self-attention
Lets a Transformer track context across long passages by weighing how each word relates to every other word.
RAG (Retrieval-Augmented Generation)
Retrieval-Augmented Generation, which grounds an LLM's answers in retrieved sources to reduce hallucinations and misinformation.