Skip to content

Command line utility for calculating Pearson Correlation Coefficients

License

Notifications You must be signed in to change notification settings

Artmann/correlations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Correlation

Build Status

Correlations is a gem that can be used to calculate Pearson Correlation Coefficients for a data set.

Usage

Install the gem

$ gem install correlations

Calculate the correlation between values

$ correlations weather.csv

Correlations works on CSV files with headers.

Days with Snow Average Temperature Average Wind Speed
43 9.4 8.8
25 9.5 10.5
28 9.6 10.6
41 8.8 9.8
74 6.6 9.2

It will calculate the Pearson correlation coefficient between the values in the first column and each of the other columns.

$ correlations weather.csv

Calculating correlations for data set weather.csv

Average Temperature: -0.9499166137289158
Average Wind Speed: -0.7059250219593274

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/artmann/correlations.

License

The gem is available as open source under the terms of the MIT License.

About

Command line utility for calculating Pearson Correlation Coefficients

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages