# Relationship between R2 and correlation coefficient [duplicate]

in simple linear regression

R-squared is equal to the squared correlation coefficient between the actual y and the predicted y (i.e. 𝑦 hat )

how to prove this relationship?

Thanks!

## marked as duplicate by gung♦ regression StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 21 '15 at 14:08

• +1. Welcome to our site, Dinesh. You would likely find it easier to write mathematical expressions (and we would find them easier to read) using the built-in $\TeX$ markup: just enclose them between dollar signs \\$. Further help is available.. – whuber Dec 21 '15 at 13:07