distribution_probability
Calculate the probability that a random variable X meets a condition (e.g., X < 5) for a specified distribution type and parameters, returning symbolic or numeric results.
Instructions
Calculate probability P(condition).
═══════════════════════════════════════════════════════════════════════
🆕 NOT AVAILABLE IN SYMPY-MCP!
═══════════════════════════════════════════════════════════════════════
Args:
distribution_type: Type of distribution
parameters: Distribution parameters
condition: Condition string using X as the random variable
- "X < 5", "X > 2", "X >= 3", "X <= 1"
- "2 < X < 5" (between two values)
Returns:
Probability (symbolic or numeric)
Examples:
# P(X < 0) for standard normal
distribution_probability("normal", {"mean": "0", "std": "1"}, "X < 0")
→ {"probability": "1/2", ...}
# P(1 < X < 3) for exponential
distribution_probability("exponential", {"rate": "lambda"}, "1 < X < 3")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"distribution_type": "<distribution_type>",
"parameters": "<parameters>",
"condition": "<condition>"
},
"name": "distribution_probability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | ||
| parameters | Yes | ||
| distribution_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||