/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q31E a. Compute the covariance betwee... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

a. Compute the covariance between \({\rm{X}}\) and\({\rm{Y}}\).

b. Compute the correlation coefficient \({\rm{\rho }}\) for this \({\rm{X}}\) and \({\rm{Y}}\).

Short Answer

Expert verified

a) The covariance is \({\mathop{\rm Cov}\nolimits} (X,Y) = - 0.1619\).

b) The correlation coefficient is \({\rho _{X,Y}} = - 0.0024\).

Step by step solution

01

Definition

Probability simply refers to the likelihood of something occurring. We may talk about the probabilities of particular outcomes—how likely they are—when we're unclear about the result of an event. Statistics is the study of occurrences guided by probability.

02

Calculating covariance

(a):

Covariance

between \({\rm{X}}\) and \({\rm{Y}}\) is

\({\rm{Cov(X,Y) = E((X - E(X))(Y - E(Y)))}}\)

or equally

\({\rm{Cov(X,Y) = }}\left\{ {\begin{aligned}{*{20}{l}}{\sum\limits_{\rm{x}} {\sum\limits_{\rm{y}}^{\rm{¥}} {{\rm{(x - E(}}} } {\rm{X))(y - E(Y)) \times p(x,y)}}}&{{\rm{,X and Y discrete, }}}\\{\int_{{\rm{ - ¥}}}^{\rm{¥}} {\int_{{\rm{ - ¥}}}^{\rm{¥}} {{\rm{(x - E(}}} } {\rm{X))(y - E(Y)) \times f(x,y)dxdy}}}&{{\rm{,X and Y continuous}}{\rm{. }}}\end{aligned}} \right.\)

where \({\rm{p(x,y)}}\) is pmf and \({\rm{f(x,y)}}\) pdf.

However, it requires more time to compute the covariance by the definition, this is why we will use the following proposition.

Proposition:

The following holds

\({\rm{Cov(X,Y) = E(XY) - E(X) \times E(Y)}}\)

From the exercise \({\rm{9}}\) we can see how does the marginal pdf's look like, therefore we can compute the expectations.

The following holds

\(\begin{aligned}{\rm{E(Y) = E(X)}}\\{\rm{ = }}\int_{{\rm{20}}}^{{\rm{30}}} {\rm{x}} {{\rm{f}}_{\rm{X}}}{\rm{(x)dx}}\\{\rm{ = }}\int_{{\rm{20}}}^{{\rm{30}}} {\rm{x}} \left( {{\rm{10K}}{{\rm{x}}^{\rm{2}}}{\rm{ + 0}}{\rm{.05}}} \right){\rm{dx}}\\{\rm{ = }}\left. {{\rm{10K}}\frac{{{{\rm{x}}^{\rm{3}}}}}{{\rm{3}}}} \right|_{{\rm{20}}}^{{\rm{30}}}{\rm{ + }}\left. {{\rm{0}}{\rm{.05}}\frac{{{{\rm{x}}^{\rm{2}}}}}{{\rm{2}}}} \right|_{{\rm{20}}}^{{\rm{30}}}\\{\rm{ = 25}}{\rm{.33}}{\rm{.}}\end{aligned}\)

We also need the following expectation

\(\begin{aligned}{\rm{E(XY) = }}\int_{{\rm{20}}}^{{\rm{30}}} {\int_{{\rm{20}}}^{{\rm{30}}} {\rm{x}} } {\rm{y \times K}}\left( {{{\rm{x}}^{\rm{2}}}{\rm{ + }}{{\rm{y}}^{\rm{2}}}} \right){\rm{dxdy}}\\{\rm{ = K}}\int_{{\rm{20}}}^{{\rm{30}}} {\int_{{\rm{20}}}^{{\rm{30}}} {{{\rm{x}}^{\rm{3}}}} } {\rm{ydydx + K}}\int_{{\rm{20}}}^{{\rm{30}}} {\int_{{\rm{20}}}^{{\rm{30}}} {{{\rm{y}}^{\rm{3}}}} } {\rm{xdxdy}}\\{\rm{ = K}}\int_{{\rm{20}}}^{{\rm{30}}} {{{\rm{x}}^{\rm{3}}}} \left( {\left. {\frac{{{{\rm{y}}^{\rm{2}}}}}{{\rm{2}}}} \right|_{{\rm{20}}}^{{\rm{30}}}} \right){\rm{dx + K}}\int_{{\rm{20}}}^{{\rm{30}}} {{{\rm{y}}^{\rm{3}}}} \left( {\left. {\frac{{{{\rm{x}}^{\rm{2}}}}}{{\rm{2}}}} \right|_{{\rm{20}}}^{{\rm{30}}}} \right){\rm{dy}}\\{\rm{ = }}\left. {\left( {\left. {\frac{{{{\rm{y}}^{\rm{2}}}}}{{\rm{2}}}} \right|_{{\rm{20}}}^{{\rm{30}}}} \right){\rm{K \times }}\frac{{{{\rm{x}}^{\rm{4}}}}}{{\rm{4}}}} \right|_{{\rm{20}}}^{{\rm{30}}}{\rm{ + }}\left. {\left( {\left. {\frac{{{{\rm{x}}^{\rm{2}}}}}{{\rm{2}}}} \right|_{{\rm{20}}}^{{\rm{30}}}} \right){\rm{K \times }}\frac{{{{\rm{y}}^{\rm{4}}}}}{{\rm{4}}}} \right|_{{\rm{20}}}^{{\rm{30}}}\\{\rm{ = 641}}{\rm{.447}}\end{aligned}\)

Now we can compute the covariance as follows

\(\begin{aligned}{\rm{Cov(X,Y) = E(XY) - E(X) \times E(Y)}}\\{\rm{ = 641}}{\rm{.447 - 25}}{\rm{.33 \times 25}}{\rm{.33}}\\{\rm{ = - 0}}{\rm{.1619}}{\rm{.}}\end{aligned}\)

Therefore, the covariance is \({\mathop{\rm Cov}\nolimits} (X,Y) = - 0.1619\).

03

Calculating correlation coefficient

(b):

The

correlation coefficient

of \({\rm{X}}\) and \({\rm{Y}}\) is

\({{\rm{\rho }}_{{\rm{X,Y}}}}{\rm{ = }}\frac{{{\rm{Cov(X,Y)}}}}{{{{\rm{\sigma }}_{\rm{X}}}{\rm{ \times }}{{\rm{\sigma }}_{\rm{Y}}}}}\)

We need to compute the variances in order to determine the correlation coefficient.

The Variance of \({\rm{X}}\), denoted by \({\rm{V(X)}}\left( {{\rm{\sigma }}_{\rm{X}}^{\rm{2}}} \right.\) or \(\left. {{{\rm{\sigma }}^{\rm{2}}}} \right)\) is

\(\begin{aligned}{\rm{V(X) = }}{{\rm{\sigma }}_{\rm{X}}}\\{\rm{ = E}}\left( {{{{\rm{(X - E(X))}}}^{\rm{2}}}} \right)\\{\rm{ = E}}\left( {{{\rm{X}}^{\rm{2}}}} \right){\rm{ - (E(X)}}{{\rm{)}}^{\rm{2}}}\end{aligned}\)

The Standard Deviation of \({\rm{X}}\) is

\({{\rm{\sigma }}_{\rm{X}}}{\rm{ = }}\sqrt {{\rm{\sigma }}_{\rm{X}}^{\rm{2}}} \)

The expectation of random variables \({\rm{X}}\) and \({\rm{Y}}\) has been calculated. The following is true

\(\begin{aligned}{c}{\rm{E}}\left( {{{\rm{Y}}^{\rm{2}}}} \right){\rm{ = E}}\left( {{{\rm{X}}^{\rm{2}}}} \right)\\{\rm{ = }}\int_{{\rm{20}}}^{{\rm{30}}} {\rm{x}} {{\rm{f}}_{\rm{X}}}{\rm{(x)dx}}\\{\rm{ = }}\int_{{\rm{20}}}^{{\rm{30}}} {{{\rm{x}}^{\rm{2}}}} \left( {{\rm{10K}}{{\rm{x}}^{\rm{2}}}{\rm{ + 0}}{\rm{.05}}} \right){\rm{dx}}\\{\rm{ = }}\left. {{\rm{10K}}\frac{{{{\rm{x}}^{\rm{4}}}}}{{\rm{4}}}} \right|_{{\rm{20}}}^{{\rm{30}}}{\rm{ + }}\left. {{\rm{0}}{\rm{.05}}\frac{{{{\rm{x}}^{\rm{3}}}}}{{\rm{3}}}} \right|_{{\rm{20}}}^{{\rm{30}}}\\{\rm{ = 649}}{\rm{.825}}{\rm{.}}\end{aligned}\)

The variance is

\(\begin{aligned}{\rm{V(Y) = V(X)}}\\{\rm{ = E}}\left( {{{\rm{X}}^{\rm{2}}}} \right){\rm{ - (E(X)}}{{\rm{)}}^{\rm{2}}}\\{\rm{ = 649}}{\rm{.825 - (25}}{\rm{.33}}{{\rm{)}}^{\rm{2}}}\\{\rm{ = 8}}{\rm{.2161}}\end{aligned}\)

Finally, the correlation coefficient is

\(\begin{aligned}{{\rm{\rho }}_{{\rm{X,Y}}}}{\rm{ = }}\frac{{{\rm{Cov(X,Y)}}}}{{{{\rm{\sigma }}_{\rm{X}}}{\rm{ \times }}{{\rm{\sigma }}_{\rm{Y}}}}}\\{\rm{ = }}\frac{{{\rm{ - 0}}{\rm{.1619}}}}{{\sqrt {{\rm{8}}{\rm{.2161}}} \sqrt {{\rm{8}}{\rm{.2161}}} }}\\{\rm{ = - 0}}{\rm{.0024}}{\rm{.}}\end{aligned}\)

Therefore, the correlation coefficient is \({\rho _{X,Y}} = - 0.0024\).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Let \({\rm{X}}\) denote the number of Canon SLR cameras sold during a particular week by a certain store. The pmf of \({\rm{X}}\) is

Sixty percent of all customers who purchase these cameras also buy an extended warranty. Let \({\rm{Y}}\) denote the number of purchasers during this week who buy an extended warranty.

a. What is\({\rm{P(X = 4,Y = 2)}}\)? (Hint: This probability equals\({\rm{P(Y = 2}}\mid {\rm{X = 4) \times P(X = 4)}}\); now think of the four purchases as four trials of a binomial experiment, with success on a trial corresponding to buying an extended warranty.)

b. Calculate\({\rm{P(X = Y)}}\).

c. Determine the joint pmf of \({\rm{X}}\) and \({\rm{Y}}\)then the marginal pmf of\({\rm{Y}}\).

There are two traffic lights on a commuter's route to and from work. Let \({{\rm{X}}_{\rm{1}}}\) be the number of lights at which the commuter must stop on his way to work, and \({{\rm{X}}_{\rm{2}}}\) be the number of lights at which he must stop when returning from work. Suppose these two variables are independent, each with pmf given in the accompanying table (so \({{\rm{X}}_{\rm{1}}}{\rm{,}}{{\rm{X}}_{\rm{2}}}\) is a random sample of size \({\rm{n = 2}}\)).

a. Determine the pmf of \({{\rm{T}}_{\rm{o}}}{\rm{ = }}{{\rm{X}}_{\rm{1}}}{\rm{ + }}{{\rm{X}}_{\rm{2}}}\).

b. Calculate \({{\rm{\mu }}_{{{\rm{T}}_{\rm{o}}}}}\). How does it relate to \({\rm{\mu }}\), the population mean?

c. Calculate \({\rm{\sigma }}_{{{\rm{T}}_{\rm{o}}}}^{\rm{2}}\). How does it relate to \({{\rm{\sigma }}^{\rm{2}}}\), the population variance?

d. Let \({{\rm{X}}_{\rm{3}}}\) and \({{\rm{X}}_{\rm{4}}}\) be the number of lights at which a stop is required when driving to and from work on a second day assumed independent of the first day. With \({{\rm{T}}_{\rm{o}}}{\rm{ = }}\) the sum of all four \({{\rm{X}}_{\rm{i}}}\) 's, what now are the values of \({\rm{E}}\left( {{{\rm{T}}_{\rm{a}}}} \right)\) and \({\rm{V}}\left( {{{\rm{T}}_{\rm{a}}}} \right)\)?

e. Referring back to (d), what are the values of \({\rm{P}}\left( {{{\rm{T}}_{\rm{o}}}{\rm{ = 8}}} \right)\) and \(\text{P}\left( {{\text{T}}_{\text{e}}}\text{ }\!\!{}^\text{3}\!\!\text{ 7} \right)\) (Hint: Don't even think of listing all possible outcomes!)

Rockwell hardness of pins of a certain type is known to have a mean value of 50 and a standard deviation of \({\rm{1}}{\rm{.2}}{\rm{.}}\)

a. If the distribution is normal, what is the probability that the sample mean hardness for a random sample of \({\rm{9}}\) pins is at least \({\rm{51}}\)?

b. Without assuming population normality, what is the (approximate) probability that the sample mean hardness for a random sample of \({\rm{40 }}\) pins is at least \({\rm{51}}\)?

A company maintains three offices in a certain region, each staffed by two employees. Information concerning yearly salaries (\({\rm{1000}}\)s of dollars) is as follows:

\(\begin{array}{*{20}{c}}{{\rm{ Office }}}&{\rm{1}}&{\rm{1}}&{\rm{2}}&{\rm{2}}&{\rm{3}}&{\rm{3}}\\{{\rm{ Employee }}}&{\rm{1}}&{\rm{2}}&{\rm{3}}&{\rm{4}}&{\rm{5}}&{\rm{6}}\\{{\rm{ Salary }}}&{{\rm{29}}{\rm{.7}}}&{{\rm{33}}{\rm{.6}}}&{{\rm{30}}{\rm{.2}}}&{{\rm{33}}{\rm{.6}}}&{{\rm{25}}{\rm{.8}}}&{{\rm{29}}{\rm{.7}}}\end{array}\)

a. Suppose two of these employees are randomly selected from among the six (without replacement). Determine the sampling distribution of the sample mean salary\({\rm{\bar X}}\).

b. Suppose one of the three offices is randomly selected. Let\({{\rm{X}}_{\rm{1}}}\)and\({{\rm{X}}_{\rm{2}}}\)denote the salaries of the two employees. Determine the sampling distribution of\({\rm{\bar X}}\).

c. How does \({\rm{E(\bar X)}}\) from parts (a) and (b) compare to the population mean salary\({\rm{\mu }}\)?

Show that if\({\rm{X}}\)and\({\rm{Y}}\)are independent rv's, then\({\rm{E(XY) = E(X) \times E(Y)}}\). Then apply this in Exercise\({\rm{25}}{\rm{.}}\)[A1] (Hint: Consider the continuous case with\({\rm{f(x,y) = }}\)\({{\rm{f}}_{\rm{X}}}{\rm{(x) \times }}{{\rm{f}}_{\rm{Y}}}{\rm{(y)}}\).)

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.