08.02.2013 Views

Biostatistics for Animal Science

Biostatistics for Animal Science

Biostatistics for Animal Science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

30 <strong>Biostatistics</strong> <strong>for</strong> <strong>Animal</strong> <strong>Science</strong><br />

y 1 2 3 4 5<br />

Frequency 1 2 4 2 1<br />

P(y)<br />

1 /10<br />

2 /10<br />

Check if the table shows a correct probability distribution. What is the probability that y is<br />

greater than three, P(y > 3)?<br />

1) 0 ≤ P(y) ≤ 1 ⇒ OK<br />

2) Σi P(yi) = 1 ⇒ OK<br />

The cumulative frequency of y = 3 is 7.<br />

F(3) = P(y ≤ 3) = P(1) + P(2) + P(3) = ( 1 /10) + ( 2 /10) + ( 4 /10) = ( 7 /10)<br />

P(y > 3) = P(4) + P(5) = ( 2 /10) + ( 1 /10) = ( 3 /10)<br />

P(y > 3) = 1 – P(y ≤ 3) = 1 – ( 7 /10) = ( 3 /10)<br />

Expectation:<br />

E(y) = µ = Σi yi P(yi) = (1) ( 1 /10) + (2) ( 2 /10) + (3) ( 4 /10) + (4) ( 2 /10) + (5) ( 1 /10) = ( 30 /10) = 3<br />

Variance:<br />

Var(y) = σ 2 = E{[y – E(y)] 2 } = Σi P(yi) [yi – E(y)] 2 =<br />

( 1 /10) (1 – 3) 2 + ( 2 /10) (2 – 3) 2 + ( 4 /10) (3 – 3) 2 +( 2 /10) (4 – 3) 2 + ( 1 /10) (5 – 3) 2 = 1.2<br />

3.2.2 Bernoulli Distribution<br />

Consider a random variable that can take only two values, <strong>for</strong> example Yes and No, or 0<br />

and 1. Such a variable is called a binary or Bernoulli variable. For example, let a variable y<br />

be the incidence of some illness. Then the variable takes the values:<br />

yi = 1 if an animal is ill<br />

yi = 0 if an animal is not ill<br />

4 /10<br />

The probability distribution of y has the Bernoulli distribution:<br />

p<br />

Here, q = 1 – p<br />

Thus,<br />

y 1−<br />

y<br />

( y)<br />

= p q <strong>for</strong> y = 0,1<br />

P(yi = 1) = p<br />

P(yi = 0) = q<br />

The expectation and variance of a Bernoulli variable are:<br />

E(y) = µ = p and σ 2 = Var(y) = σ 2 = pq<br />

2 /10<br />

1 /10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!