Learning PathLesson 4 of 7 · Advanced Analytics
Advanced Analytics · Lesson 4 of 7advanced12 min read

Predictive Analytics — Forecasting & Churn

Use AI to forecast revenue, predict churn, and estimate LTV without needing a data science background. Practical prompts and approaches for marketing analysts.

Predictive Analytics Without a PhD

Here's the thing about predictive analytics: for years it's been locked behind data science teams, Python libraries, and statistical jargon. But 80% of the predictive work that marketing teams actually need — revenue forecasting, churn risk scoring, LTV estimation — can now be done by a competent analyst with the right AI prompts. You don't need to build a neural network. You need to ask the right questions.

Revenue Forecasting with AI

Every marketing team needs a revenue forecast. The question is whether yours is a glorified trendline or something actually useful. AI can help you build forecasts that account for seasonality, marketing spend changes, and pipeline velocity — the stuff that makes forecasts accurate.

Prompt Example
any

Build a defensible revenue forecast you can present to finance

I have 24 months of monthly revenue data for our SaaS business: [paste monthly revenue figures]. I also have monthly marketing spend by channel: [paste spend data]. Help me: (1) Build a 6-month revenue forecast that accounts for seasonality, (2) Show me the expected revenue range (optimistic, base, pessimistic scenarios), (3) Identify which months had anomalies and whether to include them, (4) Tell me what marketing spend level is needed to hit $X in revenue by Q4. Show your methodology simply — I need to defend this forecast to my CFO.
Pro Tip
Always present forecasts as ranges, not single numbers. A forecast that says '$2.1M to $2.4M with 80% confidence' is more credible (and more useful) than one that says '$2.25M.' AI can help you calculate these confidence intervals from your historical variance.

Churn Prediction: Catch Them Before They Leave

Churn prediction is where AI really shines for marketing analysts. The old way: wait for customers to cancel and then do a post-mortem. The new way: identify at-risk customers 30-60 days before they churn and trigger retention campaigns automatically.

churn_risk_features.sqlsql
-- Churn risk scoring: build a feature table for AI analysis
WITH customer_features AS (
  SELECT
    c.customer_id,
    c.plan_type,
    c.signup_date,
    DATEDIFF(day, c.signup_date, CURRENT_DATE) AS tenure_days,
    -- Usage signals
    COUNT(DISTINCT CASE WHEN e.event_date >= DATEADD(day, -30, CURRENT_DATE) THEN e.event_date END) AS active_days_last_30,
    COUNT(DISTINCT CASE WHEN e.event_date >= DATEADD(day, -7, CURRENT_DATE) THEN e.event_date END) AS active_days_last_7,
    COUNT(CASE WHEN e.event_type = 'core_feature_used' AND e.event_date >= DATEADD(day, -30, CURRENT_DATE) THEN 1 END) AS core_feature_uses_30d,
    -- Engagement trend
    COUNT(DISTINCT CASE WHEN e.event_date BETWEEN DATEADD(day, -60, CURRENT_DATE) AND DATEADD(day, -31, CURRENT_DATE) THEN e.event_date END) AS active_days_prev_30,
    -- Support signals
    COUNT(CASE WHEN t.created_at >= DATEADD(day, -30, CURRENT_DATE) THEN 1 END) AS support_tickets_30d,
    MAX(CASE WHEN t.sentiment = 'negative' THEN 1 ELSE 0 END) AS has_negative_ticket
  FROM customers c
  LEFT JOIN events e ON c.customer_id = e.customer_id
  LEFT JOIN support_tickets t ON c.customer_id = t.customer_id
  WHERE c.status = 'active'
  GROUP BY c.customer_id, c.plan_type, c.signup_date
)
SELECT
  *,
  -- Simple risk flags
  CASE
    WHEN active_days_last_7 = 0 THEN 'HIGH'
    WHEN active_days_last_30 < active_days_prev_30 * 0.5 THEN 'MEDIUM'
    WHEN has_negative_ticket = 1 THEN 'MEDIUM'
    ELSE 'LOW'
  END AS churn_risk
FROM customer_features
ORDER BY active_days_last_30 ASC;
Prompt Example
claude

Build a practical churn scoring model from your customer data

I've built a churn risk feature table with these columns for each customer: tenure_days, active_days_last_30, active_days_last_7, core_feature_uses_30d, active_days_prev_30, support_tickets_30d, has_negative_ticket, plan_type. Here's a sample of 50 customers with their actual churn outcome (1 = churned within 60 days, 0 = retained): [paste data]. Help me: (1) Identify the top 3 predictive features, (2) Create a simple scoring formula I can implement in SQL, (3) Set risk thresholds (high/medium/low), and (4) Suggest automated retention actions for each risk level.

Estimating Customer Lifetime Value

LTV is the number that connects marketing spend to business outcomes. If you know a customer segment's LTV, you know exactly how much you can afford to spend acquiring them. Most companies either don't calculate LTV or use a simplistic formula. AI can help you build something much more accurate.

Manual Workflow

LTV = Average Revenue Per Account x Gross Margin x (1 / Churn Rate). One number for all customers. No segmentation. Updated quarterly if you're lucky.

With AI

AI-assisted LTV: segmented by acquisition channel, plan tier, and behavioral cohort. Includes confidence intervals. Accounts for expansion revenue and contraction. Updated monthly with fresh data. Each segment gets its own CAC:LTV ratio.
Time saved: From quarterly manual exercise to automated monthly refresh
Prompt Example
any

Calculate segmented LTV that accounts for expansion and contraction revenue

Help me build a segmented LTV model. Here's my data:
- Monthly revenue per customer by segment for the last 18 months: [paste data]
- Monthly churn rates by segment: [paste data]
- Average expansion revenue (upsells) by segment: [paste data]
- Gross margin: 78%

For each segment, calculate: (1) Expected LTV with confidence interval, (2) Payback period on CAC, (3) Whether the segment is profitable at current acquisition costs, (4) What churn rate improvement would double the LTV. Present this as a table I can share with leadership.
Watch Out
AI-generated forecasts and predictions are starting points, not gospel. Always validate predictions against actual outcomes. Set up a simple tracking sheet: predicted vs. actual churn per month, forecasted vs. actual revenue. This builds your credibility and helps you improve the models over time.

Putting It All Together: The Predictive Analytics Stack

The magic happens when you connect these three: revenue forecasts tell you where you're headed, churn predictions tell you the risks to that forecast, and LTV tells you where to invest. AI can help you build all three and, more importantly, show how they connect.

Try It Yourself

Start with churn prediction — it usually has the fastest business impact

I want to build a simple churn early warning system. Here are the data points I have access to for each customer: [list your available data]. Help me: (1) Select the 5 most predictive features from this list, (2) Write SQL to build the feature table, (3) Create a simple scoring formula (no ML needed), (4) Design an alert workflow — who gets notified and what action they take when a customer crosses the risk threshold. Keep it simple enough that I can implement this in one week.

Remember: the goal isn't to build a perfect predictive model. It's to build one that's better than the current approach (which for most teams is 'react after it happens'). Even a basic churn score that catches 60% of at-risk customers is enormously valuable if nobody was catching them before.

Get weekly job alerts

Curated marketing analytics roles — delivered every Monday.