Train-test splitting with stratification when appropriate
Cross-validation for robust model evaluation
Parameter optimization using systematic approaches
Residual analysis and diagnostic checks
Business interpretation of statistical results
Documentation of methodology and assumptions
Example Usage
-- Example workflow for Teradata Attribution Analytics
-- Replace 'your_table' with actual table name
-- 1. Data exploration and validation
SELECT COUNT(*),
COUNT(DISTINCT your_id_column),
AVG(your_target_column),
STDDEV(your_target_column)
FROM your_database.your_table;
-- 2. Execute complete advanced_analytics workflow
-- (Detailed SQL provided by the skill)
Scripts Included
Core Analytics Scripts
preprocessing.sql: Data preparation and feature engineering
Best practices: Updated based on analytics community feedback
Documentation: Maintained with latest ClearScape Analytics features
Examples: Updated with real-world use cases and scenarios
This skill provides production-ready advanced_analytics analytics using Teradata ClearScape Analytics TD_Attribution with comprehensive data science best practices.
1---2name: td-attribution3description: Marketing attribution modeling and analysis4---56# Teradata Attribution Analytics
78| **Skill Name** | Teradata Attribution Analytics |
9|----------------|--------------|
10| **Description** | Marketing attribution modeling and analysis |
11| **Category** | Advanced Analytics Analytics |
12| **Function** | TD_Attribution |
1314## Core Capabilities
1516- **Complete analytical workflow** from data exploration to model deployment
17- **Automated preprocessing** including scaling, encoding, and train-test splitting
18- **Advanced TD_Attribution implementation** with parameter optimization
19- **Comprehensive evaluation metrics** and model validation
20- **Production-ready SQL generation** with proper table management
21- **Error handling and data quality checks** throughout the pipeline
22- **Business-focused interpretation** of analytical results
2324## Table Analysis Workflow
2526This skill automatically analyzes your provided table to generate optimized SQL workflows. Here's how it works:
2728### 1. Table Structure Analysis
29- **Column Detection**: Automatically identifies all columns and their data types
30- **Data Type Classification**: Distinguishes between numeric, categorical, and text columns
31- **Primary Key Identification**: Detects unique identifier columns
32- **Missing Value Assessment**: Analyzes data completeness
3334### 2. Feature Engineering Recommendations
35- **Numeric Features**: Identifies columns suitable for scaling and normalization
36- **Categorical Features**: Detects columns requiring encoding (one-hot, label encoding)
37- **Target Variable**: Helps identify the dependent variable for modeling
38- **Feature Selection**: Recommends relevant features based on data types
3940### 3. SQL Generation Process
41- **Dynamic Column Lists**: Generates column lists based on your table structure
42- **Parameterized Queries**: Creates flexible SQL templates using your table schema
43- **Table Name Integration**: Replaces placeholders with your actual table names
44- **Database Context**: Adapts to your database and schema naming conventions
4546## How to Use This Skill
47481. **Provide Your Table Information**:
49 ```
50 "Analyze table: database_name.table_name"
51 or
52 "Use table: my_data with target column: target_var"
53 ```
54552. **The Skill Will**:
56 - Query your table structure using `SHOW COLUMNS FROM table_name`
57 - Analyze data types and suggest appropriate preprocessing
58 - Generate complete SQL workflow with your specific column names
59 - Provide optimized parameters based on your data characteristics
6061## Input Requirements
6263### Data Requirements
64- **Source table**: Teradata table with analytical data
65- **Target column**: Dependent variable for advanced_analytics analysis
66- **Input data**: Properly formatted Teradata table
67- **Column specifications**: Appropriate data types for analysis
6869### Technical Requirements
70- **Teradata Vantage** with ClearScape Analytics enabled
71- **Database permissions**: CREATE, DROP, SELECT on working database
72- **Function access**: TD_Attribution
7374## Output Formats
7576### Generated Tables
77- **Preprocessed data tables** with proper scaling and encoding
78- **Train/test split tables** for model validation
79- **Processed results** from TD_Attribution analysis
80- **Summary statistics** and transformation parameters
8182### SQL Scripts
83- **Complete workflow scripts** ready for execution
84- **Parameterized queries** for different datasets
85- **Table management** with proper cleanup procedures
8687## Advanced Analytics Use Cases Supported
88891. **Marketing attribution**: Comprehensive analysis workflow
902. **Channel analysis**: Comprehensive analysis workflow
913. **Conversion tracking**: Comprehensive analysis workflow
9293## Best Practices Applied
9495- **Data validation** before analysis execution
96- **Proper feature scaling** and categorical encoding
97- **Train-test splitting** with stratification when appropriate
98- **Cross-validation** for robust model evaluation
99- **Parameter optimization** using systematic approaches
100- **Residual analysis** and diagnostic checks
101- **Business interpretation** of statistical results
102- **Documentation** of methodology and assumptions
103104## Example Usage
105106```sql
107-- Example workflow for Teradata Attribution Analytics
108-- Replace 'your_table' with actual table name
109110-- 1. Data exploration and validation
111SELECT COUNT(*),
112 COUNT(DISTINCT your_id_column),
113 AVG(your_target_column),
114 STDDEV(your_target_column)
115FROM your_database.your_table;
116117-- 2. Execute complete advanced_analytics workflow
118-- (Detailed SQL provided by the skill)
119```
120121## Scripts Included
122123### Core Analytics Scripts
124- **`preprocessing.sql`**: Data preparation and feature engineering
125- **`table_analysis.sql`**: Automatic table structure analysis
126- **`complete_workflow_template.sql`**: End-to-end workflow template
127- **`evaluation.sql`**: Model validation and metrics calculation
128129### Utility Scripts
130- **`data_quality_checks.sql`**: Comprehensive data validation
131- **`parameter_tuning.sql`**: Systematic parameter optimization
132- **`diagnostic_queries.sql`**: Model diagnostics and interpretation
133134## Limitations and Disclaimers
135136- **Data quality**: Results depend on input data quality and completeness
137- **Sample size**: Minimum sample size requirements for reliable results
138- **Feature selection**: Manual feature engineering may be required
139- **Computational resources**: Large datasets may require optimization
140- **Business context**: Statistical results require domain expertise for interpretation
141- **Model assumptions**: Understand underlying mathematical assumptions
142143## Quality Checks
144145### Automated Validations
146- **Data completeness** verification before analysis
147- **Statistical assumptions** testing where applicable
148- **Model convergence** monitoring during training
149- **Prediction quality** assessment using validation data
150- **Performance metrics** calculation and interpretation
151152### Manual Review Points
153- **Feature selection** appropriateness for business problem
154- **Model interpretation** alignment with domain knowledge
155- **Results validation** against business expectations
156- **Documentation** completeness for reproducibility
157158## Updates and Maintenance
159160- **Version compatibility**: Tested with latest Teradata Vantage releases
161- **Performance optimization**: Regular query performance reviews
162- **Best practices**: Updated based on analytics community feedback
163- **Documentation**: Maintained with latest ClearScape Analytics features
164- **Examples**: Updated with real-world use cases and scenarios
165166---
167168*This skill provides production-ready advanced_analytics analytics using Teradata ClearScape Analytics TD_Attribution with comprehensive data science best practices.*
Run npx skillmds@latest add majiayu000/td-attribution in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Marketing attribution modeling and analysis It is listed under Marketing & Growth on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.