Statistics for Data Science
- 125Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How do statistical and machine-learning approaches typically differ in where they begin?
Statistics typically starts with a question or problem and then collects data to address it. Machine learning often starts with available data and asks what patterns or information can be extracted from it.
Or swipe the card
125 cards
How do statistical and machine-learning approaches typically differ in where they begin?
Statistics typically starts with a question or problem and then collects data to address it. Machine learning often starts with available data and asks what patterns or information can be extracted from it.
Why should an analysis begin with a clearly framed question?
The question determines what data to collect, how to structure it, and which comparisons or analyses will be useful.
What are the three broad stages of analytics discussed in the content?
Descriptive, predictive, and prescriptive analytics.
What is descriptive analytics?
It summarizes or describes the data as observed, without itself making predictions or prescribing actions.
What question does predictive analytics address?
It uses data to estimate what may happen or what would happen under a change in conditions.
What question does prescriptive analytics address?
It recommends actions to achieve desired outcomes while meeting relevant objectives and constraints.
Why is prescriptive analytics often a complex optimization problem?
An action must balance multiple goals and constraints—for example, increasing sales while maintaining profits, cash flow, and workforce needs.
How do forecasting and prediction differ in common machine-learning usage?
Forecasting usually concerns what will happen over time; prediction can mean estimating an outcome from inputs without necessarily involving time.
What is statistical inference trying to do?
Use observed sample data to draw conclusions about a broader population or future observations, while accounting for uncertainty.
Why is a sample not identical to the underlying population distribution?
A sample contains random variation, so a different sample from the same population may produce different observations and summaries.
What is sampling variability?
Variation in results caused by observing a sample rather than the entire population; different samples can yield different estimates.
What is the purpose of validation data in model development?
It provides data held out from model fitting so performance can be checked on examples the model did not train on, offering evidence about generalization.
What is a data dictionary, and why is it useful?
It records what variables mean and may also describe their data types or computational roles, helping people and software interpret and process a dataset.
Why might an organization standardize how variables are stored?
A consistent representation can make data easier for existing algorithms and systems to process, though converting data can discard detail or impose limitations.
What does it mean for a model to be generalizable?
It performs usefully on new data beyond the data used to fit it; performance on training data alone does not establish this.
What is a nominal variable?
A categorical variable whose values are names or labels without an inherent order, such as gender or region.
What is an ordinal variable?
A categorical variable whose values have a meaningful order, such as a self-rating from poor to excellent fitness.
Why is a zip code categorical even though it is written as a number?
It identifies a location rather than a measurable quantity, so arithmetic such as averaging zip codes has no meaningful interpretation.
What kind of variable is a self-rated fitness score from 1 to 5?
It can be treated as ordinal categorical data because the scores represent ordered fitness levels, even if stored numerically.
What is the difference between a numerical and a categorical variable?
Numerical values represent quantities on which arithmetic may be meaningful; categorical values identify groups or labels.
What does a dataframe information summary generally describe?
Structural information about the data, such as variable names, stored types, and non-null counts; it is not the same as a statistical summary.
What does a statistical summary such as a describe operation provide for numerical variables?
It can report statistics such as the mean, standard deviation, minimum, quartiles, and maximum.
Why may a numerical summary be inappropriate for a categorical variable?
Statistics such as a mean are not meaningful for labels like male and female; categorical data needs an appropriate categorical summary.
What does a cross-tabulation summarize?
Counts for combinations of categories, such as product choice by gender or income group.
What is univariate analysis?
Analysis of one variable at a time, such as examining the distribution of customer ages.
What is bivariate analysis?
Analysis of the relationship or pattern between two variables.
What is multivariate analysis?
Analysis involving multiple variables together.
What does a histogram show?
It groups numerical observations into bins and displays the count or frequency in each bin, helping reveal a distribution's shape.
Why can a histogram's appearance change when its bins change?
Different bin boundaries or widths group observations differently, which can alter the displayed shape.
What is a box plot's box?
The box spans the lower quartile, Q1, to the upper quartile, Q3, and contains the middle 50% of observations; the line inside marks the median.
How are the whiskers and outliers commonly defined in the box-plot convention described?
Whiskers extend to the most extreme data points within 1.5 times the interquartile range of the box; points farther away are plotted separately as potential outliers.
What does a pair plot show?
It displays pairwise plots for numerical variables, often using histograms on the diagonal and relationships between variable pairs elsewhere.
Why can pair plots contain mirrored versions of the same relationship?
The plot for variable X versus Y mirrors the plot for Y versus X, so the two triangular halves repeat information.
What is a distribution plot intended to represent?
A smoothed estimate of an underlying distribution from sample data, rather than simply the individual observations or histogram counts.
What is the difference between a sample histogram and an estimated population distribution?
A histogram describes the observed sample; an estimated population distribution aims to represent the broader process that could generate this and future samples.
Why should a sample cover a range of relevant situations when estimating a distribution?
If important groups or conditions are missed, the sample may not represent the range of outcomes in the population, weakening conclusions about future observations.
What are the five numbers in the five-number summary?
The minimum, 25th percentile (Q1), median (50th percentile), 75th percentile (Q3), and maximum.
What does the median represent?
The middle of the ordered data: half the observations are at or below it and half are at or above it.
How do you calculate the mean of n observations?
Add all observations and divide by their count: ar{x} = rac{1}{n}\sum_{i=1}^{n} x_i.
How do you find the median in an ordered dataset?
Sort the observations and take the middle one; if there are an even number, average the two middle observations.
How do the mean and median differ in what they summarize?
The mean is the arithmetic average and is influenced by the magnitudes of all observations. The median is the middle position and is less sensitive to extreme values.
How does an extreme high value typically affect the mean and median?
It can pull the mean upward substantially, while the median often changes little because the middle position may remain similar.
What is a symmetric distribution, and how are its mean and median related?
A symmetric distribution has similar shape on both sides of its center; in a symmetric distribution, the mean and median coincide.
What does right skew indicate?
The distribution has a longer or more extended tail toward higher values; extreme high values can pull the mean above the median.
What does left skew indicate?
The distribution has a longer or more extended tail toward lower values; extreme low values can pull the mean below the median.
What is the range of a dataset?
The maximum value minus the minimum value.
What is the interquartile range (IQR)?
The difference between the upper and lower quartiles: extIQR=Q3−Q1. It spans the middle 50% of observations.
Why can the five-number summary be useful in product design?
It shows the central range and extremes of customer characteristics, helping designers consider which portion of users a product should accommodate.
What is variance in relation to standard deviation?
Variance is the average squared deviation from the mean (with the sample formula commonly using n−1); standard deviation is its square root.
What does standard deviation measure?
The typical scale of observations' deviations from the mean, expressed in the same units as the data.
Why are deviations from the mean squared when calculating variance?
Squaring makes positive and negative deviations contribute positively rather than canceling one another.
Why is the square root taken to obtain standard deviation?
Squaring deviations gives variance in squared units; taking the square root returns the measure to the original units.
What is mean absolute deviation (MAD) as described in the content?
A measure of spread based on averaging the absolute distances from the mean rather than squared distances; it is less sensitive to large deviations than standard deviation.
How does standard deviation respond to extreme observations compared with absolute-deviation measures?
Squaring makes large deviations contribute disproportionately, so standard deviation can be strongly affected by outliers; absolute-deviation measures are less sensitive.
What is covariance between two variables?
A measure of whether their deviations from their respective means tend to vary together; positive covariance indicates same-direction variation and negative covariance indicates opposite-direction variation.
What is the variance of a variable in terms of covariance?
The variance of X is its covariance with itself: extCov(X,X)=extVar(X), and standard deviation is the square root of variance.
Why is covariance's magnitude difficult to compare across measurements?
Its value depends on the units used for both variables, so changing units changes its magnitude.
What is correlation?
A unitless, standardized measure of the linear relationship between two variables, formed by scaling their covariance by their standard deviations.
What values can correlation take, and what do its endpoints indicate?
Correlation lies between −1 and 1. Values near 1 indicate a strong positive linear relationship; values near −1 indicate a strong negative linear relationship.
What does a positive correlation mean?
Values above the mean for one variable tend to occur with values above the mean for the other, and below-mean values tend to occur together.
What does a negative correlation mean?
Values above the mean for one variable tend to occur with values below the mean for the other, indicating an opposite-direction linear relationship.
Does zero correlation prove that two variables are unrelated?
No. It indicates little or no linear association, but a nonlinear relationship may still exist.
Does correlation establish that one variable causes another?
No. Correlation describes association and is symmetric in the variables; it does not establish causation or direction.
What is a correlation matrix?
A table of pairwise correlations among variables, typically calculated for numerical variables.
What is a heat map of correlations?
A color-coded display of correlation values that can help reveal patterns among many variables.
What is linear regression used to describe?
It represents the relationship between an outcome variable and one or more inputs with an equation such as Y = eta_0 + eta_1X_1 + eta_2X_2.
How are coefficients in a multiple linear regression interpreted descriptively?
A coefficient describes the modeled change in the outcome for a one-unit increase in its predictor, holding the other included predictors fixed.
What does the intercept in a regression equation represent?
The model's predicted outcome when all predictors equal zero; this value may not have a meaningful real-world interpretation if zero inputs are implausible.
How does ordinary least squares choose a regression line?
It chooses coefficients to minimize the sum of squared differences between observed outcomes and the model's predictions.
Why does least squares square the prediction errors?
Squaring prevents positive and negative errors from canceling and penalizes larger errors more heavily.
Can a regression equation be used for description, prediction, or prescription?
Yes. It can summarize relationships, predict outcomes for given inputs, or help examine which inputs could be changed to pursue a target, though these uses require different interpretations and evidence.
What does a regression coefficient's sign tell you?
It indicates the direction of the modeled relationship: a positive coefficient means the predicted outcome rises as the predictor rises, holding other included predictors fixed; a negative one means it falls.
Why might a zero correlation fail to capture a real relationship?
A nonlinear pattern can include regions of positive and negative association that cancel when summarized by a single linear correlation.
What is an event in probability?
An event is an outcome or collection of outcomes of an experiment.
What is a sample space?
The set of all possible outcomes of an experiment.
What numerical range does a probability occupy?
A probability is between 0 and 1, inclusive; 0 represents impossibility and 1 certainty.
What is empirical probability?
A probability estimated from observed occurrences or collected data, such as the proportion of observed cases in which an event occurred.
What is the difference between an experimental study and an observational study?
In an experimental study, the researcher designs or controls the conditions; in an observational study, the researcher observes outcomes without assigning the conditions.
What does it mean for events to be mutually exclusive?
They cannot occur together in the same trial; for example, a single drawn card cannot be both a king and a queen.
What does it mean for events to be independent?
Knowing that one event occurred does not change the probability of the other.
Are mutually exclusive events generally independent?
No. If one of two mutually exclusive events occurs, the other cannot occur, so learning about one changes the probability of the other.
When can the probability of a union be found by adding probabilities directly?
When the events are mutually exclusive: P(AextorB)=P(A)+P(B).
What is the general addition rule for two events?
P(AextorB)=P(A)+P(B)−P(AextandB); subtract the overlap so it is not counted twice.
When can probabilities of two events be multiplied directly?
When the events are independent: P(AextandB)=P(A)P(B).
How can the probability of an intersection be expressed using conditional probability?
P(AextandB)=P(A)P(B∣A), or equivalently P(B)P(A∣B).
What is conditional probability?
The probability of an event given that another event is known to have occurred: P(A∣B)=P(B)P(A and B), provided P(B)>0.
What is a marginal probability?
The probability of one event without conditioning on another, often obtained from the margins of a cross-tabulation.
What is a joint probability?
The probability that two events occur together, such as a family both buying a car and belonging to a specified income group.
How are joint, marginal, and conditional probabilities related?
A conditional probability is a joint probability divided by the relevant marginal probability; equivalently, a joint probability is a marginal probability multiplied by a conditional probability.
In a cross-tabulation, how do you calculate the probability of buying a car given income above a threshold?
Divide the number of families that both buy a car and exceed the income threshold by the total number of families above that threshold.
How does drawing cards without replacement affect successive probabilities?
The first draw changes the remaining deck, so the probability of the second outcome depends on the first draw.
How does drawing cards with replacement affect successive probabilities?
Replacing the first card restores the original composition, so the second draw has the same probabilities as the first and the draws can be treated as independent.
What is Bayes' theorem for updating a probability?
P(A∣B)=P(B)P(B∣A)P(A), when P(B)>0.
How can Bayes' theorem be written when an event and its complement are the two possible causes of evidence?
P(A∣B)=P(B∣A)P(A)+P(B∣¬A)P(¬A)P(B∣A)P(A).
Why is Bayes' theorem useful for spam classification?
It converts probabilities of words given spam or non-spam messages into the probability that a message is spam given its words.
In Bayesian terminology, what are prior and posterior probabilities?
A prior is a probability before incorporating new evidence; a posterior is the updated probability after taking the evidence into account.
Why can a positive result from a highly accurate test still imply a much lower probability of disease than expected?
If the disease is rare, many more people without the disease may be tested than people with it; even a small false-positive rate can therefore produce many false positives among all positive results.
What are sensitivity and specificity?
Sensitivity is the probability a test is positive given that the condition is present. Specificity is the probability it is negative given that the condition is absent.
Why might repeating a positive test improve evidence for a condition?
If the repeat test has independent errors, requiring two positive results can greatly reduce the chance of a false positive; repeating the same process does not help as much if its errors are dependent.
What does a probabilistic classifier provide when identical inputs can have different outcomes?
It can estimate probabilities for the possible outcomes rather than pretending the input determines one certain outcome.
What is the binomial distribution used to model?
The number of successes in a fixed number of independent trials when each trial has the same probability of success.
What assumptions define a binomial setting?
There is a fixed number of trials, each trial has two outcomes, trials are independent, and the success probability p is constant.
What is the binomial probability mass function?
For x successes in n trials with success probability p, P(X=x)=(xn)px(1−p)n−x.
What does (xn) represent in the binomial formula?
The number of ways to choose which x of the n trials are successes.
In a binomial model, what does 1−p represent?
The probability of failure on a single trial.
What is the expected number of successes in a binomial distribution?
np, where n is the number of trials and p is the success probability per trial.
What is the variance of a binomial distribution?
np(1−p).
How can a binomial distribution model sales or service planning?
It can estimate the probabilities of different numbers of successful sales, timely payments, or other outcomes across a fixed number of independent opportunities.
What does the Poisson distribution model?
The count of events in a specified interval when events occur at a given average rate, without a fixed number of trials.
What is the Poisson probability mass function?
For a count x and rate parameter λ, P(X=x)=x!e−λλx.
What does the Poisson parameter λ represent?
The expected event count in the specified interval; it also determines the distribution's rate.
How does a Poisson model differ from a binomial model?
A binomial model counts successes among a fixed number of trials; a Poisson model counts events in an interval without specifying a fixed maximum number of opportunities.
Give examples of counts that may be modeled with a Poisson distribution.
Counts such as customer arrivals per time interval, fraud cases, or defects, when the count has no fixed trial total in the model.
What is the normal distribution?
A continuous, symmetric, bell-shaped distribution characterized by its mean μ and standard deviation σ.
Under a normal distribution, approximately what proportion lies within one standard deviation of the mean?
About 68% lies between μ−σ and μ+σ.
Under a normal distribution, approximately what proportion lies within two standard deviations of the mean?
About 95% lies between μ−2σ and μ+2σ.
Under a normal distribution, approximately what proportion lies within three standard deviations of the mean?
About 99.7% lies between μ−3σ and μ+3σ.
How do the mean and standard deviation determine probabilities in a specified normal model?
They locate and scale the distribution, allowing probabilities to be calculated as areas under its curve.
How can you calculate the probability that a normally distributed value is greater than a threshold a?
Use the complement of the cumulative probability: P(X>a)=1−P(X≤a).
How can you calculate the probability that a normal value lies between a and b?
Subtract cumulative probabilities: P(a<X≤b)=P(X≤b)−P(X≤a).
What does the cumulative distribution function (CDF) give?
For a value x, it gives the probability that the variable is at or below that value: F(x)=P(X≤x).
Why is the normal distribution often used as an approximation?
Sums or averages of many contributing effects can often be approximately normal under suitable conditions, as described by the central limit theorem.
Does every dataset have a normal distribution?
No. Normality is an assumption that may be useful in some settings, but data can have other shapes, including strong skew; methods should suit the context and assumptions.
What is the central limit theorem's broad implication for sums or averages?
Under suitable conditions, the distribution of sums or averages of many contributions can be approximately normal, even when individual contributions are not normally distributed.
What is the Six Sigma rule of thumb for a normal distribution?
A range of μ±3σ contains about 99.7% of observations, leaving about 0.3% outside it.

Ask anything
We've read this whole study set, so questions about it get the best answers.