Data Science Final Exam Review Flashcards

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

1/43

flashcard set

Earn XP

Description and Tags

Comprehensive review flashcards covering Python data types, Table operations, visualization techniques, statistical concepts, and hypothesis testing based on the final lecture transcript.

Last updated 10:32 PM on 6/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

44 Terms

1
New cards

% (Modulo Operator)

A special expression in Python that returns the remainder from division.

2
New cards

** (Exponent Operator)

A special expression in Python that returns the first number raised to the power of the second number.

3
New cards

Integers (int)

Whole numbers of any size (e.g., 11, 33, 55) that never have a decimal point in Python.

4
New cards

Floats (float)

Numbers with an optional fractional part (decimal) that have a limited precision of 1515-1616 decimal places.

5
New cards

Strings

A data type consisting of a series of characters surrounded by quotation marks, such as "Hello, world!", 'eight', or '10'.

6
New cards

Arrays

A sequence of values where all elements should have the same data type and arithmetic is applied to each element individually.

7
New cards

Ranges

An array of consecutive numbers created using functions like np.arange(start,end,step)np.arange(start, end, step) which always include the start but exclude the end.

8
New cards

Lists

Created with square brackets [][], these can contain mixed data types and are commonly used to group by multiple columns in Tables.

9
New cards

Booleans

A data type with two possible values, TrueTrue or FalseFalse, often used in functions or as the output of comparison statements.

10
New cards

Table

A sequence of labeled columns where each row represents one individual and columns represent attributes.

11
New cards

t.select(label)

A table operation that constructs a new table containing only the specified columns.

12
New cards

t.drop(label)

A table operation that constructs a new table in which the specified columns are omitted.

13
New cards

t.where(label, condition)

A table operation that constructs a new table with just the rows that match a specific condition.

14
New cards

t.column(label)

An operation that pulls a column out of a table as an array of its values.

15
New cards

apply()

A method that creates an array by calling a specific function on every element in one or more input columns.

16
New cards

Pivoting

Converting a table from long form to wide form to cross-classify according to two categorical variables, producing a grid of counts or aggregated values.

17
New cards

Joining/Merging

The process of combining tables using the .join().join() method; rows are dropped if values in the common column are not present in both tables.

18
New cards

Scatter plot

A visualization produced by t.scatter()t.scatter() that shows the relationship between two quantitative (numerical) variables.

19
New cards

Line plot

A visualization produced by t.plot()t.plot() that is useful for plotting trends of a numerical variable over a sequential variable like time.

20
New cards

Bar charts

A visualization produced by t.barh()t.barh() used to display the distribution of a categorical variable.

21
New cards

Histogram

A chart that displays the distribution of a numerical variable using bins, where height represents density and area represents percent.

22
New cards

Histogram Height Formula

Height=% in binwidth of binHeight = \frac{\% \text{ in bin}}{\text{width of bin}}

23
New cards

Histogram Area

Area of bar=% in bin=Height×width of binArea \text{ of bar} = \% \text{ in bin} = Height \times \text{width of bin}

24
New cards

Addition Rule (OR)

If event AA can happen in exactly one of two ways, then P(A)=P(first way)+P(second way)P(A) = P(\text{first way}) + P(\text{second way}).

25
New cards

Multiplication Rule (AND)

The chance that two events AA and BB both happen in order: P(A happens)×P(B happens given that A has happened)P(A \text{ happens}) \times P(B \text{ happens given that } A \text{ has happened}).

26
New cards

Systematic sample

A sampling method where subjects are lined up in order and every nth subject is sampled.

27
New cards

Deterministic sample

A sampling scheme where the procedure is set by the researcher and does not involve chance.

28
New cards

Random sample

A sample where individuals are drawn at chance equal to their proportion in the population, requiring known selection probabilities.

29
New cards

Empirical Distribution

A distribution based on observations from repetitions of an experiment or simulated observations.

30
New cards

Probability Distribution

A theoretical distribution that mathematically describes all possible values of a quantity and their true probabilities.

31
New cards

Parameter

A "true" number associated with the total population, such as the true average height of all college students.

32
New cards

Statistic

A number calculated from a sample (e.g., sample average) used as an estimate of a parameter.

33
New cards

Confounding Variables

A hidden, external factor that influences both independent and dependent variables, creating misleading associations.

34
New cards

Observational Study

A study that involves passively watching and measuring variables as they naturally occur, revealing associations but not causation.

35
New cards

Experiment

A study where the researcher actively applies a treatment to different groups, often through random assignment, to establish cause-and-effect.

36
New cards

Null Hypothesis (H0H_0)

A well-defined probability model about how data were generated, where small differences are attributed to random chance.

37
New cards

Alternative Hypothesis (HaH_a)

A different view about the origin of data suggesting that observed data are not consistent with the null model.

38
New cards

Bootstrapping

A resampling technique where new samples of the same size as the original are drawn at random with replacement to estimate population parameters.

39
New cards

Confidence Interval

An interval of estimates of a parameter; for example, a 95%95\% interval shows the middle 95%95\% of the bootstrapped data.

40
New cards

P-value

The probability of obtaining a result as extreme as, or more extreme than, the one actually observed, assuming the null hypothesis is true.

41
New cards

Statistically Significant

A result where the p-value is less than 0.050.05, suggesting the data supports the alternative hypothesis over the null.

42
New cards

Central Limit Theorem

The principle that the probability distribution of the sum or mean of a large random sample drawn with replacement will be roughly normal.

43
New cards

Normal Distribution Rule

In a bell-shaped curve, 68%68\% of observations are within 11 SD of the mean, 95%95\% within 22 SD, and approximately 99%99\% within 33 SD.

44
New cards

Z-Scores

A measure used to find how many standard deviations an observation is from the mean, helping to standardize comparisons and identify outliers.