# Mechanical Design of Experiments Calculator AI Agent Connect

> Mechanical Design of Experiments Calculator is a deterministic toolkit for engineering DOE. It lets your AI client generate coded or physical design layouts, calculate factor effects, and run ANOVA. You can also check model fitness or identify confounded effects in fractional designs using this MCP.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_p2dd5og8eYciwM7ZhJA5doJ5Dzc8mYIPTeZDxwrj/ai-agent-connect
- **Tags:** doe, anova, regression, experimental-design, engineering-tools

## Description

You can now run rigorous statistical experiments directly through your AI client. This MCP handles the heavy lifting of Design of Experiments (DOE) by providing the mathematical framework needed for engineering research. Instead of manually calculating matrices or running complex statistical software, you tell your agent what factors and levels you are testing. It builds the layout for you, whether you need a full factorial design or a fractional one. Once you have your experimental data, your agent can process the results to find out which factors actually matter. It calculates factor effects and ANOVA quantities to give you a clear picture of your experimental variance. If you are working with fractional designs, the MCP helps you navigate the math by identifying which effects are obscured by confounding. It is a precise, deterministic way to bring statistical rigor to your engineering workflows without leaving your coding or chat environment.

## Tools

### analyze_experimental_results
This tool calculates how much each factor actually impacts your measured responses. It provides the statistical weight of your variables.

### construct_doe_matrix
This tool builds your experimental design layout based on the specific structural requirements you provide. It generates both coded and physical matrices.

### get_model_fitness
This tool evaluates how accurately your mathematical model represents the data you collected. It helps you decide if your model is reliable.

### query_alias_impact
This tool identifies specific factor effects that are hidden by confounding when you use fractional designs.

## Prompt Examples

**Prompt:** 
```
Generate a full factorial design for two factors: Temperature (100, 200) and Pressure (50, 100).
```

**Response:** 
```
The design matrix has been generated with 4 runs. The physical matrix includes combinations of (100, 50), (100, 100), (200, 50), and (200, 100).
```

**Prompt:** 
```
Analyze these results: design matrix [[-1, -1], [1, -1], [-1, 1], [1, 1]] and responses [10, 20, 12, 22].
```

**Response:** 
```
The analysis shows a main effect of 5.0 for the first factor and 2.0 for the second factor. The ANOVA indicates significant variance.
```

**Prompt:** 
```
Calculate the R-squared for responses [10, 12, 11] and fitted values [10.5, 11.5, 11.5].
```

**Response:** 
```
The R-squared value is 0.96, indicating a high degree of model fit.
```

## Capabilities

### Matrix Construction
Your agent uses this to create structured experimental layouts for full or fractional designs.

### Statistical Analysis
Your agent performs ANOVA and calculates factor effects once data is collected.

### Model Validation
Your agent checks the fitness of a mathematical model against observed data.

### Confounding Identification
Your agent identifies alias impacts in fractional designs to find obscured effects.

## Use Cases

### Factorial Design Setup
You tell your agent the temperature and pressure ranges, and it builds the full factorial matrix for your test runs.

### Experimental Data Analysis
After running tests, you feed the results to your agent to calculate the statistical impact of each factor.

### Model Accuracy Checks
You use the agent to calculate R-squared values to see if your mathematical model actually fits your real-world data.

### Fractional Design Troubleshooting
When using fewer runs, you use the agent to find out which effects are confounded with others.

## Benefits

- Eliminates manual matrix construction by generating layouts automatically.
- Provides deterministic statistical outputs for ANOVA and factor effects.
- Identifies confounding issues in fractional designs through alias impact queries.
- Validates model accuracy using fitness metrics.

## How It Works

The process moves from design setup to statistical validation within your existing AI interface.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your factor levels and design requirements to your agent.
3. The agent uses the MCP to generate a design matrix.
4. Input your experimental results into the agent.
5. The agent runs ANOVA and fitness checks to provide the final analysis.

## Frequently Asked Questions

**What kind of designs can this MCP create?**
It can generate both full and fractional factorial designs, providing both coded and physical layouts.

**Can I use this with any AI client?**
Yes, it works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**How does it handle fractional designs?**
It includes a specific tool to query alias impact, which helps you identify which factor effects are confounded.

**Does it perform ANOVA?**
Yes, the MCP includes a tool to calculate ANOVA quantities and factor effects from your experimental results.

**How do I know if my model is accurate?**
You can use the model fitness tool to evaluate how well the mathematical model describes your observed data.

**What design types are supported?**
The server supports Full Factorial, Fractional Factorial, and Central Composite designs via the `construct_doe_matrix` tool.

**How do I check if my model fits the data well?**
You can use the `get_model_fitness` tool to calculate R-squared and adjusted R-squared values.

**Can I identify confounded effects in fractional designs?**
Yes, the `query_alias_impact` tool identifies which factor effects are obscured by confounding.
