Can you post what you tried, and explain where you got stuck with this ?

Solved

Posted on 2011-04-20

I am really a beginner in c language.

I want to generate a correlation coefficient for two arrays of size 20 using c

Thanks

A

I want to generate a correlation coefficient for two arrays of size 20 using c

Thanks

A

4 Comments

Can you post what you tried, and explain where you got stuck with this ?

(n*sum(x_i * y_i) - sum(x_i) * sum(y_i))

--------------------------

(sqrt(n*sum(x_i ^2) - sum(x_i)^2) * sqrt(n*sum(y_i ^2) - sum(y_i)^2)

so, you would calculate all those sums in a loop and finally calculate the above quotient.

Sara

By clicking you are agreeing to Experts Exchange's Terms of Use.

Title | # Comments | Views | Activity |
---|---|---|---|

undefined reference to `bswap_128' | 9 | 100 | |

__FILE__ | 6 | 171 | |

.net updatepanel trigger control in accordion pane - Can't find the control | 2 | 98 | |

is twain_32.dll cmpatible with windows 10 ? | 10 | 76 |

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**12** Experts available now in Live!