r/dataisbeautiful • u/minimaxir Viz Practitioner • Jul 08 '15
OC Relationship between Reddit Comment Score and Comment Length for 1.66 Billion Comments [OC]
44
Upvotes
r/dataisbeautiful • u/minimaxir Viz Practitioner • Jul 08 '15
17
u/minimaxir Viz Practitioner Jul 08 '15
Data source is the BigQuery interface for /u/Stuck_In_the_Matrix's data dump of the comments. Specifically, this query:
Took only 3 seconds to execute! (and 1/4th of the monthly free BigQuery quota!)
Tool is R/ggplot2. Shaded areas represent a 95% confidence interval for the true average at each discrete score value.
There's a slight positive relationship between score and comment length, although the relationship is less clear when the score is 1000+, due to a relative lack of data (which is the reason I did not expand the chart much beyond that threshold). What I didn't immediately expect is that the average comment length for comments with a negative score is much. much lower.
Data and code for generating the chart is available in this GitHub Repository.
3
u/dimdat OC: 8 Jul 08 '15
I really like this plot and I REALLY love confidence intervals.
Is each line a representation for a given point value, e.g., all 565 point comments get put together? If so, the variance from point to point seems high enough might the trend be clearer with some sort of moving average or binning of the data? I'm just not sure I'd believe 566 and 565 need to be individual points. Thoughts?
9
u/Doc_Nag_Idea_Man Jul 08 '15
Shouldn't the axes be flipped? Or am I too old-fashioned in believing that the independent variable be on the x-axis?
1
u/[deleted] Jul 08 '15
Could you do a similar one for average score for a given comment length?
1
u/smokeout3000 Jul 10 '15
I would like to see a similar graph on comments that got gold