# Bernoulli Distribution Probability

**Formula:**`P(X=x) = p^x * (1-p)^(1-x)`

## Introduction to Bernoulli Distribution Probability

The Bernoulli distribution is a discrete probability distribution that represents the probability of success (x = 1) or failure (x = 0) in a single Bernoulli trial, where the probability of success is represented by the parameter ** p**. The formula calculates the probability of a specific outcome

**for a given probability**

*x***.**

*p*## Parameter usage:

`p`

= probability of success`x`

= specific outcome (0 for failure, 1 for success)

## Output:

`P(X=x)`

= probability of the specific outcome

## Data validation

The probability `p`

should be between 0 and 1, and the outcome `x`

should be either 0 or 1.

## Summary

This calculator computes the probability of a specific outcome in a single Bernoulli trial based on the given probability of success.

Tags: Probability, Bernoulli Distribution, Discrete Probability