Data Science & AI

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/70

encourage image

There's no tags or description

Looks like no tags are added yet.

71 Terms

1
New cards

Data science

Combines statistics, computer science, and domain knowledge to turn raw data into predictions and decisions.

2
New cards

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.

3
New cards

Structured data

Rigid rows and columns, such as SQL tables, CSV files, and Excel sheets, that are easy to search and query.

4
New cards

Semi-structured data

Data that uses tags or key-value pairs instead of rigid tables, such as JSON, XML, and HTML.

5
New cards

Unstructured data

Data with no predefined format, such as images, audio, video, PDFs, raw text, and emails, that needs feature extraction or deep learning.

6
New cards

Discrete data

Countable whole numbers, such as the number of clicks or students in a class.

7
New cards

Continuous data

Numeric data measured on a sliding scale with decimals, such as height, weight, or temperature.

8
New cards

Nominal data

Categorical labels with no order, such as eye color, zip code, or country.

9
New cards

Ordinal data

Categorical labels with a ranked order but unequal gaps between ranks, such as class year or 1 to 5 star ratings.

10
New cards

Converting binary to decimal

Add the place values (powers of 2) where there is a 1. For example, binary 1101 equals decimal 13.

11
New cards

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.

12
New cards

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.

13
New cards

Primary data

Data collected firsthand through surveys, experiments, IoT sensors, APIs, or web scraping.

14
New cards

Secondary data

Data collected by someone else, such as US Census data, Kaggle datasets, government databases, or company archives.

15
New cards

Min-max normalization

Scales values into the range 0 to 1 using x' = (x - min) / (max - min).

16
New cards

Z-score standardization

Centers data around a mean of 0 with a standard deviation of 1 using z = (x - mu) / sigma.

17
New cards

One-hot encoding

Turns nominal categories into binary 0/1 columns so algorithms do not invent fake rankings.

18
New cards

Label encoding

Assigns integers such as 0, 1, 2 to ordinal categories.

19
New cards

Clean and wrangle data stage

The stage that takes 60 to 80 percent of total project time.

20
New cards

Exploratory data analysis (EDA)

Summary statistics and charts used to understand the data before modeling.

21
New cards

Deploy and monitor stage

Launching a model to production and watching for accuracy drop or data drift.

22
New cards

Mean

The average of the values, found by summing them and dividing by n. It is pulled strongly by outliers.

23
New cards

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.

24
New cards

Mode

The most frequent value. A dataset can have zero, one, or multiple modes.

25
New cards

Range

The maximum minus the minimum. It is very sensitive to outliers.

26
New cards

Variance

The average of squared distances from the mean. Sample variance divides by n minus 1.

27
New cards

Standard deviation

The square root of variance, measuring average spread in the same units as the data.

28
New cards

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.

29
New cards

Correlation (r)

Covariance scaled to a value between -1 and +1.

30
New cards

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.

31
New cards

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.

32
New cards

Expected value E[X]

The long-run weighted average of a random variable, found by summing each outcome times its probability.

33
New cards

Discrete random variable

Countable outcomes, such as coin flips or a binomial distribution, described by a probability mass function (PMF).

34
New cards

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.

35
New cards

Histogram

A chart for one continuous variable showing frequency distribution and skew, with bars that touch.

36
New cards

Bar chart

A chart for one categorical variable that compares counts across groups, with gaps between bars.

37
New cards

Boxplot

Shows the five-number summary and IQR, and flags outliers more than 1.5 times the IQR beyond the quartiles.

38
New cards

Scatterplot

A chart of two continuous variables that shows correlation, direction, clusters, and outliers.

39
New cards

Heatmap

A matrix or correlation table that uses color intensity to highlight high and low values.

40
New cards

Multiple linear regression

Predicts a continuous number from several inputs and is evaluated with R squared and RMSE.

41
New cards

Logistic regression

Used for binary classification. It outputs a probability between 0 and 1 using an S-shaped sigmoid curve.

42
New cards

Principal Component Analysis (PCA)

Compresses many correlated features into fewer uncorrelated components while keeping maximum variance.

43
New cards

Imputation

Filling missing values with the mean, the median for skewed data, or the mode for categories.

44
New cards

K-Means clustering

Groups unlabeled data into k clusters around the nearest centroids.

45
New cards

Decision tree

A flowchart of if-else rules that splits data using Gini impurity or entropy (information gain).

46
New cards

SQL HAVING clause

Filters groups or aggregates, such as COUNT(*) greater than 5. WHERE cannot use aggregate functions.

47
New cards

INNER JOIN

Returns only the rows that match in both tables.

48
New cards

LEFT JOIN

Returns all rows from the left table plus matching rows from the right table, with NULL where there is no match.

49
New cards

Primary key (PK)

A column that uniquely identifies every row in a table. It must be unique and never NULL.

50
New cards

Foreign key (FK)

A column that links to another table's primary key to enforce referential integrity.

51
New cards

Normalization

Splitting tables into 1NF, 2NF, and 3NF to eliminate duplicate data and update anomalies.

52
New cards

ACID compliance

Atomicity, Consistency, Isolation, and Durability, which keep database transactions reliable.

53
New cards

NumPy

Fast multi-dimensional arrays (ndarray), vectorized math, and linear algebra.

54
New cards

Pandas

Tabular data library using Series (1D) and DataFrame (2D), with wrangling tools such as groupby() and merge().

55
New cards

Generative AI

AI that learns data patterns to create brand-new content such as text, images, audio, video, or code.

56
New cards

Discriminative AI

AI that classifies or predicts labels on existing data, such as deciding whether an email is spam.

57
New cards

Large Language Model (LLM)

Deep neural networks built on the Transformer architecture, trained on massive text data to predict the next token.

58
New cards

Hallucination

Making up false facts, citations, or URLs with confidence because LLMs predict plausible words rather than verifying truth.

59
New cards

Training set

Used to train the model. It typically holds about 70 to 80 percent of the data and adjusts the model's weights.

60
New cards

Validation set

Used to tune hyperparameters and check progress during training. It typically holds about 10 to 15 percent of the data.

61
New cards

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.

62
New cards

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.

63
New cards

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.

64
New cards

Deep learning

Multi-layered neural networks that automatically learn features from raw unstructured data, removing the need for manual feature engineering.

65
New cards

Supervised learning

Learning from labeled data (X, y) to predict numbers (regression) or categories (classification).

66
New cards

Unsupervised learning

Learning from unlabeled data (X) to find hidden groups or compress features.

67
New cards

Reinforcement learning (RL)

Learning optimal actions through trial and error to maximize cumulative reward, using methods such as Q-learning, DQN, and PPO.

68
New cards

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).

69
New cards

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).

70
New cards

Self-attention

Lets a Transformer track context across long passages by weighing how each word relates to every other word.

71
New cards

RAG (Retrieval-Augmented Generation)

Retrieval-Augmented Generation, which grounds an LLM's answers in retrieved sources to reduce hallucinations and misinformation.