Saltar al contenido

Lección 5 · Collecting and Judging Data

Where Data Comes From

Compare surveys, experiments, observation, sensors, business records and public datasets, learn primary versus secondary data and design clear questions.

Every dataset has a history. Someone decided to collect it, chose a method and recorded it with some tool. The method shapes what the numbers can tell you. A survey of website visitors, a temperature sensor and a hospital record can all produce neat columns, yet they fail in very different ways. In this lesson you meet the main sources of data and the questions that come with each.

Primary and secondary data

  • Primary data is collected by you (or your team) for your question.
  • Secondary data was collected by someone else, often for a different purpose, and you reuse it.

Primary data fits your question but costs time and money. Secondary data is often quick and large, but its definitions, coverage and dates may not match what you need.

The main methods

Ways to collect

Surveys Ask people
Experiments Change and compare
Observation Watch what happens
Automatic logs Sensors and systems
1 / 2

Surveys and interviews can capture opinions and experiences that no machine records. But people may forget, guess, give answers they think sound good, or not reply at all.

Experiments change something on purpose and compare the results with a group where nothing changed. When groups are assigned at random, experiments are the strongest tool for finding cause and effect. We cover that in Correlation and Causation.

Observation records behavior without changing it, for example counting bicycles on a bridge. It shows what happens, not why. People who know they are watched may also behave differently.

Sensors and system logs produce data automatically: GPS positions, website clicks, machine temperatures. They are fast and detailed, but sensors drift or break, logs can record bots as people, and a software update can change what is counted.

Administrative and business records exist to run an organization: sales, school enrollments, support tickets. They are often large, but they only include people and events that pass through the system.

Public and open data from governments, researchers and international bodies is often well documented. Read the notes about definitions, revisions and licensing before you reuse it.

Writing good survey questions

Small wording changes can shift answers. Common problems include:

Problem Weak question Better question
Leading "How much do you love our new menu?" "How would you rate the new menu?"
Double-barreled "Was the staff fast and friendly?" Ask speed and friendliness separately
Vague "Do you exercise often?" "On how many of the last 7 days did you exercise for 30 minutes or more?"
Overlapping choices "1-5 visits, 5-10 visits" "1-5 visits, 6-10 visits"
No way out Yes or no only Add "not sure" or "does not apply" when true

Answer scales should be balanced, with as many positive as negative options. Before a real launch, run a pilot with a few people and ask them what they thought each question meant.

A check you can automate

You cannot automate good wording, but you can spot simple warning signs. This small script flags some of them. It is a rough helper, not a judge, so always read the questions yourself.

Python Flag possible survey wording problems

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 last question has no flags, but that does not prove it is good. Maybe some people never used the checkout. A tool only finds the problems its author thought of.

Match the method to the question

You want to know A reasonable start
How people feel about a change Survey or interviews
Whether a new button increases sign-ups A randomized A/B test
How busy a road is at 8 a.m. Sensor or manual counts on many days
How orders changed over three years Business records
How your region compares with others Official public statistics

Often the best answer combines methods. Records may show that cancellations rose, while interviews suggest why.

Collect only what you need

Collecting extra data "just in case" creates work, risk and responsibility, especially when it describes people. Decide first what question you want to answer and which variables are required. Tell people what you collect and why. Data Privacy explains this in more detail.

Record how you collected it

Write down the date range, place, method, exact question wording, tool and any changes made along the way. This note lets others judge your results and lets you repeat the work later. A change of method partway through, such as switching from phone calls to online forms, can create a jump in the numbers that has nothing to do with the real world.

A worked example: planning a collection

Suppose a school wants to know whether students sleep enough on school nights. A quick poll in one class would be easy, but think it through.

  • Question: On school nights last week, how many hours did students in grades 9 to 12 sleep?
  • Method: A short anonymous survey, because no system records sleep. Wearable devices could measure it, but would cost more and raise privacy concerns.
  • Wording: "What time did you go to sleep and what time did you wake up last night?" asks for two concrete facts instead of a vague "Do you sleep enough?"
  • Who: A random selection of classes at every grade, not only volunteers.
  • When: Several ordinary weeks. A week of exams would give unusual answers.
  • Limits: Students report from memory and may round, so the result is an estimate.

Writing this plan takes ten minutes and exposes problems before they cost anything. It also gives you the notes you will need when you report the results.

Typical mistakes: collecting before knowing the question; asking leading questions and then reporting the answers as neutral fact; assuming a log of clicks is a log of people; and reusing secondary data without reading how it was defined.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. You reuse sales records that another team created for billing. What kind of data is this for you?

    It was collected by others for another purpose, so for your question it is secondary.
  2. 2. What is wrong with 'Was the app quick and easy to use?'

    A person may find it quick but hard to use, so one answer cannot cover both.
  3. 3. Which method best tests whether a new page design causes more sign-ups?

    Random assignment makes the groups comparable, so differences can be linked to the design.
  4. 4. A website's visit count jumps on the day a new tracking script is installed. What should you check?

    A change in how something is counted can create an artificial jump.

Summary

  • Primary data is made for your question; secondary data is reused.
  • Surveys, experiments, observation, logs and records each have typical weaknesses.
  • Avoid leading, vague, double and overlapping survey questions, and pilot test them.
  • Choose the method that fits the question, and collect only what you need.
  • Record how and when data was collected.

Next: Data Quality

Tu progreso se guarda en este navegador. No necesitas una cuenta.