What is binomial distribution and how does it work?

Click For Summary

Discussion Overview

The discussion revolves around the concept of binomial distribution, particularly focusing on its definition, application, and how to implement it in programming. Participants explore the foundational ideas behind binomial distribution and seek clarification on its practical use in calculations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant requests a simple explanation of binomial distribution, expressing difficulty in understanding existing resources.
  • Another participant introduces the concept of a Bernoulli trial as a foundational element of binomial distribution, providing a brief definition and example.
  • A participant outlines the necessary components for programming a binomial distribution, including defining the probability space and specific probabilities for outcomes.
  • A formula for the probability density function of the binomial distribution is presented, detailing its components.
  • One participant shares calculated probabilities for a coin toss experiment, seeking confirmation of their results.
  • Another participant confirms the calculations provided for the binomial distribution probabilities.

Areas of Agreement / Disagreement

Participants generally agree on the basic principles of binomial distribution and its application in programming, though the initial understanding and clarity of the concept vary among them. There is no significant disagreement noted, but the discussion reflects varying levels of familiarity with the topic.

Contextual Notes

The discussion does not address potential limitations in the understanding of binomial distribution or the assumptions underlying the examples provided. Specific mathematical steps and definitions may require further exploration for complete clarity.

Who May Find This Useful

This discussion may be useful for individuals with a background in IT or those new to statistical concepts, particularly those looking to implement binomial distribution in programming or seeking foundational understanding of the topic.

sycamorex
Messages
4
Reaction score
0
Hi,

Can anyone explain binomial distribution to me. I tried wikipedia and some googling, but I just do not understand much of it. I don't come from
maths background, I am more like an IT person. I need to write a short
program calculating binomial distributions, however, first I need to understand the idea behind it to write the program.

Can you expain it to me in simple terms, or refer to any link providing
a SIMPLE explanation. As I said before, the explanation on wikipidia
doesn't tell me much. Possibly some exercises on it. When do we use it?

Thank you very much in advance
sycamorex
 
Physics news on Phys.org
A keyword which you should find useful while doing some further google-ing: a Bernoulli trial.

Edit: ok ok, I'll google it up from my head in the meantime. :smile:

Let there be m independent experiments such that the probability of an outcome A is equal in every of the experiments and is given with P(A) = p. This is a Bernoulli trial. (Example: coin tossing - head or tail.)

Further on, a random variable X = 'the number of times an event A occurred in m experiments in a Bernoulli trial with the probability p' is called a Bernoulli or binomial random variable.

This is a brief explanation.
 
Last edited:
thank you
Ok, so if i want to write the computer I would have to have:

probability space - an array of possible outcomes e.g {1,2} tossing a coing, {1,2,3,4,5,6} for rolling a dice.
then I need to state the probability of a particular outcome to happen
e.g P(C)= 0.5 (coins), P(D)=1/6 (dice)

and how can I calculate the binomial distribution of it?
 
sycamorex said:
thank you
Ok, so if i want to write the computer I would have to have:

probability space - an array of possible outcomes e.g {1,2} tossing a coing, {1,2,3,4,5,6} for rolling a dice.
then I need to state the probability of a particular outcome to happen
e.g P(C)= 0.5 (coins), P(D)=1/6 (dice)

and how can I calculate the binomial distribution of it?

You have to apply the probability density function of the binomial distribution, which is given with:
[tex]f(x) = P(X=k) = \binom{m}{k}p^k (1-p)^{m-k}[/tex],

where m is the number of experiments and k the number of a specific outcome of the experiment.
 
Thanks I think I cracked it:)
so can you confirm it, please
If we take tossing a coin as our experiment
P=0.5
number of trials =4

k=0, probability density function:0.0625
k=1, pdf: 0.25
k=2, pdf: 0.375
k=3, pdf: 0.25
k=4, pdf: 0.0625

is that correct?
thanks
 
yeah you are correct, sycamorex
 
thanks, now I will be able to write the program:)
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 24 ·
Replies
24
Views
4K
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K