Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 1 — Data Collection

Lesson 8 of 46 in the free Introduction to Data Analytics notes on Siksha Sarovar, written by Rohit Jangra.

Data Collection

Data collection is the systematic gathering of data relevant to the defined problem. It is the second step of the analytics process, and every downstream result inherits its quality — biased or incomplete collection cannot be repaired by clever modelling later.

Primary vs Secondary Data

BasisPrimary DataSecondary Data
DefinitionCollected first-hand for the current studyCollected earlier by someone else, for another purpose
OriginalityOriginalAlready existing
CostHighLow or free
Time requiredLongShort
Control over qualityFull controlNo control
Relevance to problemExactly tailoredMay only partly fit
ReliabilityHigh (if method is sound)Depends on the original collector
ExamplesYour own survey, lab experiment, sensor logsCensus reports, RBI data, Kaggle datasets, competitor annual reports

Primary Data Collection Methods

MethodDescriptionBest forLimitations
Survey / QuestionnaireStructured set of questions to many respondents (online, paper, phone)Large samples, quantifiable opinionsLow response rate, response bias
InterviewOne-to-one questioning — structured, semi-structured or unstructuredDepth, exploring "why"Expensive, time-consuming, interviewer bias
ObservationRecording behaviour without asking (participant or non-participant)Actual behaviour vs claimed behaviourCannot observe motives; observer effect
ExperimentControlled manipulation of a variable with a control group (A/B tests)Establishing causationCostly, ethical constraints, artificial settings
Focus groupModerated group discussion (6–12 people)Idea generation, qualitative themesDominant voices skew results
Sensors / IoT / logsAutomatic machine captureContinuous, high-volume, objective dataStorage cost, noise, calibration drift

Questionnaire Design — Key Rules

  1. Keep questions short, simple and unambiguous.
  2. Avoid leading questions — "Don't you agree our service is excellent?" ✗
  3. Avoid double-barrelled questions — "Was the food tasty and affordable?" ✗ (two questions in one)
  4. Use consistent scales (e.g. a 5-point Likert scale: Strongly Disagree → Strongly Agree).
  5. Put sensitive/demographic questions at the end.
  6. Mix closed-ended (easy to quantify) and a few open-ended (rich detail) questions.
  7. Pilot test on a small group before full rollout.

Secondary Data Sources

Source typeExamples
Government / officialCensus of India, data.gov.in, RBI, NSSO, World Bank, WHO
Organisational recordsSales databases, CRM, ERP, transaction logs, web analytics
Commercial providersNielsen, Bloomberg, market-research firms
AcademicJournals, conference papers, university repositories
Open data platformsKaggle, UCI Machine Learning Repository, Google Dataset Search
WebAPIs (Twitter/X, YouTube), web scraping, RSS feeds

Always evaluate secondary data before trusting it: Who collected it? When? For what purpose? What was the sample? What definitions were used? Has it been revised?

Data Collection in Practice — Python

import pandas as pd

# 1. From a CSV file (most common secondary source)
# df = pd.read_csv("students.csv")

# 2. From an Excel workbook
# df = pd.read_excel("sales.xlsx", sheet_name="Q1")

# 3. From a public API (JSON response)
import requests
# resp = requests.get("https://api.example.com/v1/records")
# df = pd.json_normalize(resp.json()["data"])

# 4. From a SQL database
# import sqlite3
# conn = sqlite3.connect("college.db")
# df = pd.read_sql_query("SELECT roll, name, marks FROM students", conn)

# 5. From a web page table (simple scraping)
# tables = pd.read_html("https://en.wikipedia.org/wiki/List_of_Indian_states")
# df = tables[0]

# 6. Manually entered / survey export
survey = pd.DataFrame({
    "respondent": [1, 2, 3, 4],
    "age":        [19, 21, 20, 22],
    "satisfaction": [4, 5, 3, 5],       # 5-point Likert
    "would_recommend": ["Yes", "Yes", "No", "Yes"],
})
print(survey.describe())

Sources of Error in Data Collection

Sampling error shrinks as the sample grows. Non-sampling error does not — a badly worded question asked of a million people is still badly worded. This is why collection design matters more than sheer volume.

Ethical and Legal Considerations

PrincipleMeaning
Informed consentRespondents know what is collected and why
PrivacyPersonally identifiable information (PII) protected and minimised
AnonymisationRemove or hash identifiers before analysis
Purpose limitationUse data only for the stated purpose
Data securityEncrypt at rest and in transit; restrict access
Regulatory complianceGDPR (EU), India's DPDP Act 2023, HIPAA (health, US)
Right to withdrawRespondents can opt out and request deletion

Once data is collected, the immediate question is how much and which subset to analyse — the topic of the next lesson, sampling.