Skip to content

Introduction to Data Science final exam review

The topics, worked on a live board with an AI tutor.

Units

  1. Data tables and tidy data

    • Tables, rows and variables
    • Tidy data
    • Grouping and aggregating
    • Joining tables

    Practice

    What is the Bike docks value in Miami’s row?Answer

    20 docks

    Hint: Follow Miami’s row to the Bike docks column

    If South’s count of 90 were instead under a 10 April 2025 heading, what branch-date position would it need?Answer

    S | 2025-04-10

    Hint: Pair the branch with the heading’s date

  2. Exploratory analysis and visualization

    • Visualizing one variable
    • Visualizing relationships
    • Principles of good graphics

    Practice

    How many more respondents drive than walk or bike combined?Answer

    32

    Hint: 86 − (24 + 30)

    On the scatter plot, a thirteenth day at 15 °C had 8 hundred rentals (it rained). How would you describe that dot?Answer

    An outlier: far below the pattern of about 24 hundred at that temperature

    Hint: Compare it with its neighbours at 14 and 16 °C

  3. Summary statistics

    What exams ask

    Standard units let you compare a commute with an age, or a score on one test with a score on another, on one scale; Chebyshev says what the SD promises when you know nothing about the shape.

    • Measures of center
    • Measures of spread
    • Standard units and Chebyshev's bound

    Practice

    Four respondents commute 10, 20, 30 and 60 minutes. Find the mean and the deviation of the 60.Answer

    Mean 30 minutes; deviation +30

    Hint: The sum is 120

    Find Q1, Q3 and the IQR of 4, 6, 7, 9, 12, 14, 20, 25.Answer

    Q1 6.5, Q3 17, IQR 10.5

    Hint: The lower half is 4, 6, 7, 9 and the upper half 12, 14, 20, 25

  4. Data cleaning

    • Missing values
    • Fixing types and formats
    • Outliers and validity checks

    Practice

    A column of ages contains 34, −1, 52, 27, −1, 61, where −1 means no answer. How many values are missing, and what is the mean of the rest?Answer

    2 missing; the mean of 34, 52, 27, 61 is 43.5

    Hint: Recode −1 to NaN before averaging

    Convert "2 h", "45 min", "0.25 hr" and "50" to minutes and give their mean.Answer

    120, 45, 15, 50; mean 57.5 minutes

    Hint: Hours times 60

  5. Sampling and bias

    • Probability samples
    • Sources of bias
    • Observational studies and experiments

    Practice

    A company emails 300 of its 12,000 customers and finds 41% would renew. Name the population, the sample, the parameter and the statistic.Answer

    Population all 12,000 customers; sample the 300 emailed; parameter the share of all customers who would renew; statistic 41%

    Hint: The parameter is about everyone

    A fitness app reports that its users walk 9,000 steps a day on average and claims this is typical of adults. Name the bias.Answer

    Selection bias from a convenience sample: app users are likely more active than adults in general

    Hint: Who chooses to install a fitness app?

  6. Simulation and the bootstrap

    • Simulating chance
    • Sampling distributions by simulation
    • Bootstrap resampling

    Practice

    Say how you would simulate a fair coin with a random whole number from 1 to 2.Answer

    Let 1 mean heads and 2 mean tails

    Hint: Pick which number stands for which face

    Draw a sample of 10 delivery times from the population and report its mean; does it equal 30?Answer

    The mean will be near 30 but almost certainly not exactly 30

    Hint: Your sample is only 10 of the 5,000

  7. Hypothesis testing by permutation

    What exams ask

    companies, labs and clinics decide whether a new version really beats the old one, and a permutation test answers that using only the data and a shuffle, with no formula to trust blindly

    • Assessing a model by simulation
    • A/B testing with permutations
    • P-values and errors

    Practice

    A different county draws a panel of 50 from a population that is 40% Black. State the chance model and the expected number of Black members.Answer

    Each member is a random draw with P(Black) = 0.40; expected 0.40 × 50 = 20

    Hint: Multiply the population share by the panel size

    page C times 4, 6, 5, 5 and page D times 8, 10, 9, 9: what is the observed difference D minus C?Answer

    4.0

    Hint: The means are 5.0 and 9.0

  8. Correlation and prediction

    • The correlation coefficient
    • The regression line
    • Prediction error

    Practice

    A student studied 2 hours and scored 58. Give x and y in standard units and the product.Answer

    x = −1, y ≈ −0.92, product ≈ 0.92

    Hint: Subtract the mean, then divide by that SD

    A father is 63 in tall. Predict his son's height in standard units, then in inches.Answer

    Father is (63 − 68)/2.5 = −2 SU; son −1 SU; 69 − 2.7 = 66.3 in

    Hint: Change the father to standard units first

  9. Linear regression

    • Least squares by optimization
    • Regression with several features
    • Inference for the slope

    Practice

    Line C, y = 6x + 48, predicts 54, 60, 66, 72 and 78 for the five students; find its MSE.Answer

    Residuals −2, 0, −5, −2, −1, squares 4, 0, 25, 4, 1, sum 34, so MSE = 6.8

    Hint: Subtract each prediction from the actual score before you square

    Using ŷ = 160 + 85·size + 40·city, predict the price of a 250 m² suburb home.Answer

    372.5 thousand dollars

    Hint: Size is 2.5, city is 0

  10. Classification

    • The k-nearest neighbors classifier
    • Distance and feature scaling
    • Decision boundaries and accuracy

    Practice

    A fruit at (175 g, 3) arrives; looking at the plot, which training fruit looks closest, and what label would copying it give?Answer

    P1 at (170, 3), Pear

    Hint: Look for the dot right beside it

    Find the distance between (2, 1) and (5, 5)Answer

    5

    Hint: The differences are 3 and 4

  11. Train/test split and overfitting

    What exams ask

    a model tuned by repeatedly peeking at the test set reports a score that looks better than it will be on new data, and data scientists are judged on the honest number

    • Training and test sets
    • Overfitting and model complexity
    • Cross-validation for model choice

    Practice

    A model stores 8 rows and is scored on those same 8 rows with 1-nearest-neighbour. What accuracy does it get, and what does that tell you about new data?Answer

    100%, and nothing, because it only shows memory of stored rows

    Hint: Who is each stored row's nearest neighbour?

    The same 12 points are fit with a degree-12 polynomial. Predict: is training error near 0, and is test error likely large or small?Answer

    Training error is exactly or nearly 0; test error is likely large

    Hint: a degree-11 or higher curve can pass exactly through 12 points

  12. Ethics and privacy

    • Privacy and re-identification
    • Fairness and bias in algorithms
    • Responsible data practice

    Practice

    A table drops names but keeps hair colour, favourite colour and eye colour of 40 classmates. Which columns are quasi-identifiers, and is it likely anonymous?Answer

    All three are quasi-identifiers; mostly anonymous since many classmates share these, but anyone with a unique combination is exposed

    Hint: Count how many students share each combination

    Group C and Group D both truly have 10% re-offending, but D is checked three times as often and shows 18% in the records. Which group's score will the model call riskier, and why?Answer

    Group D, because the records show a higher rate though the true rates are equal

    Hint: The model only sees the records

Questions

What does the Introduction to Data Science review cover?

Every unit of the course, 12 in all. Pick one and Helio teaches it on the board, then asks you questions. Data tables and tidy data; Exploratory analysis and visualization; Summary statistics; Data cleaning; Sampling and bias; Simulation and the bootstrap; Hypothesis testing by permutation; Correlation and prediction; Linear regression; Classification; Train/test split and overfitting; Ethics and privacy.

Can it help the week before my final?

Yes. Pick a topic, and Helio explains it, checks you and goes over what you miss.

Is it the same as my class?

It follows the usual topics of Introduction to Data Science. For anything else on your syllabus, type the topic and Helio teaches that too.

How much is free?

30 minutes a month for one learner, with no card. Starter is free for 7 days with a card: cancel in time and pay nothing.

A tutor you can talk to

30 minutes every month. No card.