Learning Objectives

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

  • Distinguish analytics, mining, and science on intent.
  • Group analytics into four lenses and state question plus output each produces.
  • Group process into shape, see, and move and state what IRD needs at each stage.
  • Price a descriptive to prescriptive loop in NPR dated BS 2081.

A shop that asks better questions

Siddhartha Mart in Butwal holds 6,800 orders from Baisakh to Ashwin 2081. The manager asks four questions of same table. What sold? Why did Bhadra dip? What will Ashwin need? What stock action earns most? Data analytics answers each with evidence. Data mining finds pattern. Data science builds pipeline. Analytics is use, mining is method, science is craft.

flowchart TB
  Q[6,800 orders] --> D[Descriptive: what]
  D --> DI[Diagnostic: why]
  DI --> P[Predictive: what next]
  P --> PR[Prescriptive: what to do]

Ask in order. Value and difficulty rise together.

Framework 1: Four lenses, grouped

A. Descriptive, what happened

Summarise past. Totals, averages, counts by product and branch.

  • Output: revenue Rs 32,00,000 in Shrawan, average order Rs 1,523.81.

B. Diagnostic, why

Drill and compare. Split by branch and cause. Test whether delay explains move.

  • Output: Bhadra fell because Sunwal delivery lag 1.8 days versus 0.6 elsewhere.

C. Predictive, what is likely

Model future from history.

  • Output: Ashwin demand 1.35 times Bhadra with 70 percent confidence.

D. Prescriptive, what to do

Recommend action that maximises outcome under constraints.

  • Output: stock 420 flour units on 2081-06-25, hire two riders.
Lens Question Needs Output
Descriptive What happened Clean counts Month totals
Diagnostic Why Sliced comparison Driver found
Predictive What next Labelled history Forecast band
Prescriptive Which action Forecast plus constraints Purchase and roster

Do not jump to prescriptive before descriptive is correct. A forecast on two codes for Butwal predicts for wrong branch.

Framework 2: Process, grouped as shape, see, and move

A. Shape

  • Ask: define decision. Should we hold more oil for Ashwin?
  • Collect: orders, stock, delivery times, CRM.
  • Clean: deduplicate, fix branch codes, impute missing time with median.

B. See

  • Analyse: descriptive totals, diagnostic splits, predictive scores, prescriptive options.
  • Visualise: one chart per lens: trend, bar split, forecast band, option table.

C. Move

  • Act: purchase, roster, reprice, then measure. Hold last Dashain as test.
Phase IRD link Control
Ask and collect Map fee to PAN and MemberID Branch heads sign source list
Clean Apply 13 percent VAT and fix code Deduplicate rule logged
Analyse Tie forecast base to taxable Rs 2,32,000 Lineage from chart to row
Visualise Show branch VAT split Threshold colours match text
Act Net VAT after input Rs 22,000 is Rs 8,160 Post action review next month

Framework 3: Tools and applications, grouped

Phase Pick for 6,800 rows When to upgrade
Collect and clean Excel plus SQL for Member and Order joins Above 50,000 rows move to SQL
Analyse SQL GROUP BY for IRD, Python for churn Model needs holdout
Visualise Looker Studio free, Power BI for MySQL Nightly refresh without paste
Act Sheet or app that records purchase and reason Link act to KPI
Function Descriptive and diagnostic Predictive and prescriptive
Marketing Which post drove 132 accounts Which segment will churn over 0.60
Finance and IRD Output on Rs 2,32,000 is Rs 30,160 Which borrower delays next
Supply chain Why Sunwal stock out 5.2 percent How much flour to hold for Ashwin
HR Turnover by branch Which crew needs hiring

Nepal worked example: four lenses on mart orders on BS 2081-08-10 (NPR)

Month Orders Revenue NPR Avg order NPR
Shrawan 2,100 32,00,000 1,523.81
Bhadra 1,800 26,40,000 1,466.67
Ashwin to 2081-08-10 1,040 18,40,000 1,769.23

Descriptive: revenue fell 17.5 percent in Bhadra then rose 20.8 percent per order in early Ashwin. Diagnostic: Sunwal delay 1.8 days. Predictive: two prior Dashains average 1.38 times Bhadra, so forecast = 1.38 x 26,40,000 = Rs 36,43,200. Prescriptive: forward buy flour 420 units at Rs 1,450 and oil 280 litres at Rs 280, tie Rs 6,08,600 for fifteen days at 0.9 percent = Rs 5,477. Margin on forecast Rs 1,45,000, net before riders Rs 1,39,523, riders Rs 54,000 for fifteen days, net after riders Rs 85,523.

IRD register from same table: taxable Rs 2,32,000, output Rs 30,160, input Rs 22,000, net Rs 8,160. One table feeds tax and stock.

Self-check

Try this: lens maths and VAT (calculable)

Taxable Rs 2,32,000, input Rs 22,000, late file Rs 18,000 omitted.

  1. Compute Shrawan and Bhadra averages and percent change.
  2. Forecast Ashwin at 1.38 times Bhadra and gap to early Ashwin Rs 18,40,000.
  3. Compute output at 13 percent on Rs 2,32,000, net, corrected net after omission, understated.
  4. Which lens justifies hiring riders and which process phase would catch late file?
Answer sketch 1. Shrawan 1,523.81, Bhadra 1,466.67, change -3.75 percent. 2. Forecast 36,43,200, gap 18,03,200 remaining. 3. Output 30,160, net 8,160, corrected taxable 2,50,000, corrected output 32,500, corrected net 10,500, understated 2,340. 4. Prescriptive for hiring, clean as part of shape for late file.

Summary

  • Analytics is use, mining is technique, science is field.
  • Four lenses build: what, why, what next, what to do.
  • Process groups into shape then see then move.

Key Takeaways

  • Descriptive ties to tax, predictive ties to stock, one table ties both if clean.
  • Diagnostic saves purchase before predictive earns return.
  • A chart without lineage is a claim, not evidence.

Exercises

Short answer

  1. Distinguish analytics, mining, and science with order table.
  2. Name four lenses and one BBA question each.
  3. List six process steps and what clean does for IRD.

Long answer

  1. Walk four lenses from 32,00,000 to 26,40,000 to forecast 36,43,200. Show average, diagnostic delay, prescriptive buy.
  2. Compute output Rs 30,160 on Rs 2,32,000, net Rs 8,160, corrected net Rs 10,500, show Rs 2,340 gap.