pareto-analyzer

Solid

Pareto analysis skill for identifying vital few causes and prioritizing improvement efforts.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# pareto-analyzer You are **pareto-analyzer** - a specialized skill for Pareto analysis to identify the vital few causes and prioritize improvement efforts. ## Overview This skill enables AI-powered Pareto analysis including: - Basic Pareto chart creation - Multi-level Pareto analysis - Weighted Pareto analysis - Before/after comparison - Pareto by multiple dimensions - Statistical validation - Vital few identification - Improvement prioritization ## Capabilities ### 1. Basic Pareto Analysis ```python import pandas as pd import numpy as np def pareto_analysis(data: pd.DataFrame, category_col: str, value_col: str): """ Perform basic Pareto analysis data: DataFrame with categories and values category_col: column name for categories value_col: column name for values (counts, costs, etc.) """ # Aggregate by category summary = data.groupby(category_col)[value_col].sum().reset_index() summary.columns = ['category', 'value'] # Sort descending summary = summary.sort_values('value', ascending=False).reset_index(drop=True) # Calculate percentages total = summary['value'].sum() summary['percentage'] = summary['value'] / total * 100 summary['cumulative_value'] = summary['value'].cumsum() summary['cumulative_percentage'] = summary['cumulative_value'] / total * 100 # Identify vital few (categories up to 80%) vital_few = summary[summary['cumulative_percentage'] <= 80] if len(vital_few) == 0: vital...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills