Stats 241.3 Term Test 4

38
Stats 241.3 Term Test 4 Solutions

description

Stats 241.3 Term Test 4. Solutions. c). d). An alternative solution is to use the probability mass function. and. Probability has many applications in many areas. Medicine Modeling epidemics Modeling disease progression Engineering Reliability design electrical systems Economics - PowerPoint PPT Presentation

Transcript of Stats 241.3 Term Test 4

Page 1: Stats 241.3 Term Test 4

Stats 241.3 Term Test 4

Solutions

Page 2: Stats 241.3 Term Test 4

I. Suppose X and Y are two discrete random variables having joint probability function p(x,y) given in the following table:

a) Find the marginal probability function of X, px(x). b) Find the marginal probability function of Y, py(y).

x\y 1 2 3 4 Total pX(x) 1 1

12 0 0 0 3

36

2 19

536

112

0 12

36

3 19

136

536

0 10

36

4 19

112

0 19

11

36

Total pY(y) 15

36

9

36

8

36

4

36

1

Page 3: Stats 241.3 Term Test 4

a) Compute E[XY].

4 4

1 1

3 0 0 0, (1 1) (1 2) (1 3) (1 4)

36 36 36 36x y

E XY xyp x y

4 5 3 0(2 1) (2 2) (2 3) (2 4)

36 36 36 36

4 1 5 0(3 1) (3 2) (3 3) (3 4)

36 36 36 36

4 3 0 4(4 1) (4 2) (4 3) (4 4)

36 36 36 36

3 8 20 18 12 6 45 16 24 64 2166

36 36

c)

Page 4: Stats 241.3 Term Test 4

a) Determine the distribution of W = X – Y Solution: The possible values of W are w = -3, -2, -1, 0, 1, 2, 3 (the cells in the table where W = w are illustrated below with the same colour.

x\y 1 2 3 4

1 112

0 0 0

2 19

536

112

0

3 19

136

536

0

4 19

112

0 19

Thus the distribution of W is: w -3 -2 -1 0 1 2 3 pW(w) 0

36 036 3

36 1736 5

36 736 4

36

d)

Page 5: Stats 241.3 Term Test 4

II. Show that if X and Y are independent and that each have a binomial distribution with paramaters n and p then W = X + Y has a binomial distribution with parameters 2n and p.

Solution: (Using moment generating functions) mX(t) = mY(t) = [q + pet]n

Hence mX + Y(t) = mX (t)mY(t) = [q + pet]n [q + pet]n = [q + pet]2n = mgf of binomial distribution with parameters 2n and p.

An alternative solution is to use the probability mass function

and x n x y n yX Y

n np x p q p y p q

x y

, x n x y n yX Y

n np x y p x p y p q p q

x y

2x y n x yn np q

x y

and

Page 6: Stats 241.3 Term Test 4

0 1 2 n0 p(0, 0) p(0, 1) p(0, 2) p(0, n)1 p(1, 0) p(1, 1) p(1, 2) p(1, n)2 p(2, 0) p(2, 1) p(2, 2) p(2, n)

n p(n, 0) p(n, 1) p(n, 2) p(n, n)

x

y

,0 1,1 0,P X Y w p w p w p w

2

0

ww n w

i

n np q

i w i

22 w n wnp q

w

Page 7: Stats 241.3 Term Test 4

III. A rectifier following a square law has the characteristic Y = kX2, x > 0, where X and Y are the input and output voltages, respectively. If the input to the rectifier is noise with the probability density function

f xe x

otherwise

x x

( )

22

0

0

Find the probability density function of the output Y (Note: >0). Solution: The cumulative distribution function of Y is:

2 2 y y yk k kG y P Y y P kX y P X P X

22

0

yk

xxe dx

Hence

122

2 22 12

0

1 if 0

yk y y

k kyx y k y k y kxk k

d dg y G y e dx e e y e y

dy dy k

Thus the distribution of Y is exponential with parameter 1

k

Page 8: Stats 241.3 Term Test 4

Probabilityhas many applications in many areas

• Medicine– Modeling epidemics– Modeling disease progression

• Engineering– Reliability design electrical systems

• Economics– Modeling of financial time series, economic time

series– Determining Risk

Page 9: Stats 241.3 Term Test 4

Statistics

Page 10: Stats 241.3 Term Test 4

What is Statistics?

It is the major mathematical tool of scientific inference – methods for drawing conclusion from data.

Data that is to some extent corrupted by some component of random variation (random noise)

Page 11: Stats 241.3 Term Test 4

Phenomena

Deterministic Non-deterministic

Page 12: Stats 241.3 Term Test 4

Deterministic Phenomena

A mathematical model exists that allows accurate prediction of outcomes of the phenomena (or observations taken from the phenomena)

Page 13: Stats 241.3 Term Test 4

Non-deterministic Phenomena

Lack of perfect predictability

Page 14: Stats 241.3 Term Test 4

Non-deterministic Phenomena

haphazard Random

Page 15: Stats 241.3 Term Test 4

Random Phenomena

No mathematical model exists that allows accurate prediction of outcomes of the phenomena (or observations)

However the outcomes (or observations) exhibit in the long run on the average statistical regularity

Page 16: Stats 241.3 Term Test 4

In both Statistics and Probability theory we are concerned with studying random phenomena

Page 17: Stats 241.3 Term Test 4

In probability theory

The model is known and we are interested in predicting the outcomes and observations of the phenomena.

modeloutcomes and observations

Page 18: Stats 241.3 Term Test 4

In statistics

The model is unknown

the outcomes and observations of the phenomena have been observed.

We are interested in determining the model from the observations

modeloutcomes and observations

Page 19: Stats 241.3 Term Test 4

Example - Probability

A coin is tossed n = 100 times

We are interested in the observation, X, the number of times the coin is a head.

Assuming the coin is balanced (i.e. p = the probability of a head = ½.)

100100 1 12 2

x x

p x P X xx

100100 1 for 0, 1, , 1002 xx

Page 20: Stats 241.3 Term Test 4

Example - Statistics

We are interested in the success rate, p, of a new surgical procedure.

The procedure is performed n = 100 times.

X, the number of successful times the procedure is performed is 82.

The success rate p is unknown.

Page 21: Stats 241.3 Term Test 4

If the success rate p was known.

Then

1001001

xxp x P X x p px

This equation allows us to predict the value of the observation, X.

Page 22: Stats 241.3 Term Test 4

In the case when the success rate p was unknown.

Then the following equation is still true the success rate

1001001

xxp x P X x p px

We will want to use the value of the observation, X = 82 to make a decision regarding the value of p.

Page 23: Stats 241.3 Term Test 4

Introductory Statistics Courses Non calculus Based

Stats 244.3 Stats 245.3

Calculus Based Stats 242.3

Page 24: Stats 241.3 Term Test 4

Stats 244.3 Statistical concepts and techniques including graphing of distributions, measures of location and variability, measures of association, regression, probability, confidence intervals, hypothesis testing. Students should consult with their department before enrolling in this course to determine the status of this course in their program. Prerequisite(s):A course in a social science or Mathematics A30. 

Page 25: Stats 241.3 Term Test 4

Stats 245.3An introduction to basic statistical methods including frequency distributions, elementary probability, confidence intervals and tests of significance, analysis of variance, regression and correlation, contingency tables, goodness of fit. Prerequisite(s):

MATH 100, 101, 102, 110 or STAT 103. 

Page 26: Stats 241.3 Term Test 4

Stats 242.3Sampling theory, estimation, confidence intervals, testing hypotheses, goodness of fit, analysis of variance, regression and correlation. 

Prerequisite(s):MATH 110, 116 and STAT 241. 

Page 27: Stats 241.3 Term Test 4

Stats 244 and 245

• do not require a calculus prerequisite

• are Recipe courses

Stats 242

• does require calculus and probability (Stats 241) as a prerequisite

• More theoretical class – You learn techniques for developing statistical procedures and thoroughly investigating the properties of these procedures

Page 28: Stats 241.3 Term Test 4

Statistics Courses beyond Stats 242.3

Page 29: Stats 241.3 Term Test 4

STAT 341.3

Probability and Stochastic Processes 1/2(3L-1P) Prerequisite(s): STAT 241.

Random variables and their distributions; independence; moments and moment generating functions; conditional probability; Markov chains; stationary time-series.

Page 30: Stats 241.3 Term Test 4

STAT 342.3 Mathematical Statistics 1(3L-1P) Prerequisite(s): MATH 225 or 276; STAT 241 and 242.

Probability spaces; conditional probability and independence; discrete and continuous random variables; standard probability models; expectations; moment generating functions; sums and functions of random variables; sampling distributions; asymptotic distributions. Deals with basic probability concepts at a moderately rigorous level.Note: Students with credit for STAT 340 may not take this course for credit.

Page 31: Stats 241.3 Term Test 4

STAT 344.3 Applied Regression Analysis 1/2(3L-1P) Prerequisite(s): STAT 242 or 245 or 246 or a comparable course in statistics.

Applied regression analysis involving the extensive use of computer software. Includes: linear regression; multiple regression; stepwise methods; residual analysis; robustness considerations; multicollinearity; biased procedures; non-linear regression.Note: Students with credit for ECON 404 may not take this course for credit. Students with credit for STAT 344 will receive only half credit for ECON 404.

Page 32: Stats 241.3 Term Test 4

STAT 345.3 Design and Analysis of Experiments 1/2(3L-1P) Prerequisite(s): STAT 242 or 245 or 246 or a comparable course in statistics.

An introduction to the principles of experimental design and analysis of variance. Includes: randomization, blocking, factorial experiments, confounding, random effects, analysis of covariance. Emphasis will be on fundamental principles and data analysis techniques rather than on mathematical theory.

Page 33: Stats 241.3 Term Test 4

STAT 346.3 Multivariate Analysis 1/2(3L-1P) Prerequisite(s): MATH 266, STAT 241, and 344 or 345.

The multivariate normal distribution, multivariate analysis of variance, discriminant analysis, classification procedures, multiple covariance analysis, factor analysis, computer applications.

Page 34: Stats 241.3 Term Test 4

STAT 347.3 Non Parametric Methods 1/2(3L-1P) Prerequisite(s): STAT 242 or 245 or 246 or a comparable course in statistics.

An introduction to the ideas and techniques of non-parametric analysis. Includes: one, two and K samples problems, goodness of fit tests, randomness tests, and correlation and regression.

Page 35: Stats 241.3 Term Test 4

STAT 348.3 Sampling Techniques 1/2(3L-1P) Prerequisite(s): STAT 242 or 245 or 246 or a comparable course in statistics.

Theory and applications of sampling from finite populations. Includes: simple random sampling, stratified random sampling, cluster sampling, systematic sampling, probability proportionate to size sampling, and the difference, ratio and regression methods of estimation.

Page 36: Stats 241.3 Term Test 4

STAT 349.3 Time Series Analysis 1/2(3L-1P) Prerequisite(s): STAT 241, and 344 or 345.

An introduction to statistical time series analysis. Includes: trend analysis, seasonal variation, stationary and non-stationary time series models, serial correlation, forecasting and regression analysis of time series data.

Page 37: Stats 241.3 Term Test 4

STAT 442.3 Statistical Inference 2(3L-1P) Prerequisite(s): STAT 342.

Parametric estimation, maximum likelihood estimators, unbiased estimators, UMVUE, confidence intervals and regions, tests of hypotheses, Neyman Pearson Lemma, generalized likelihood ratio tests, chi-square tests, Bayes estimators.

Page 38: Stats 241.3 Term Test 4

STAT 443.3 Linear Statistical Models 2(3L-1P) Prerequisite(s): MATH 266, STAT 342, and 344 or 345.

A rigorous examination of the general linear model using vector space theory. Includes: generalized inverses; orthogonal projections; quadratic forms; Gauss-Markov theorem and its generalizations; BLUE estimators; Non-full rank models; estimability considerations.