Docsity

Statistics Review: Variable, Probability and Distribution | BPSC 148, Study notes of Botany and Agronomy

Toggle sidebar
bg1
Appendix A
Statistics Review: Variable, Probability and Distribution
Random variable
A numerically valued function defined over a sample space. The value of a
random variable will vary from trial to trial as the experiment repeats.
Examples: outcome of tossing a coin; body weight of a laboratory mouse.
Probability
A probability on a sample space S is a specification of numbers Pr which
satisfy the following two conditions:
( )Ai
1. .
01≤≤Pr( )Ai
2. , where k is the total number of possible events.
Pr( )Ai
i
k
=
=
∑1
1
Distribution
The association of probability to each value or outcome of a random variable. It
describes the relationship between the probability and a random variable. There are two
types of distributions.
1. Discrete distribution
A random variable X has a discrete distribution if X can take a finite number of
values
x
x
k1,,", or at most an infinite sequence of different values
x
x
12
,,".
f
x
X
x
() Pr( )
=
=
Probability function or p.f. is defined as . Note that the letter in
upper case denotes variable and that in lower case denotes an observation of the variable.
Properties of discrete distribution:
)
x
≥0
1). f(x) is a probability, i.e., f( .
2).
fx , i.e., the sum of the probabilities of all events is one.
i
i
k()
=
∑=
1
1
2. Continuous distribution
) ( )xA fxdx
A
∈=
z
If A is an interval in the real line and Pr( , then X has a
continuous distribution and f(x) is called the probability density function or p.d.f.
Properties of continuous distribution:
1).
fx is not a probability. The probability that x takes a particular value is
zero.
()≥0
A-1
pf3
pf4

Partial preview of the text

Download Statistics Review: Variable, Probability and Distribution | BPSC 148 and more Study notes Botany and Agronomy in PDF only on Docsity!

Appendix A

Statistics Review: Variable, Probability and Distribution

Random variable

A numerically valued function defined over a sample space. The value of a random variable will vary from trial to trial as the experiment repeats.

Examples: outcome of tossing a coin; body weight of a laboratory mouse.

Probability

A probability on a sample space S is a specification of numbers Pr which

satisfy the following two conditions:

( Ai )

  1. 0 ≤ Pr( Ai )≤ 1.
  2. Pr( Ai ) , where k is the total number of possible events. i

k

=

∑ 1 1

Distribution

The association of probability to each value or outcome of a random variable. It describes the relationship between the probability and a random variable. There are two types of distributions.

  1. Discrete distribution

A random variable X has a discrete distribution if X can take a finite number of values x (^) 1 , ", xk , or at most an infinite sequence of different values x (^) 1 , x 2 ,".

Probability function or p.f. is defined as f ( ) x = Pr( X = x ). Note that the letter in upper case denotes variable and that in lower case denotes an observation of the variable.

Properties of discrete distribution:

1). f ( x ) is a probability, i.e., f( x )≥ 0.

2). f x (^) i , i.e., the sum of the probabilities of all events is one. i

k ( ) =

∑ = 1

  1. Continuous distribution

x A ) f x dx ( ) A

If A is an interval in the real line and Pr( ∈ = z , then X has a

continuous distribution and f ( x ) is called the probability density function or p.d.f.

Properties of continuous distribution:

1). f x is not a probability. The probability that x takes a particular value is

zero.

2). f ( ) x dx = −∞

+∞

z 1 a^ x^ b )^^ af x dx ( )

b

and Pr( ≤ ≤ = z.

  1. Multivariate distribution (joint distribution)

In many experiments it is necessary to consider the properties of two or more random variables simultaneously. The joint probability distribution of two random variables is called bivariate distribution.

When both variables are discrete, their joint distribution is also discrete and defined as

f ( , x y ) = Pr( X = x & Y = y ),

where f x (^) i yi. i

=

∞ ∑ 1 1 When both variables are continuous, their joint distribution is also continuous.

Pr[( , x y ) A ] f x y dxdy ( , ) A

∈ = z ,

where f ( , x y )is called the joint probability density function, i.e., p.d.f. where

z f^ (^ xy dxdy )^ =^1.

  1. Marginal distribution

Marginal distribution is simply the distribution of a single variable, but it is derived from the joint distribution. For example, the marginal distribution of X is obtained by summing up the joint distribution for all possible values of Y , i.e.,

f x f x y y

( ) = (^) ∑ ( , ).

Similarly, the marginal distribution of y is

f y f x y x

( ) = (^) ∑ ( , ).

The following table shows the relationship between the joint and marginal distributions.

X Y^ f ( x ) 0 1 0^ f^ ( , )0 0^ f^ ( , )0 1^ f^ x ( )^0 =^ f^ ( , )0 0^ +^ f^ ( , )0 1^ =^ f^ (^ x =^0 ) 1^ f^ ( , )1 0^ f^ ( , )^11 f^ x ( )^1 =^ f^ ( , )1 0^ +^ f^ ( , )^11 =^ f^ (^ x =^1 ) 2^ f^ ( , )2 0^ f^ ( , )2 1^ f^ x ( )^2 =^ f^ ( , )2 0^ +^ f^ ( , )2 1^ =^ f^ (^ x =^2 )

f ( ) y f^ y ( )^0 =^ f^ (^ y =^0 ) f^ y ( )^1 =^ f^ (^ y =^1 ) ∑ f x y ( , ) = 1

person is a man is f ( Y = m ) = 8 25%. + 46 75%. =55%, disregard whether he is a smoker or not. The probability that a person is a smoker given that a man is selected is a conditional probability and calculated by

f X s Y m

f X s Y m f Y m

Similarly, the conditional probability that a person is a smoker given that a woman is selected is

f X s Y w f X s Y w f Y w

Note that without any knowledge of the sex, a randomly sample person has a 12.75% chance to be a smoker (marginal probability). After you know that the person is a man, then he has a 15% chance to be a smoker (conditional distribution). If you know that the person is a woman, then she has only a 10% chance to be a smoker.

The definition of conditional distribution is important because it can be used to find the joint distribution given the conditional distribution, as shown below,

f ( , x y ) = f ( | ) ( ) x y f y

or

f ( , x y ) = f ( | y x ) ( ) f x.