Comparison → Big data vs data science vs data analytics vs big data analytics
1. What is Big Data?
📖 Big data means data that is so large, fast or varied that normal software on a single computer cannot store or process it easily.
💡 Examples: Google searches (billions a day), YouTube videos, WhatsApp messages, UPI and card payments, sensors in a factory, GPS data of cabs, hospital records and scans.
KB→MB→GB→TB→PB→EB→ZB
Each unit is about 1000 times (1024 times in binary counting) bigger than the one before it. Big data is usually measured in terabytes, petabytes and beyond.
Source
Kind of data
Social media
Posts, photos, videos, likes
Online shopping
Clicks, orders, reviews
Sensors and IoT
Temperature, location, machine logs
Banking and telecom
Transactions, call records
Healthcare
Reports, scans, wearable data
Big data is not just "a lot of data". It is data for which storing and processing on one machine is not practical, so many machines work together.
2. Characteristics of Big Data (the 5 Vs)
📖 The Vs of big data describe what makes it special. The first three (Volume, Velocity, Variety) are the classic ones. Veracity and Value are the usual additions.
📦 VolumeHuge amount of data. Terabytes to petabytes. Example: all UPI payments in a day.
⚡ VelocityData arrives very fast, often in real time. Example: live stock prices, sensor readings.
🧩 VarietyMany forms: tables, text, images, video, logs. Example: a hospital has reports, scans and notes.
🔎 VeracityData may be noisy or untrustworthy. Example: fake reviews, wrong sensor values.
💎 ValueData is useful only if it gives business value. Example: better offers, fewer frauds.
V
Question it answers
Example
Volume
How much?
Petabytes of video
Velocity
How fast?
Thousands of transactions per second
Variety
How many forms?
Text, image, audio, logs
Veracity
How trustworthy?
Noisy sensor data
Value
How useful?
Fraud alerts that save money
3. Challenges of Big Data
Challenge
Meaning
How it is handled
Storage
Data does not fit on one disk
Distributed storage (HDFS), cloud
Processing speed
One computer is too slow
Parallel processing (MapReduce, Spark)
Data quality (veracity)
Noisy, missing, duplicate data
Cleaning and validation (Unit 1)
Variety and integration
Many formats and sources
ETL, schema-on-read, NoSQL
Privacy and security
Personal data can leak or be misused
Encryption, access control, laws
Skills
Few people know the tools
Training, easier tools
Cost
Hardware and software are expensive
Cheap commodity hardware, cloud pay-as-you-go
Scalability
Data keeps growing
Add more machines (scale out)
Scale up = buy one bigger, costlier computer. Scale out = add more ordinary computers. Big data systems like Hadoop scale out.
4. Big Data vs Data Science vs Data Analytics vs Big Data Analytics
📖 These four terms are related but different. A common way to remember: big data is the raw material, data science is the whole field, data analytics is the analysis work and big data analytics is analysis done on big data.
Big data
Data science
Data analytics
Big data analytics
What it is
Very large, fast, varied data
A field that uses statistics, programming and domain knowledge to get insight and build models
Examining data to find useful information and support decisions
Analysing big data to find patterns, trends and relationships
Focus
The data itself
Insight and prediction (also builds ML models)
Answering business questions
Insight from huge data
Typical tools
Hadoop, HDFS, NoSQL
Python, R, ML libraries
Excel, SQL, Tableau, Power BI
Hadoop, Spark, Hive
Output
Data to be processed
Models and predictions
Reports and dashboards
Large-scale patterns and predictions
Example
All taxi GPS records
Predict taxi demand with ML
Weekly report of trips per city
Real-time demand across the whole country
Four types of analytics
Descriptive: What happened?→Diagnostic: Why did it happen?→Predictive: What will happen?→Prescriptive: What should we do?
Type
Question
Example
Descriptive
What happened?
Sales fell 10% last month
Diagnostic
Why did it happen?
A competitor cut prices
Predictive
What will happen?
Sales will fall again next month
Prescriptive
What should we do?
Offer a discount on slow items
💡 Analogy: A farm is the big data. A farmer who studies crops with science is data science. Counting this season's harvest is data analytics. Counting the harvest of thousands of farms with big machines is big data analytics.
🐘Chapter 2 — MapReduce, Hadoop, HDFS and Data Warehousing
🐘 CHAPTER 2 — MAPREDUCE, HADOOP, HDFS AND DATA WAREHOUSING MIND MAP
Data warehouse → Subject-oriented, integrated, time-variant, non-volatile. ETL, star schema
1. Why Distributed Processing?
📖 Idea: If one computer needs 10 hours for a job, then 10 computers working together can finish it in about 1 hour. Big data tools split the data and the work over many machines (a cluster).
💡 Analogy: Counting votes of a whole country. One person would take months. A thousand polling teams count their own booths at the same time, and then the totals are added.
Move code to data: sending a small program to where the data lives is cheaper than moving huge data over the network
Fault tolerance: with thousands of cheap machines, failures are normal, so the system must survive them
Commodity hardware: ordinary, cheap machines instead of one very costly server
2. MapReduce
📖 MapReduce: A programming model for processing big data in parallel. The programmer writes only two functions: Map and Reduce. All data moves as (key, value) pairs.
Input split→Map→Shuffle and sort→Reduce→Output
Phase
What happens
Input split
The input file is cut into pieces. Each piece goes to one mapper
Map
Each mapper reads its piece and emits (key, value) pairs
Shuffle and sort
All pairs with the same key are brought to the same reducer and sorted by key
Reduce
The reducer combines all values of a key into a result
Output
Results are written to HDFS
📐 Word count (the "Hello World" of MapReduce)
map(line): for each word w in line → emit (w, 1)
reduce(word, [1, 1, …]): emit (word, sum of the list)
Worked example: count the words
Mapper
Input line
Map output (word, 1)
M1
deer bear river
(deer,1), (bear,1), (river,1)
M2
car car river
(car,1), (car,1), (river,1)
M3
deer car bear
(deer,1), (car,1), (bear,1)
Shuffle and sort now groups the pairs by key, and reduce adds up each list.
Key (word)
Values after shuffle and sort
Reduce output (sum)
bear
[1, 1]
(bear, 2)
car
[1, 1, 1]
(car, 3)
deer
[1, 1]
(deer, 2)
river
[1, 1]
(river, 2)
Result: bear = 2, car = 3, deer = 2, river = 2.
Extra part
Role
Combiner
Optional "mini-reducer" on the mapper side. Example: mapper 2 sends (car, 2) instead of (car, 1) twice. Less network traffic
Partitioner
Decides which reducer gets which key (default: hash(key) mod number of reducers)
Fault tolerance
If a mapper or reducer fails, the task is simply run again on another machine
Links to earlier units: K-means on Hadoop: Map assigns each point to the nearest centroid and Reduce computes the new centroids. Apriori on Hadoop: Map and Reduce count the support of itemsets, like word count.
3. Hadoop
📖 Hadoop: An open-source framework (Apache) to store and process big data on clusters of ordinary computers. It was inspired by Google's papers on GFS (file system) and MapReduce.
Core component
Job
HDFS
Distributed storage
YARN
Manages cluster resources and schedules jobs (from Hadoop 2)
MapReduce
Processing engine
Hadoop Common
Shared libraries and utilities
Ecosystem tool
Use
Hive
SQL-like queries (HiveQL) on big data
Pig
Scripting language for data flows
HBase
NoSQL database on top of HDFS
Sqoop
Moves data between Hadoop and relational databases
Flume
Collects log data into Hadoop
Spark
Fast, in-memory processing
ZooKeeper
Coordination of services
Why Hadoop? Scalable (add machines), fault tolerant, low cost, handles structured and unstructured data, and works on the "write once, read many" model.
4. HDFS — Hadoop Distributed File System
📖 HDFS: The storage layer of Hadoop. It splits big files into blocks, stores them on many machines and keeps copies so that data is safe.
A 500 MB file is cut into 4 blocks. Each block is stored on 3 different DataNodes (replication factor 3). If one DataNode fails, every block is still available.
Part
Role
NameNode (master)
Keeps the metadata: file names, which blocks make a file, and which DataNode holds each block. One active NameNode (Hadoop 2 adds a standby for high availability)
DataNode (slave)
Stores the actual blocks, serves read and write requests, sends heartbeats and block reports to the NameNode
Secondary NameNode
Helps the NameNode with checkpoints of its metadata. It is not a hot backup
Block
Default size 128 MB (a normal file system uses about 4 KB)
Replication factor
Default 3: every block is stored on 3 DataNodes (on different racks when possible)
Worked example: storing a 500 MB file
Block size 128 MB, so the file needs ⌈500 / 128⌉ = 4 blocks
Blocks: 128 MB, 128 MB, 128 MB and the last one of 116 MB (HDFS does not waste the unused space)
With replication 3, there are 4 × 3 = 12 block copies
Disk space used = 500 × 3 = 1500 MB
How a file is written
The client asks the NameNode to create the file
The file is split into blocks. The NameNode tells which DataNodes should store each block
The client sends a block to the first DataNode, which passes it to the second, then the third (a pipeline)
Acknowledgements come back and the NameNode records the metadata
HDFS
Normal file system
Block size
128 MB (large)
About 4 KB
Data lives on
Many machines
One machine
Failure handling
Replication, automatic recovery
Needs backup
Access pattern
Write once, read many (streaming)
Read and write anywhere
Best for
Very large files
Many small files
5. Data Warehousing
📖 Data warehouse: A large store of data collected from many sources, kept for analysis and decision-making (not for daily transactions). Four properties (Inmon): subject-oriented (organised by topics like sales), integrated (one consistent format), time-variant (keeps history), non-volatile (data is not changed or deleted once loaded).
💡 Analogy: A shop's billing counter records each sale (daily work). The head office warehouse collects the bills of all branches for many years, so management can study trends.
Data sources (databases, files, web)→ETL: Extract → Transform → Load→Data warehouse (+ data marts)→OLAP, reports, data mining
Star schema: one central fact table (the numbers) joined to dimension tables (the descriptions).
A fact table stores the measurements (units sold, amount). Dimension tables describe them (date, product, store, customer). In a snowflake schema the dimension tables are further split into smaller tables. A data mart is a smaller warehouse for one department.
Data warehouse vs data lake: a warehouse holds cleaned, structured data (schema defined before loading). A data lake holds raw data of any type (schema applied when reading). OLAP cubes (Unit 1) are built on top of a warehouse.
🔁Chapter 3 — Recap and Vector Calculus
🔁 CHAPTER 3 — RECAP LISTED IN THIS UNIT AND VECTOR CALCULUS
K-means → Centroids and clusters
Apriori → Frequent itemsets and rules
Recommendation → Content-based and collaborative
Vector calculus → Gradient, divergence, curl
1. Recap: K-Means Clustering
The syllabus lists these topics again under Unit 3. They are explained in full, with worked examples, in Unit 2 (Chapter 3). Here is the short version.
K-means splits data into k clusters. Steps: choose k centroids → assign each point to the nearest centroid → move each centroid to the mean of its points → repeat until nothing changes.
On Hadoop: Map = assign each point to the nearest centroid (key = cluster id). Reduce = compute the new centroid as the mean of the points of that cluster. Repeat the job until the centroids stop moving.
2. Recap: Association Rules, Apriori and Market Basket Analysis
Measure
Formula
Support
(transactions with A and B) / (all transactions)
Confidence
support(A and B) / support(A)
Lift
confidence / support(B). Lift > 1 means a positive link
Apriori: find frequent single items, join them into pairs, then triples, and so on. The Apriori property says every subset of a frequent itemset is also frequent, so unpromising candidates are pruned early. Then make rules from the frequent itemsets.
Example (Unit 2): in 5 baskets, beer → diaper has support 60%, confidence 100% and lift 1.25. On Hadoop: counting the support of each itemset is a word-count style MapReduce job.
3. Recap: Recommendation Systems
Type
Idea
Content-based
Suggest items similar to what the user liked (uses item features)
Collaborative filtering
Suggest what similar users liked (uses the user–item rating matrix)
Hybrid
Combine both
Example (Unit 2): Alice's missing rating for Movie 3 is predicted as the similarity-weighted average of her neighbours' ratings = 3.88. Problems: cold start, sparsity, scalability. Big data tools such as Spark run recommenders on millions of users.
4. Vector Calculus — Quick Basics
The unit heading in the syllabus says "Vector Calculus", but the listed topics are about big data. A short review is added here in case it is asked.
📖 Vector calculus is calculus for quantities with direction (vectors) and for functions of several variables. It is the maths behind gradient descent, the method that trains most machine learning models.
Idea
Meaning
Formula
Partial derivative
Rate of change in one variable, others fixed
∂f/∂x
Gradient ∇f
Vector pointing in the direction of steepest increase
∇f = (∂f/∂x, ∂f/∂y)
Divergence
How much a vector field spreads out from a point
div F = ∂P/∂x + ∂Q/∂y + ∂R/∂z
Curl
How much a vector field rotates around a point
curl F = ∇ × F
Dot product
Measures how aligned two vectors are
a·b = Σ aᵢbᵢ
Worked example: gradient and gradient descent for f(x, y) = x² + y²
∂f/∂x = 2x and ∂f/∂y = 2y, so ∇f = (2x, 2y)
At the point (1, 2): ∇f = (2, 4)
Gradient descent moves against the gradient: new point = (1, 2) − 0.1 × (2, 4) = (0.8, 1.6)
f falls from 5 to 3.20. Repeating gets closer to the minimum at (0, 0)
Small example of divergence and curl: for F = (x, y), div F = 1 + 1 = 2 (field spreads out). For F = (−y, x), the curl (z-part) = ∂x/∂x − ∂(−y)/∂y = 1 + 1 = 2 (field rotates).
⚡Ready for Exam?Sab padh liya? Ab Quick Revision karo — definition, example aur diagram ek jagah!Quick Revision Karo →
⚡Quick Revision — Last Minute Exam Prep!
📌 How to use: Har topic mein pehle Definition, phir Example, phir Diagram hai.
🌐 Chapter 1 — Big Data and Data Analysis
1. Big Data and the 5 Vs
📖 Definition: Data too large, fast or varied for one computer. Volume, Velocity, Variety, Veracity, Value.
💡 Example: Live UPI payments: huge volume, high velocity.
📦 VolumeHuge amount of data. Terabytes to petabytes. Example: all UPI payments in a day.
⚡ VelocityData arrives very fast, often in real time. Example: live stock prices, sensor readings.
🧩 VarietyMany forms: tables, text, images, video, logs. Example: a hospital has reports, scans and notes.
🔎 VeracityData may be noisy or untrustworthy. Example: fake reviews, wrong sensor values.
💎 ValueData is useful only if it gives business value. Example: better offers, fewer frauds.
A 500 MB file is cut into 4 blocks. Each block is stored on 3 different DataNodes (replication factor 3). If one DataNode fails, every block is still available.
4. Data Warehousing
📖 Definition: Subject-oriented, integrated, time-variant, non-volatile store for analysis. Built with ETL.