Does scattered polynomial trend line also provide coefficient of correlation?

26 views
Skip to first unread message

Zhenyu Hu

unread,
Apr 1, 2015, 7:29:49 PM4/1/15
to google-visua...@googlegroups.com
Dear All,

I am using Google Chart API to draw a scattered polynomial trend line.
I know the chart provide the R square (coefficient of determination) which I am using, but I just wonder if it also provide the value of coefficient of correlation? 
I want to get this value to make cross reference.

PS: I didn't find it from the API document; if they don't support it, does anybody know if there is a JS plugin to calculate it.

Thanks a lot,
Kevin

Sergey Grabkovsky

unread,
Apr 2, 2015, 9:45:00 AM4/2/15
to google-visua...@googlegroups.com
The coefficient of correlation (or the r^2 value) should indeed be supported for all trendlines. You can enable it by setting the trendline option "showR2" to true.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Zhenyu Hu

unread,
Apr 2, 2015, 5:53:16 PM4/2/15
to google-visua...@googlegroups.com
Hi Sergey,

Thanks for the feedback!
R2 is coefficient of determination which API indeed support it; however, coefficient of correlation (r) is a different one.

Below is the link to show the difference between the two

Thanks,
Kevin

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/djzhAAqypJk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

Sergey Grabkovsky

unread,
Apr 3, 2015, 8:25:32 AM4/3/15
to google-visua...@googlegroups.com
Sorry, I didn't read carefully enough. We don't provide the value, nor do I think there's any reasonable way to calculate it. There's a stickied post on this forum where I asked what the ideal API is for getting trendline data out of the chart. We don't quite have a roadmap for this, but your opinion might help us determine the right solution.

Zhenyu Hu

unread,
Apr 3, 2015, 5:39:40 PM4/3/15
to google-visua...@googlegroups.com
Hi Sergey,

Thanks for the clarification!

Kevin
Reply all
Reply to author
Forward
0 new messages