Git Product home page Git Product logo

binomial-distribution's Introduction

Binomial distribution

This is an excerise for Udacity's AI Programming with Python lesson 7.

What is Binomial Distribution?

A Binomial distribution is a probability distribution that summarizes the likelihood of a binary outcome, such as success or failure, in a fixed number of independent trials. It's characterized by two parameters:

  1. Number of Trials (n): The total number of independent experiments or trials.
  2. Probability of Success (p): The probability of success in each individual trial.

In a Binomial distribution:

  • Each trial is independent, meaning the outcome of one trial does not affect the outcome of another.
  • Each trial has only two possible outcomes, often labeled as success (usually denoted as 1) or failure (usually denoted as 0).
  • The probability of success (denoted as p) remains constant from trial to trial.
  • The number of successes in n trials, denoted as k, can range from 0 to n.

The probability mass function (PMF) of the Binomial distribution gives the probability of observing exactly k successes in n trials, given the probability of success p.

The formula for the PMF of a Binomial distribution is:

[ P(X = k) = \binom{n}{k} \times p^k \times (1 - p)^{n - k} ]

where:

  • ( \binom{n}{k} ) is the binomial coefficient, representing the number of ways to choose k successes out of n trials.
  • p is the probability of success on each individual trial.
  • k is the number of successes.
  • n is the total number of trials.

Binomial distributions are widely used in various fields, including statistics, finance, biology, and quality control, to model phenomena such as success/failure experiments, coin flips, and the number of defective items in a sample.

binomial-distribution's People

Contributors

chatasweetie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.