attribution-analysis-modeling

Compute multi-touch attribution using Markov chains and Shapley values.

264|45|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/liangdabiao/claude-data-analysis-ultra-main --skill attribution-analysis-modeling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: attribution-analysis-modeling
Source: https://github.com/liangdabiao/claude-data-analysis-ultra-main/tree/main/.claude/skills/attribution-analysis-modeling
Command: npx skills add https://github.com/liangdabiao/claude-data-analysis-ultra-main --skill attribution-analysis-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scipy, networkx, plotly, matplotlib, shap.

What problem does it solve?

This Skill delivers comprehensive marketing attribution capabilities including multiple attribution models (First/Last/Linear/Time-Decay/Markov/Shapley), along with journey reconstruction, channel performance analysis, and ROI-driven insights.

Core Features & Use Cases

  • Attribution Models: First-touch, last-touch, linear, time-decay, position-based, Markov, and Shapley-based attributions.
  • Customer Journey & Transitions: Reconstruct paths, assess sequencing, and measure conversion contributions.
  • Channel Performance & ROI: Calculate channel-level conversion rates, CPA, ROI, and optimization recommendations.
  • Visualization & Reporting: Attribution weights, channel networks, journey visualizations, and comprehensive reports.

Quick Start

Build customer paths, apply multiple attribution models, compare results, and generate attribution dashboards to guide marketing spend.

Frequently Asked Questions about attribution-analysis-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate marketing attribution across multiple channels?

Multi-touch attribution models assign credit to each channel in a customer journey. This Skill computes attribution using Markov chains, Shapley values, and baseline models (first-touch, last-touch, linear, time-decay) on customer path data to show which channels drive conversions and revenue.

Can I compare different attribution models on the same customer journey data?

Yes. This Skill applies multiple attribution approaches simultaneously—Markov, Shapley, and position-based models—then compares results side-by-side to reveal how model choice affects channel credit allocation and ROI calculations across your data.

What data formats does this attribution analysis support?

Attribution analysis accepts CSV, JSON, and Excel files containing customer journey paths. The Skill reconstructs sequences, validates data, generates transition matrices, and outputs visualizations and reports compatible with pandas and plotly for downstream analysis.

How does Markov chain attribution differ from Shapley-based attribution?

Markov chain attribution models channel sequences as state transitions to measure removal effects—how conversion drops when a channel is absent. Shapley values distribute credit using coalitional game theory, treating all channel combinations equally. Each reveals different optimization insights.

Can I get channel ROI and optimization recommendations from attribution results?

Yes. This Skill calculates channel-level conversion rates, cost-per-acquisition, and ROI metrics, then generates actionable optimization recommendations based on attribution weights and journey performance to guide marketing spend reallocation.

Do I need programming experience to use multi-touch attribution models?

The Skill handles Markov chain computation, Shapley value algorithms, and model comparison automatically. You provide customer journey data in CSV, JSON, or Excel format; the Skill manages path construction, transition matrices, and comparative visualizations without requiring deep statistical coding.