원클릭으로
regression
Build and evaluate regression models to predict a target variable. Use when modeling relationships between features and an outcome.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build and evaluate regression models to predict a target variable. Use when modeling relationships between features and an outcome.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyze an A/B test experiment and provide a clear ship/iterate/no-ship recommendation. Use when evaluating experiment results.
Run correlation analysis on connected data, identify strong relationships, and suggest regression models. Use when exploring relationships between variables.
Discover natural groupings in data using clustering algorithms with evaluation and visualization. Use when segmenting data or finding patterns.
Run an end-to-end data analysis pipeline — connect, profile, analyze, and report. Use when performing a complete analysis workflow.
Connect to a data source, profile its schema and quality, and recommend appropriate analyses. Use when starting work with a new dataset.
Analyze a time series and generate forecasts with confidence intervals. Use when predicting future values from historical data.
| name | regression |
| description | Build and evaluate regression models to predict a target variable. Use when modeling relationships between features and an outcome. |
| allowed-tools | mcp__localdata__describe_database mcp__localdata__execute_query mcp__localdata__analyze_regression mcp__localdata__evaluate_model_performance |
| argument-hint | <database-name> <target-column> |
Build, evaluate, and compare regression models to predict a target variable from features.
Parse arguments. Extract the database name and target column from $ARGUMENTS. The first argument is the database name, the second is the target variable to predict.
Explore available features. Call describe_database with the database name. Identify numeric columns as potential predictors. Note the target column's distribution (continuous vs discrete) to confirm regression is appropriate.
Extract and inspect data. Call execute_query to select the target column and candidate feature columns. Check for nulls, outliers, and sufficient row count (at least 30 observations per feature as a rule of thumb).
Build a linear baseline. Call analyze_regression with the database name, target column, feature columns, and model type "linear". Review the results: R-squared, adjusted R-squared, coefficients, p-values, and residual diagnostics.
Evaluate baseline performance. Call evaluate_model_performance to get detailed metrics: RMSE, MAE, R-squared, and residual analysis. Assess whether the linear model captures the relationship adequately.
Interpret baseline results. Check for:
Try alternative models if needed. If the linear baseline performs poorly (R-squared below 0.5 or patterned residuals), call analyze_regression with alternative model types:
Compare models. For each model fitted, compare R-squared, RMSE, and MAE. Select the model with the best balance of performance and interpretability. Simpler models are preferred when performance is comparable.
Present the final model. Report:
Recommend next steps. Suggest validating on held-out data, running /localdata-mcp:analyze-correlations to find additional predictors, or using /localdata-mcp:cluster-analysis to identify subgroups where the model performs differently.