Create Advanced Outlier Detection Script
Generate production-ready Python scripts for detecting outliers in datasets using multiple statistical methods and visualizations.
Prompt Template
Variables to Customize
[DATASET_TYPE] Type of dataset being analyzed
Example: customer transaction data with numerical features
[TARGET_COLUMNS] Specific columns to analyze for outliers
Example: transaction_amount, account_balance, monthly_spending
[DATASET_SIZE] Approximate size of the dataset
Example: 50,000 rows, 15 columns
[FILE_FORMAT] Format of the input data file
Example: CSV
Example Output
Pro Tips for Best Results
- Test the script on a sample of your data first to optimize thresholds and parameters
- Consider domain expertise when choosing detection methods - some outliers might be valid extreme values
- Visualize outliers before removal to understand their distribution and potential business impact
- Save outlier detection results and parameters for reproducibility and audit trails
- Use cross-validation to tune hyperparameters like contamination rate in Isolation Forest
Tags
Want 500+ Expert Prompts?
Get the Premium Prompt Pack — organized, tested, and ready to use.
Get it for $29Related Prompts You Might Like
Analyze Website Traffic Data
I need you to analyze website traffic data and provide actionable insights. Please examine the following metrics and dat...
Build Customer Churn Prediction Model
You are an expert data scientist specializing in customer retention analytics. Help me build a comprehensive customer ch...
Build Employee Performance Tracker Spreadsheet
Create a comprehensive employee performance tracker spreadsheet for [DEPARTMENT] with [NUMBER_OF_EMPLOYEES] employees. T...
Build ETL Data Pipeline
You are a senior data engineer tasked with designing and implementing a comprehensive ETL (Extract, Transform, Load) dat...
Validate Data Entry Format
You are a data validation specialist. I need you to validate the format of data entries and identify any formatting issu...
Create Data Visualization Chart
You are a data visualization expert tasked with creating a comprehensive chart visualization for the following dataset a...