Performing Regression Analysis

by jeremylongshore

skill

|

Skill Details

Repository Files

9 files in this skill directory


name: performing-regression-analysis description: | Execute this skill empowers AI assistant to perform regression analysis and modeling using the regression-analysis-tool plugin. it analyzes datasets, generates appropriate regression models (linear, polynomial, etc.), validates the models, and provides performa... Use when analyzing code or data. Trigger with phrases like 'analyze', 'review', or 'examine'. allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*) version: 1.0.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT

Regression Analysis Tool

This skill provides automated assistance for regression analysis tool tasks.

Overview

This skill provides automated assistance for regression analysis tool tasks. This skill enables Claude to analyze data, build regression models, and provide insights into the relationships between variables. It leverages the regression-analysis-tool plugin to automate the process and ensure best practices are followed.

How It Works

  1. Data Analysis: Claude analyzes the provided data to understand its structure and identify potential relationships between variables.
  2. Model Generation: Based on the data, Claude generates appropriate regression models (e.g., linear, polynomial).
  3. Model Validation: Claude validates the generated models to ensure their accuracy and reliability.
  4. Performance Reporting: Claude provides performance metrics and insights into the model's effectiveness.

When to Use This Skill

This skill activates when you need to:

  • Perform regression analysis on a given dataset.
  • Predict future values based on existing data using regression models.
  • Understand the relationship between independent and dependent variables.
  • Evaluate the performance of a regression model.

Examples

Example 1: Predicting House Prices

User request: "Can you build a regression model to predict house prices based on square footage and number of bedrooms?"

The skill will:

  1. Analyze the provided data on house prices, square footage, and number of bedrooms.
  2. Generate a regression model (likely multiple to compare) to predict house prices.
  3. Provide performance metrics such as R-squared and RMSE.

Example 2: Analyzing Sales Trends

User request: "I need to analyze the sales data for the past year and identify any trends using regression analysis."

The skill will:

  1. Analyze the provided sales data.
  2. Generate a regression model to identify trends and patterns in the sales data.
  3. Visualize the trend and report the equation and R-squared value.

Best Practices

  • Data Preparation: Ensure the data is clean and preprocessed before performing regression analysis.
  • Model Selection: Choose the appropriate regression model based on the data and the problem.
  • Validation: Always validate the model to ensure its accuracy and reliability.

Integration

This skill works independently using the regression-analysis-tool plugin. It can be used in conjunction with other data analysis and visualization tools to provide a comprehensive understanding of the data.

Prerequisites

  • Appropriate file access permissions
  • Required dependencies installed

Instructions

  1. Invoke this skill when the trigger conditions are met
  2. Provide necessary context and parameters
  3. Review the generated output
  4. Apply modifications as needed

Output

The skill produces structured output relevant to the task.

Error Handling

  • Invalid input: Prompts for correction
  • Missing dependencies: Lists required components
  • Permission errors: Suggests remediation steps

Resources

  • Project documentation
  • Related skills and commands

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
License:MIT
Version:1.0.0
Allowed Tools:Read, Write, Edit, Grep, Glob, Bash(cmd:*)
Last Updated:1/5/2026