Knowledge / Data Science / Marketing and customer analytics

Marketing and customer analytics

Data Science (B.Sc) · Applied analytics · free study notes for exams, placements and interviews

In short

Marketing and customer analytics is the use of transaction, campaign and behavioural data to decide whom to target, with what offer, through which channel, and whether the spend paid for itself. It joins descriptive measurement (funnel metrics, cohorts, RFM) with predictive models (churn, propensity, CLV) and causal methods (A/B tests, geo holdouts, marketing mix models). It is examined in B.Sc Data Science / BBA-analytics papers as segmentation, CLV, RFM, basket analysis, attribution and hypothesis testing, and is the single most common interview area for analyst roles at Flipkart, Myntra, Nykaa, Swiggy, Zepto, Jio, HUL, HDFC Bank, Policybazaar and at analytics firms such as Mu Sigma, Fractal, LatentView, ZS, Kantar and GroupM. In India the work is also bounded by law — the DPDP Act, 2023, TRAI's commercial-communication (DLT) rules, the ASCI code and the CCPA dark-pattern guidelines.

Explained

The customer funnel and the metric stack

Segmentation, RFM and clustering

Customer lifetime value, churn and retention

Campaigns: experiments, attribution and marketing mix modelling

Pricing, promotion and basket analytics

Data foundations and the Indian rule-set

Key points

Formulas and examples

Conversion rate CR = conversions / visitors (unitless, usually %)
AOV = net revenue (₹) / number of orders; ARPU = net revenue (₹) / active users
CTR = clicks / impressions; CPC = spend / clicks; CPM = 1,000 × spend / impressions; CPA = spend / conversions
ROAS = attributed revenue (₹) / ad spend (₹); iROAS = incremental revenue (₹) / ad spend (₹)
Churn rate c = customers lost in period / customers at start of period; Retention r = 1 − c
Average customer lifetime ≈ 1 / c (periods), for constant churn
CLV (future periods) = m × r / (1 + d − r), where m = contribution margin per period (₹), r = retention, d = discount rate per period
CAC = total acquisition spend (₹) / new customers acquired; Payback (periods) = CAC / m
Two-proportion z = (p₂ − p₁) / √[ p̂(1−p̂)(1/n₁ + 1/n₂) ], p̂ = pooled conversion rate
Sample size per arm (α = 5%, power 80%, proportions) n ≈ 16 p(1−p) / Δ², Δ = absolute lift to detect
Support(A∪B) = P(A and B); Confidence(A→B) = P(B|A); Lift(A→B) = Confidence / P(B); Leverage = P(A∩B) − P(A)P(B); Conviction = (1 − P(B)) / (1 − Confidence)
Price elasticity ε = (%ΔQ) / (%ΔP); profit-maximising margin (p − c)/p = −1/ε
Adstock A_t = x_t + λ·A_{t−1} (0 ≤ λ < 1, x_t = spend in week t, ₹)
NPS = %promoters − %detractors (range −100 to +100)

Example 1 - RFM scoring for a D2C brand. Cut-offs (quintiles from the brand's own base): R ≤30 d = 5, 31-60 = 4, 61-120 = 3, 121-240 = 2, >240 = 1; F ≥8 = 5, 5-7 = 4, 3-4 = 3, 2 = 2, 1 = 1; M ≥₹20,000 = 5, ₹10,000-20,000 = 4, ₹5,000-10,000 = 3, ₹2,000-5,000 = 2, <₹2,000 = 1.

CustomerR (days)F (orders/yr)M (₹)R-F-MSegmentAction
A15924,0005-5-5Championearly access, no discount
B200614,0002-4-4At-risk high valuewin-back call + offer
C2511,5005-1-1New, low valueonboarding, second-order nudge
D30023,0001-2-2Hibernatinglow-cost email only
E5048,0004-3-3Potential loyalistcross-sell bundle

Discounting A wastes margin; B is where the retention budget belongs.

Example 2 - CLV, CAC and payback. AOV ₹1,200, 3 orders a year ⇒ annual revenue ₹3,600; gross margin 40% ⇒ m = ₹1,440 per year. Annual retention r = 0.70, discount rate d = 12%.

Example 3 - A/B test on checkout. Control 10,000 visitors, 320 orders (3.20%); variant 10,000 visitors, 376 orders (3.76%).

Example 4 - platform ROAS vs incremental ROAS. Spend ₹5,00,000 on a retargeting campaign; platform reports ₹30,00,000 attributed revenue ⇒ ROAS = 6.0. A 20% randomised holdout is in place: exposed group 2,00,000 users at ₹18 revenue/user; holdout 50,000 users at ₹15 revenue/user.

Example 5 - basket analysis and a promotion decision. 10,000 transactions: bread in 2,000, butter in 1,500, both in 600.

Where it is used

Interview questions

Common mistakes

Related topics

Statistical inference and hypothesis testing · Supervised learning: classification and regression · Clustering and unsupervised learning · Time series forecasting · Recommender systems · SQL and dashboard reporting for business metrics

Open in the Knowledge reader →Find jobs →