19
MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU A-203 patelnutan.wordpress.com MA305 Mathematics for ICE 1

MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

Embed Size (px)

DESCRIPTION

Expected value MA305 Mathematics for ICE3

Citation preview

Page 1: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 1

MA305Mean, Variance

Binomial DistributionBy: Prof. Nutan Patel

Asst. Professor in MathematicsIT-NUA-203

patelnutan.wordpress.com

Page 2: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 2

Probability FunctionIf for random variable X, the real valued function f(x) is such that

P(X=x) = f(x)Then f(x) is called probability function.

If X is a discrete random variable then its probability function f(x) is discrete probability function. It is called probability mass function.

If X is a continuous random variable then its probability function f(x) is continuous probability function. It is called probability density function.

1 ixf

1

dxxf

Page 3: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 3

Expected valueDefinition: If X is a random variable with values x1, x2, …, xn and corresponding probabilities p1, p2, …, pn then the expected value of X, denoted as E(X) is

E(X)= p1 x1 + p2 x2 + … + pn xn .

ExpectationThe mean value (µ) of the probability distribution of a variable X is commonly known as its expectation and is denoted by E(X). E(X)=) (Discrete Distribution)E(X)= (Continuous Distribution)

Page 4: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 4

MEANThe mean value (µ) of the probability distribution of a variable X is commonly known as its expectation and is denoted by E(X). E(X)=) (Discrete Distribution)E(X)= (Continuous Distribution)

Page 5: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 5

Variance

• Variance characterizes the variability in the distributions, since two distributions with same mean can still have different dispersion of data about their means.

• Variance of R.V. X is

• Remark:

dxxfXxE 222

ii xfxxE 222

22222 XEXEXE

Page 6: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 6

Standard Deviation (S.D.)• S.D. Denoted by , is the positive square root of variance.

Ex: Prove that (a) E(cX)=c E(X) (b) E(X+c) =E(X)+c

Ex: Prove that (a) Var(cX) = c2 Var(X)(b) Var(X+c)= Var(X)

Page 7: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 7

Moment Generating Function (mgf)• MGF, the expected value of for the probability distribution function

f(x) of a random variable Xm. g. f. is defined as

OR Series form of m.g.f.

!3!21

!3!21

!3!21)(

3

3

2

21

33

22

32

0

ttt

txEtxEtxE

txtxtxEeEtM tx

Where is the usual moment of order r about the origin, is the coefficient of r .!rt r

Page 8: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 8

• M.g.f. of the distribution about any other value x=a is defined as

• Moments about mean is known as central moments.•

tMeeEeeeEeEtM attxatattxaxta 0)()(

122

11 .

VarianceMean

Page 9: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 9

Bernoulli Trail Experiments• Suppose that you toss a coin ten times. What is the probability that

heads appears seven out of ten times?• A student guesses at all the answer on a ten MCQs quiz.

Such problems involved repeated trials of an experiment with only two possible outcomes: heads or tails, right or wrong, win or loss, so on..• We classify the two outcomes as success or failure.• When outcomes of an experiment are divided into two parts, it is

called the situation of dichotomy.

Page 10: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 10

• Properties of Bernoulli Experiment1. The experiment is repeated a fixed number of times (n times).2. Each trial has only two possible outcomes: success and failure. The

outcomes are exactly the same for each trial.3. The probability of success remains the same for each trial.

(probability of success is p and probability of failure q=1-p).4. The trials are independent.5. We are interested in the total number of successes, not the order in

which they occur.

Page 11: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 11

• Probability of a Bernoulli experiment:The probability of r successes in n trials is P(r successes in n trials)=P(r)= where n is independent trials, p is probability of success in a single trial,q=1-p is the probability of failure in a single trial,r is the number of successes (r ≤ n).

Page 12: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 12

Ex: A coin is tossed ten times. What is the probability that heads occurs seven times? Ans: here, n=10, r=7, p=1/2, q=1/2. P(r=7)=

= = 0.11718

Page 13: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 13

Ex: Find the probability of 4 successes, where n=9 and p=0.4.Ans: 0.15049

Ex: Determine the probability of getting sum 9 exactly 2 times in 3 throws with a pair of dice.Ans: n=3, r=2, sum is 9={(3, 6), (4, 5), (5,4), (6, 3)}, p=probability of getting sum 9= 4/36=1/9.q=1-p= 8/9.P(r=2)==8/243=0.0329

Page 14: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 14

Binomial Distribution• Bernoulli experiment trials distribution is called a binomial

distribution• For each integer value r, 0≤r≤n, find the probability of r successes in n

trials. Then the distribution obtained is the binomial probability distribution.

• This distribution is discrete distribution.• Definition:

Let X be the random variable for a binomial distribution with n repeated trials, with p the probability of success, q the probability of failure and P(X=r)=, r= 0, 1, 2, 3,…, n.

Page 15: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 15

Application of Binomial Distribution1. In Quality control charts (fraction defective or number of defective per sample)2. Useful for insurance companies.3. It is very useful in the application pertaining to behavioural sciences.4. In research field where dichotomy is there, this distribution is used.5. Estimation of reliability of systems.

Page 16: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 16

Ex: Find the binomial distribution for n=4 and p=0.3.

• 0.2401• 0.4116• 0.2646• 0.0756• 0.0081

X P(X=x) P(X)

0

1

2

3

4

Page 17: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 17

Mean, Variance of Binomial Distribution Mean = np.Variance = npq.Standard Deviation =

Ex: Find mean and s.d. of the binomial distribution with n=20 and p=0.35.Ans: mean= 7, variance= 4.55, s.d. =2.133

Page 18: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 18

• EX: Form the binomial distribution of the experiment of tossing a coin six times and counting the number of heads.

EX: Compute mean, variance and s.d. of followings1. n=50, p=0.42. N=600, p=0.523. N=470, p=0.08

Page 19: MA305 Mean, Variance Binomial Distribution By: Prof. Nutan Patel Asst. Professor in Mathematics IT-NU…

MA305 Mathematics for ICE 19

• EX: If 10% of the rivets produced by a machine are defective, find the probability that out of 5 rivets chosen at random (i) none will be defective, (ii) one will be defective, and (iii) at least two will be difective.

• Ans: 0.5905, 0.32805, 0.08146.