🎲

Probability Solver

Verified

by Community

Solves probability problems including permutations, combinations, Bayes theorem, and distribution calculations with step-by-step work.

probabilitycombinatoricsmathscience

Probability Solver Skill

Solves probability problems covering combinatorics, conditional probability, and distributions with detailed steps.

Usage

python3 -c "
from math import comb, factorial
# Combinations: 52 choose 5 (poker hands)
print(f'5-card hands: {comb(52, 5):,}')
# Probability
print(f'P(royal flush): {4/comb(52,5):.10f}')
"

Examples

  • "What are the odds of rolling two sixes?" -> Calculates 1/36 with explanation
  • "How many ways to arrange 5 books?" -> Computes 5! = 120 permutations
  • "Apply Bayes theorem" -> Step-by-step conditional probability calculation

Guidelines

  • Show the solution formula before plugging in numbers
  • Distinguish between permutations and combinations clearly
  • Express probabilities as both fractions and percentages