# Actuarial Competing Risks Calculator MCP. AI Agent Connect

> Actuarial Competing Risks Calculator MCP provides a technical engine for survival analysis when multiple mutually exclusive events are present. Your AI client uses this to compute cause-specific cumulative incidence functions and overall survival probabilities from raw event data and time grids.

## Overview
- **Category:** statistics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NRRh8rheYfL8qKO8JXML9qy3ZVJuQhkZGwslj0lN/ai-agent-connect
- **Tags:** survival-analysis, competing-risks, actuarial-science, statistics, probability

## Description

You can use this MCP to handle survival analysis in datasets where multiple event types compete with one another. Instead of manual statistical coding, you hand your event data to your AI client and let it run the heavy math. It handles the logic for cause-specific cumulative incidence functions (CIF) and survival probabilities, even when you're dealing with complex, mutually exclusive event types. You can check if your dataset is actually sufficient for multi-cause analysis before you start, or pull specific summaries of individuals at risk or censored at any given time. It's built for technical workflows where you need to estimate probabilities at specific time points through interpolation without rebuilding the entire statistical model from scratch.

## Tools

### calculate_incidence_and_survival
This tool performs the core actuarial math for cumulative incidence and survival probabilities.

### get_risk_set_summary
Use this to get a summary of individuals who are at risk, censored, or experiencing events at specific time intervals.

### interpolate_incidence
This tool estimates cumulative incidence at specific time points using interpolation.

### validate_event_distribution
This tool checks if your dataset contains enough information to support multi-cause analysis.

## Prompt Examples

**Prompt:** 
```
Calculate the cumulative incidence and survival for this event data: [{'time': 10, 'cause': 1, 'isCensored': false}, {'time': 15, 'cause': 2, 'isCensored': false}, {'time': 20, 'cause': 1, 'isCensored': true}] using a time grid of [5, 10, 15, 20] and nelson-aalen estimator.
```

**Response:** 
```
The survival probability at time 10 is 0.92, and the cumulative incidence for cause 1 is 0.08.
```

**Prompt:** 
```
How many individuals were at risk at time 5 given this data: [{'time': 5, 'cause': 1, 'isCensored': false}, {'time': 10, 'cause': 1, 'isCensored': true}]?
```

**Response:** 
```
At time 5, there were 2 individuals at risk.
```

**Prompt:** 
```
Interpolate the cumulative incidence for cause 1 at time 12 using the results from the previous calculation.
```

**Response:** 
```
The interpolated cumulative incidence for cause 1 at time 12 is 0.12.
```

## Capabilities

### Survival Probability Calculation
Your agent calculates survival probabilities and cumulative incidence functions for competing risks.

### Risk Set Monitoring
Your agent tracks how many individuals are at risk or censored at specific time points.

### Data Sufficiency Checks
Your agent verifies if the provided dataset can support multi-cause analysis.

### Time Point Interpolation
Your agent estimates incidence values for specific times that fall between your data points.

## Use Cases

### Medical Research
Analyze patient survival when different causes of death compete as risks.

### Insurance Risk Modeling
Calculate the probability of specific policyholder events occurring over time.

### Reliability Engineering
Model component failure rates when multiple types of failure modes exist.

### Clinical Trials
Process event data to determine cause-specific incidence for study participants.

## Benefits

- Automates the math for cumulative incidence and survival functions.
- Handles mutually exclusive event types without manual coding.
- Provides quick summaries of risk sets and censored data.
- Enables precise probability estimation through interpolation.

## How It Works

Connect your AI client to Vinkius and start running statistical calculations immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your event data and time grids to your AI agent.
3. Your agent uses the MCP tools to run the actuarial math.
4. Receive the calculated incidence, survival, or risk set summaries.

## Frequently Asked Questions

**What kind of data does this MCP need?**
It requires event data including time, cause, and censoring status, along with a defined time grid for calculations.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**Does it support multi-cause analysis?**
Yes, it is specifically designed to handle datasets where multiple mutually exclusive event types are present.

**How do I check if my data is valid for this analysis?**
You can use the validate_event_distribution tool to see if your dataset has enough information for multi-cause analysis.

**What is the difference between survival and incidence in this tool?**
The tool calculates both survival probabilities and cause-specific cumulative incidence functions (CIF) using the provided event data.

**How does this handle competing risks compared to standard Kaplan-Meier?**
Unlike Kaplan-Meier, which treats competing events as censored and can overestimate incidence, this engine uses cumulative incidence functions to correctly account for the fact that competing events remove individuals from the risk set.

**Can I estimate probabilities for time points not in my original data?**
Yes, you can use the `interpolate_incidence` tool to provide estimates for cumulative incidence at specific time points via linear interpolation.

**How do I check if my dataset is sufficient for analysis?**
You can use the `validate_event_distribution` tool to check if the provided dataset contains enough information to support multi-cause analysis based on a minimum event threshold.
