Question

Show that the linear correlation coefficient is given by $$ r=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\right]\left[n \sum y^2-\left(\sum y\right)^2\right]}} $$ In Problem 8.27 it was shown that (1) $$ r=\frac{\sum x^{\prime} y^{\prime}}{\sqrt{\left(\sum x^{\prime 2}\right)\left(\sum y^{\prime 2}\right)}}=\frac{\sum(x-\bar{x})(y-\bar{y})}{\sqrt{\left[\sum(x-\bar{x})^2\right]\left[\sum(y-\bar{y})^2\right]}} $$ But $$ \begin{aligned} \sum(x-x)(y-y) & =\sum(x y-x y-x y+x y)=\sum x y-x \sum y-y \sum x+n x y \\ & =\sum x y-n x y-n y \bar{x}+n x y=\sum x y-n x y \\ & =\sum x y-\frac{\left(\sum x\right)\left(\sum y\right)}{n} \end{aligned} $$ since $x=(\Sigma x) / n$ and $y=(\Sigma y) / n$ Similarly, $$ \begin{aligned} \sum(x-\bar{x})^2 & =\sum\left(x^2-2 x \bar{x}+\bar{x}^2\right)=\sum x^2-2 \bar{x} \sum x+n \bar{x}^2 \\ & =\sum x^2-\frac{2\left(\sum x\right)^2}{n}+\frac{\left(\sum x\right)^2}{n}=\sum x^2-\frac{\left(\sum x\right)^2}{n} \end{aligned} $$ and $$ \Sigma(y-y)^2=\sum y^2-\frac{(\Sigma y)^2}{n} $$ Then (1) becomes $$ r=\frac{\sum x y-\left(\sum x\right)\left(\sum y\right) / n}{\sqrt{\left[\sum x^2-\left(\sum x\right)^2 / n\right]\left[\sum y^2-\left(\sum y\right)^2 / n\right]}}=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\left[n \sum y^2-\left(\sum y\right)^2\right]\right.}} $$

   Show that the linear correlation coefficient is given by
$$
r=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\right]\left[n \sum y^2-\left(\sum y\right)^2\right]}}
$$

In Problem 8.27 it was shown that (1)
$$
r=\frac{\sum x^{\prime} y^{\prime}}{\sqrt{\left(\sum x^{\prime 2}\right)\left(\sum y^{\prime 2}\right)}}=\frac{\sum(x-\bar{x})(y-\bar{y})}{\sqrt{\left[\sum(x-\bar{x})^2\right]\left[\sum(y-\bar{y})^2\right]}}
$$

But
$$
\begin{aligned}
\sum(x-x)(y-y) & =\sum(x y-x y-x y+x y)=\sum x y-x \sum y-y \sum x+n x y \\
& =\sum x y-n x y-n y \bar{x}+n x y=\sum x y-n x y \\
& =\sum x y-\frac{\left(\sum x\right)\left(\sum y\right)}{n}
\end{aligned}
$$
since $x=(\Sigma x) / n$ and $y=(\Sigma y) / n$
Similarly,
$$
\begin{aligned}
\sum(x-\bar{x})^2 & =\sum\left(x^2-2 x \bar{x}+\bar{x}^2\right)=\sum x^2-2 \bar{x} \sum x+n \bar{x}^2 \\
& =\sum x^2-\frac{2\left(\sum x\right)^2}{n}+\frac{\left(\sum x\right)^2}{n}=\sum x^2-\frac{\left(\sum x\right)^2}{n}
\end{aligned}
$$
and
$$
\Sigma(y-y)^2=\sum y^2-\frac{(\Sigma y)^2}{n}
$$

Then (1) becomes
$$
r=\frac{\sum x y-\left(\sum x\right)\left(\sum y\right) / n}{\sqrt{\left[\sum x^2-\left(\sum x\right)^2 / n\right]\left[\sum y^2-\left(\sum y\right)^2 / n\right]}}=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\left[n \sum y^2-\left(\sum y\right)^2\right]\right.}}
$$
Show more…
Schaum's Outline of Probability and Statistics
Schaum's Outline of Probability and Statistics
John Schiller, R.… 3rd Edition
Chapter 8, Problem 31 ↓

Instant Answer

verified

Step 1

Step 1: Understand the definition of the linear correlation coefficient, \( r \), from the given equation: \[ r = \frac{\sum (x - \bar{x})(y - \bar{y})}{\sqrt{\left[\sum(x - \bar{x})^2\right]\left[\sum(y - \bar{y})^2\right]}} \] where \( \bar{x} \) and \( \bar{y}  Show more…

Show all steps

lock
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Show that the linear correlation coefficient is given by $$ r=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\right]\left[n \sum y^2-\left(\sum y\right)^2\right]}} $$ In Problem 8.27 it was shown that (1) $$ r=\frac{\sum x^{\prime} y^{\prime}}{\sqrt{\left(\sum x^{\prime 2}\right)\left(\sum y^{\prime 2}\right)}}=\frac{\sum(x-\bar{x})(y-\bar{y})}{\sqrt{\left[\sum(x-\bar{x})^2\right]\left[\sum(y-\bar{y})^2\right]}} $$ But $$ \begin{aligned} \sum(x-x)(y-y) & =\sum(x y-x y-x y+x y)=\sum x y-x \sum y-y \sum x+n x y \\ & =\sum x y-n x y-n y \bar{x}+n x y=\sum x y-n x y \\ & =\sum x y-\frac{\left(\sum x\right)\left(\sum y\right)}{n} \end{aligned} $$ since $x=(\Sigma x) / n$ and $y=(\Sigma y) / n$ Similarly, $$ \begin{aligned} \sum(x-\bar{x})^2 & =\sum\left(x^2-2 x \bar{x}+\bar{x}^2\right)=\sum x^2-2 \bar{x} \sum x+n \bar{x}^2 \\ & =\sum x^2-\frac{2\left(\sum x\right)^2}{n}+\frac{\left(\sum x\right)^2}{n}=\sum x^2-\frac{\left(\sum x\right)^2}{n} \end{aligned} $$ and $$ \Sigma(y-y)^2=\sum y^2-\frac{(\Sigma y)^2}{n} $$ Then (1) becomes $$ r=\frac{\sum x y-\left(\sum x\right)\left(\sum y\right) / n}{\sqrt{\left[\sum x^2-\left(\sum x\right)^2 / n\right]\left[\sum y^2-\left(\sum y\right)^2 / n\right]}}=\frac{n \sum x y-\left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n \sum x^2-\left(\sum x\right)^2\left[n \sum y^2-\left(\sum y\right)^2\right]\right.}} $$
Close icon
Play audio
Feedback
Powered by NumerAI
*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Algebraic Manipulation of Summation Expressions
Algebraic manipulation involves reformulating summation expressions, such as sums of products and sums of squares, to derive equivalent forms that are easier to analyze. In statistics, these manipulations help in expressing measures like covariance and variance in terms of raw sums, making the derivation and understanding of formulas like that of the correlation coefficient more transparent.
Variance and Standard Deviation
Variance is a measure of the dispersion of a set of values around their mean, computed as the average of the squared deviations. Standard deviation, the square root of variance, quantifies the extent of deviation from the mean in the same units as the data. These measures are crucial in normalizing the covariance to create a dimensionless correlation coefficient.
Sample Mean and Centering
The sample mean is the average of all data points, and centering refers to the process of subtracting the sample mean from each individual data value. This process eliminates the effect of location or scale, allowing for a focus on the relationships between variables by analyzing deviations from their means, which are essential in the computation of covariance and variance.
Linear Correlation Coefficient
The linear correlation coefficient is a standardized measure that quantifies the degree to which two variables are linearly related. It is calculated by dividing the covariance between the variables by the product of their standard deviations, resulting in a value between -1 and 1. This coefficient indicates both the strength and the direction of the linear relationship.
Covariance
Covariance measures the joint variability of two random variables. It is determined by averaging the product of the deviations of each variable from their respective means. In the context of the correlation coefficient, covariance shows how the variables change together, and its normalization by standard deviations makes the measure independent of the units of measurement.

*

Recommended Videos

-
for-the-data-shown-to-the-right-determine-the-linear-correlation-coefficient-using-two-different-formulas-shown-below-complete-parts-a-and-below-and-compare-your-answers-44-3zx-v-9-use-the-d-15628

For the data shown to the right, determine the linear correlation coefficient using two different formulas shown below. Complete parts (a) and (b) below and compare your answers. (a) Use the definition r = 1/(n-1) * sum((x - x_bar)(y - y_bar)) / (sx * sy). Find the sum required to calculate r using the definition. sum((x - x_bar)(y - y_bar)) = (Type an integer or a decimal. Do not round.) Using the definition, r = (Round to three decimal places as needed). (b) Use the computing formula r = (sum(xy) - (sum(x) * sum(y)) / n) / sqrt((sum(x^2) - (sum(x))^2 / n) * (sum(y^2) - (sum(y))^2 / n)). Find the sums required to calculate r using the computing formula: sum(x), sum(y), sum(xy), sum(x^2), sum(y^2) (type integers or decimals, do not round). Using the computing formula, r = (Round to three decimal places as needed). The value in part (a) is the value in part (b).

the-correlation-coellicient-is-defined-as-covxy-pxy-var-xvvary-covxy-0-xoy-vvar-y-are-the-standard-deviations-o-x-and-y-rexpectively-where-0x-varx-and-oy-using-the-cauchy-schwart-inequality-92918

The correlation coefficient is defined as: Cov(X,Y) / (σ(X) * σ(Y)) where Cov(X,Y) is the covariance between X and Y, σ(X) and σ(Y) are the standard deviations of X and Y respectively. Using the Cauchy-Schwarz inequality, which is given by: |E(UV)| ≤ √(E(U^2)) * √(E(V^2)) Show that |ρ(X,Y)| ≤ 1 and therefore -1 ≤ ρ(X,Y) ≤ 1. Hint: think about what U and V should be here. Let X be a random variable with Var(X) = σ^2 and Y = aX + b. What is Cov(Y, X)? How about ρ(Y,X)? You may consider the cases a > 0 and a < 0 separately. From this problem, you should see that linearly related random variables are in some sense maximally dependent according to covariance/correlation. Now let X be a random variable such that EX = 0 and EX^3 = 0, and let Y = X^2. What are Cov(Y, X) and ρ(Y, X)? Are the random variables independent? (Calculation for this last part is not necessary) You may also assume 0 < Var(X) < ∞ and 0 < Var(X^2) < ∞.

Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever