RedLectern topic

Data Science

Learn how to frame questions, inspect data, reason with statistics, and assess predictive models.

For: Learners at any starting point, including people new to programming or statistics.

After this page you can: Plan a basic data investigation and explain what its evidence supports and leaves uncertain.

Page reviewed

Part of: Computer Science

About Data Science

Data science is applied work with data that uses computation, statistical ideas, and modeling to investigate questions. This hub covers preparing and inspecting data, quantifying uncertainty or relationships, and building or assessing predictive models. Machine learning is one possible modeling route within broader work with data.

A practical way to study is to begin with a question and a dataset, inspect and transform the data, use statistical methods to summarize or infer, then assess predictions with evidence set aside during model development. These steps connect data science to programming and machine learning, while leaving room for different methods and goals.

Start here

route

I’m new to data science

Start with MIT’s introductory computational thinking and data science course, which is intended for learners with little or no programming experience.

Start with: Introduction to Computational Thinking and Data Science

route

I’m returning and want to refresh my data exploration

Use NIST’s exploratory data analysis chapter to revisit graphical and quantitative ways to examine a dataset.

Start with: Exploratory Data Analysis

route

I want to build and assess a predictive model

Follow Google’s Machine Learning Crash Course modules on data, models, and evaluation; its modules are self-contained, so you can focus on a particular topic.

Start with: Machine Learning Crash Course

Learn the foundations

1.Frame a question and understand the dataBegin by connecting the question you want to investigate to the examples and variables available in the dataset.

Begin by connecting the question you want to investigate to the examples and variables available in the dataset.

Dataset

A collection of examples.

Feature

A variable that may be used as input to a model.

Try it

Suppose a table records a plant’s species and height. Name one possible example and one possible feature.

One example is a single plant’s row; height is one possible feature.

2.Explore data before choosing a methodExploratory data analysis uses techniques, mostly graphical, to reveal structure, notice anomalies, and check assumptions.

Exploratory data analysis uses techniques, mostly graphical, to reveal structure, notice anomalies, and check assumptions.

Exploratory data analysis

An approach to examining data to gain insight into its structure and assumptions.

Graphical technique

A visual method for examining data, such as a plot.

Try it

A dataset has one unusually large value. Name one exploratory step you could take before deciding what to do with it.

Plot the values and inspect the unusually large observation in context before deciding whether it is an error or a meaningful value.

3.Use statistics to reason from a sampleStatistical inference uses sample data to estimate or draw conclusions about a population, while acknowledging uncertainty in those estimates.

Statistical inference uses sample data to estimate or draw conclusions about a population, while acknowledging uncertainty in those estimates.

  • Collecting Data

    The lesson introduces populations, samples, and the distinction between population parameters and sample statistics.

Population parameter

A measure concerning a population.

Confidence interval

A range computed from sample statistics to estimate an unknown population parameter at a stated confidence level.

Try it

A sample survey estimates that 40% of respondents prefer option A. What does a confidence interval add to that estimate?

It gives a range of plausible values for the population proportion, using the sample data and a stated confidence level.

4.Represent data and build modelsModeling requires choosing how raw values are represented, and statistical or machine-learning methods can serve different questions.

Modeling requires choosing how raw values are represented, and statistical or machine-learning methods can serve different questions.

Feature vector

An array of feature values representing one example for a model.

Feature engineering

Converting raw data into representations suitable for a model.

Try it

A model uses a person's age and a text category for an example. Name a data-preparation issue to consider.

The text category may need to be represented numerically before it can be included in the model’s feature vector.

5.Evaluate models with separate evidenceUse validation data to guide model development and reserve test data for a final check on examples not used for training.

Use validation data to guide model development and reserve test data for a final check on examples not used for training.

  • SLR Model Assumptions

    This lesson introduces residual analysis as a way to assess whether a simple linear regression model’s assumptions are reasonable.

Training set

The examples used to train a model.

Test set

A separate set of examples used to evaluate a trained model.

Try it

You repeatedly change a model after reviewing its test results. What is one risk?

You may start fitting the model to peculiarities of that test set, making it a weaker check of performance on new examples.

Latest

No recent updates are available.

See the sources list

Books

Glossary

Every free Data Science course and book on RedLectern

Free Data Science online courses

  1. Introduction to Computational Thinking and Data ScienceMIT 6.0002 · Browse materials · Video
  2. Collaborative Data Science for HealthcareMIT HST.953 · Open on OCW
  3. Topics in Mathematics of Data ScienceMIT 18.S096 · Open on OCW
How these courses are chosen

Listed as Data Science courses:

  • those whose title contains “Data Science”, or
  • those tagged “Data Science” as one of at most 2 topic tags, or as the first of 3.

Free Data Science textbooks and books

Show all 26 booksShow fewer books

Questions and comments