Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 57 ยท Getting Started

What Is Statistics?

Learn what statistics is, why it matters, how descriptive and inferential statistics differ, and how the statistical thinking cycle turns raw data into decisions.

Statistics is the science of learning from data. Every day you meet numbers that are noisy, incomplete or surprising: the average delivery time of a food app, the share of voters who support a policy, the effect of a new medicine. Statistics gives you tools to summarize those numbers, to judge how far you can trust them, and to make decisions when the answer is uncertain.

Probability is the sister subject. Probability starts with a known process (a fair die, a machine with a known defect rate) and asks what data it will produce. Statistics runs the other way: it starts with data and asks what process most likely produced it. This course teaches both, in that order of need: you describe data, learn the language of chance, and then use chance to reason about data.

Why statistics matters

Data without statistics invites bad conclusions. Imagine two clinics. Clinic A cured 9 of 10 patients and clinic B cured 880 of 1,000. Which is better? Nine out of ten is 90%, but ten patients is a tiny sample, so luck could explain the result easily. Statistics lets you put a number on that doubt.

You will find statistical thinking in:

  • Science and medicine: clinical trials, epidemiology, lab experiments.
  • Business: A/B tests, demand forecasting, quality control, pricing.
  • Technology: machine learning, search ranking, spam filters, performance monitoring.
  • Daily life: polls, sports analytics, weather forecasts, insurance.

Statistics turns data into decisions

Collect Gather data
Clean Fix errors
Describe Summarize it
Infer Generalize

Each step feeds the next.

1 / 2

Descriptive statistics

Descriptive statistics summarize the data you actually have. Averages, percentages, tables and charts all belong here. If you measure the heights of every student in one class and report the mean, you are describing that class, nothing more.

Chapter 2 covers this branch in depth: measures of center, spread and shape.

Inferential statistics

Inferential statistics use a sample to say something about a larger population you did not fully observe. A poll of 1,200 voters is used to estimate the opinion of 40 million. Because a sample is only a slice, inference always comes with uncertainty, and the whole craft is about stating that uncertainty honestly: confidence intervals, p-values and probabilities. You will meet these in later chapters. The next lessons introduce the vocabulary: types of data and population versus sample.

The same number can be descriptive or inferential depending on how you use it. "The average of these 30 students is 72" is descriptive. "The average of all students in the country is probably near 72" is inferential.

The statistical thinking cycle

Good analysis is a loop, not a straight line:

  1. Ask a precise question. "Do users like the new design?" is vague. "Does the new checkout raise the share of completed purchases?" can be tested.
  2. Collect data in a way that matches the question (see sampling and experiments later in the course).
  3. Explore and summarize with tables and plots before any formal method.
  4. Model or test using probability to separate signal from noise.
  5. Communicate the result, including what you are unsure about.
flowchart LR
    Q["Question"] --> D["Collect data"]
    D --> E["Explore and summarize"]
    E --> M["Model or test"]
    M --> C["Communicate"]
    C --> Q

The cycle repeats: each answer usually raises a sharper question.

Your first numbers

You do not need heavy math to start. This example computes basic summaries for the daily sales of a small shop.

Python Summarize a week of sales

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

All of these are descriptive statistics: they say something about these seven days only. Whether next week will look similar is an inferential question.

Statistics and uncertainty

Randomness is not a flaw in the data, it is a fact of life. Two identical coins flipped 10 times will rarely give the same number of heads. The next example flips a fair coin 10 times in five separate experiments. The seed makes the result repeatable.

Python Same coin, different results

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The coin never changed, yet the head count varies from run to run. A statistician's job is to decide when a variation is just chance and when it signals something real. Keep that in mind: it is the central theme of the whole course.

Common misunderstandings

  • Statistics is not just averages. The spread, the shape and the way data were collected matter as much.
  • A big number is not automatically important. Sample size and variability decide whether a difference is meaningful.
  • Correlation is not causation. Ice cream sales and sunburns rise together, but neither causes the other; summer causes both.
  • Statistics cannot rescue bad data. A biased sample stays biased, however clever the math.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A researcher reports the mean score of all 500 students in her school. Which branch is this?

    She summarizes the data she has for the whole group, without generalizing beyond it.
  2. 2. A poll of 1,000 voters is used to estimate national support for a law. This is...

    A sample is used to draw conclusions about a larger population, which is inference.
  3. 3. Which statement best separates probability from statistics?

    Probability goes from model to data, statistics from data back to the model.
  4. 4. Clinic A cured 9 of 10 patients, clinic B 880 of 1,000. Why is it risky to call A better?

    Small samples vary a lot, so the 90% figure is far less reliable than the 88% figure.

Summary

  • Statistics is the science of learning from data under uncertainty.
  • Descriptive statistics summarize the data in hand; inferential statistics generalize from a sample to a population.
  • Probability reasons from a model to data; statistics reasons from data to a model.
  • Good analysis is a cycle: question, collect, explore, model, communicate.
  • Randomness is normal, and the goal is to separate real effects from chance.

Next: Types of Data