Learning Objectives

By the end of this chapter, you will be able to:

  • Define Big Data with the 5Vs and explain why RDBMS alone falls short.
  • Classify data as structured, semi structured, and unstructured with examples.
  • Describe four types of Big Data analytics in order.
  • Define blockchain, hash chaining, consensus, and smart contracts.
  • Decide when blockchain fits and when a database is cheaper and faster.

Detail: AI impact, data science and ML, cloud and virtual, social media and digital marketing.

Big Data: when scale changes the problem

Big Data is data whose scale, speed, and complexity defeat traditional single server relational processing. The issue is not only gigabytes. The issue is that new records arrive faster than a nightly batch can absorb and they arrive in forms a tidy table cannot hold without rework.

A wallet that logs one million transactions per day plus app clicks plus call center voice cannot rely on one MySQL instance and an Excel export. A telco that streams call records and tower pings needs distributed handling.

Grouped framework 1: the 5Vs

V What you measure Ask this before you invest Example signal
Volume How much Can one server store and query this in time Terabytes of logs per month
Velocity How fast Do decisions need seconds or can they wait Real time fraud scoring at payment
Variety How varied Can we store images, video, JSON without forced schema Photos, GPS, reviews, server logs
Veracity How trustworthy How much noise and spam gets in Duplicate wallet IDs, faulty sensor reads
Value How useful Does this data change revenue, cost, or risk Churn prevented after cleaning and modeling

An exam answer that lists only Volume, Velocity, and Variety is thin. Add Veracity and Value and tie one to a business check. Value is not data owned. Value is decisions changed.

Data forms that create variety

Form Structure Example Why it matters for tools
Structured Rows and columns Sales ledger, balance table RDBMS does well
Semi structured Tagged but not tabular JSON from an app, XML, web logs, email headers Needs flexible schema
Unstructured No preset model Photos, video, voice, social posts Needs distributed stores and new analytics

Most new data is unstructured. That fact explains why Hadoop, Spark, NoSQL, and data lakes exist.

Sources and technologies in brief

Sources that feed Big Data: social posts and engagement, POS and wallet transactions, sensors and IoT meters, mobile location and CDR, and web click streams.

Technologies that handle it: Hadoop and Spark distribute storage and compute across commodity clusters, NoSQL stores such as MongoDB and Cassandra handle non tabular scale, data lakes store raw data before schema is set, and cloud services rent analytics without owning the cluster.

Do not memorize product versions. Remember the split: distribute storage, distribute compute, accept varied formats, query at scale.

Grouped framework 2: four analytics types

Each type answers a sharper question than the last.

Type Question Input Narrows delivery Nepal business moment
Descriptive What happened Historical aggregates Report Monthly sales by district fell 12 percent
Diagnostic Why it happened Correlated factors Root cause note Network speed drop correlated with the fall
Predictive What is likely next Model on past patterns Risk list Which customers will leave next month
Prescriptive What should we do Recommendation under constraints Action per customer Offer 150 MB bonus to high risk tower area first

A complete answer moves through all four. Descriptive without prescriptive is a museum. Prescriptive without descriptive is a guess.

Blockchain: shared truth without a central owner

A blockchain is a distributed, append only ledger. Peers hold copies. New transactions group into a block. Each block stores the hash of the prior block, a digital fingerprint that locks the chain. A consensus rule lets peers agree on the next block without a single authority. Smart contracts embed coded terms that execute when conditions match, without a separate escrow clerk.

flowchart LR
  B1[Block 1 hash A] --> B2[Block 2 prev A hash B]
  B2 --> B3[Block 3 prev B hash C]
  B3 --> B4[Block 4 prev C hash D]

Change Block 2 and its hash changes. Blocks 3 and 4 no longer link. Every copy on every node shows the break. That is immutability by math, not by policy.

sequenceDiagram
  participant U as User
  participant N as Node network
  participant C as Consensus
  participant L as Ledger block
  U->>N: Broadcast transaction
  N->>C: Validate against rules
  C->>L: Bundle into block and add hash link
  L-->>N: Replicate block to all nodes

Core properties grouped

Property What it guarantees Business meaning
Decentralization No single point of failure or owner No party can secretly rewrite the history
Immutability Past records cannot be edited without rebuilding the chain Audit trail holds under dispute
Consensus Peers agree by Proof of Work or Proof of Stake Trust by verification, not by brand
Transparency plus privacy control Same ledger visible to permissioned participants Traceable without exposing everything to public internet

Consensus has a cost. Proof of Work burns energy solving puzzles. Proof of Stake selects validators by stake and uses far less energy. A course choice between them is also a cost and sustainability choice.

Public versus permissioned and blockchain versus database

Choice Best when Trade off
Public chain Anyone may join and validate Most decentralized, slower, fully exposed
Private or permissioned Known firms must share one record Faster, controlled, less open
Aspect Traditional database Blockchain
Control Single administrator Shared among nodes
Edit Update and delete Append only
Trust basis Trust the owner Trust math and consensus
Speed Fast Slower per write
Fit Most business systems Shared record among partly trusting parties where history must be tamper resistant

A manager rule: if only one firm needs the record, use a database. If several firms must share one record, do not trust a single operator to hold it, and need a tamper proof history, then blockchain earns its cost.

Business uses beyond coins

  • Supply provenance. Track tea or cardamom lot from farm lot to exporter to buyer.
  • Trade finance. Share one letter of credit view among exporter, importer, and banks and settle faster.
  • Certificates. Issue degrees that employers verify without calling the university.
  • Land and civic records. Store title checks that show manipulation if altered.
  • Smart contracts. Release payment when a sensor confirms delivery, without waiting for a clerk.

Limits

Blockchain is slower and heavier than a database for ordinary reads and writes. Energy matters for Proof of Work. Errors are hard to reverse. Regulation in Nepal treats crypto trading as illegal while non coin record keeping can be studied. Never propose a coin payment where policy forbids it.

In Nepal, eSewa and Khalti watch transaction streams for Big Data fraud work, Daraz platforms analyze browsing, and telecoms process CDR at volume. Blockchain discussion centers on certificate and supply chain provenance without tokens.

Self-check

Nepal worked example: province dashboard plus certificate pilot (NPR, BS 2081)

A Bagmati Province office on 2081-10-26 holds three data piles: citizen service logs at the ward, tax receipts in a treasury database, and 40,000 scanned service satisfaction forms. Separately, the Education Board wants to pilot verifiable SLC plus 2 certificates without tokens.

Big Data track, one time and recurring:

  • Data lake on a local private cloud plus Spark job: NPR 420,000 setup, NPR 28,000 per month for storage and compute
  • ETL and cleaning for ward plus treasury plus scans: NPR 165,000 one time
  • Descriptive and diagnostic dashboards for 18 municipalities: NPR 90,000 one time
  • Predictive model for revenue forecasting: included after first quarter

Value test: before dashboards, revenue reconciliation took 11 days after month end. After descriptive plus diagnostic automation, it falls to 3 days. Staff days saved per month: 8 days for a 4 person team at NPR 2,200 per person per day = 4 x 8 x 2,200 = NPR 70,400 per month in time recovered. After one quarter, a simple predictive model flags three municipalities with 14 percent collection lag, allowing targeted follow up that recovers NPR 1.8 million in one month.

Blockchain certificate pilot, permissioned:

  • Three validators: Education Board, Provincial archive, university exam section
  • 12,000 certificates in 2081 Chaitra, each hashed and anchored, verification portal
  • Cost: development NPR 340,000 one time, hosting NPR 12,000 per month, training NPR 45,000
  • Benefit: employer verification drops from 9 days by post to under 2 minutes, and forgery checks fail when a file is altered because the hash does not match the chain

Total first year cost = (420,000 + 165,000 + 90,000 + 340,000 + 45,000) + (28,000 + 12,000) x 12 = NPR 1,540,000. The decision is not total cost. The decision is whether 8 days per month plus faster revenue plus trusted certificates justify the setup versus staying on spreadsheets and postal verification. For a province office that answers audits, the time and trust argument wins. For a single school with 300 certificates and no sharing, a signed PDF plus a database wins.

Example 1: In a finance or cooperative view, Group 2 analytics decides. Ask: on 2081-10-30 do descriptive plus diagnostic close books in 3 days and does predictive flag the two branches where non performing loans will rise, so field staff visit this week. A dashboard that cannot name the next visit is decoration.

Example 2: In a operations or supply view, Group blockchain fit decides. Ask: do we ship 800 sacks of organic coffee where the buyer pays only on provenance, so five handlers must share one append only record. If volume and velocity dominate but trust does not, stay on database and Spark. If shared tamper proof history dominates, permissioned chain plus QR on the sack earns the premium.

Summary

Big Data is a mix of volume, velocity, variety, veracity, and expected value. Data arrives as structured, semi structured, and unstructured, and needs distributed tools when scale breaks a single server. Four analytics levels move from what happened to what to do. Blockchain offers a shared append only ledger linked by hashes and agreed by consensus, with smart contracts that automate terms. It fits shared records among parties who need a tamper proof past, not every database need.

Key Takeaways

  • 5Vs assess a data problem before you buy tools.
  • Distributed storage and compute answer volume, velocity, and variety together.
  • Descriptive, diagnostic, predictive, and prescriptive form one chain. Do not stop at first step.
  • Blockchain builds trust without a single owner through replication, hash chaining, and consensus.
  • Permissioned chains trade some openness for speed and control.

Discussion Questions

  1. Why does unstructured dominance require lakes and NoSQL rather than only RDBMS.
  2. When does a prescriptive offer fail even if prediction is accurate.
  3. For a Nepali firm with 30 daily transactions, why is Big Data likely not the problem.

Exercises

Short answer

  1. Define Big Data with the 5Vs.
  2. List four analytics types and two blockchain properties with one line each.
  3. Differentiate public and permissioned blockchains and blockchain versus database in a table.

Long answer

  1. Explain Big Data sources, the 5Vs, and four analytics types with Nepal examples, and show where distributed tools fit.
  2. Explain how blockchain achieves immutability with hashes and consensus, then propose one non coin business use in Nepal with participants, costs, and when a database would still be better.