# Multivariable linear regression

**URL:** <https://www.ruby-forum.com/t/multivariable-linear-regression/174683>\
**Category:** Rails\
**Created:** [August 31, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/multivariable-linear-regression/174683 "2009-08-31T13:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trivial](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@trivial](https://www.ruby-forum.com/u/trivial)\
**Post date:** [August 31, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/multivariable-linear-regression/174683/1 "2009-08-31T13:08:27Z")

</div>

Hi,

I need to do some multivariable linear regression from RoR.

I have found one possible solution:

1. Install R on my host (Dreamhost)
2. Use the “R for Ruby” gem

Using a complex statistical package such as R seems a bit complicated  
however, and I am wondering if you would have a simpler solution ?

The data is gathered online from the user, stored in the mySQL database,  
and I need the multivariable linear regression to be done on demand.

Thank you !

---

<div class="post-metadata">

**Author:** ![trivial](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@trivial](https://www.ruby-forum.com/u/trivial)\
**Post date:** [August 31, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/multivariable-linear-regression/174683/2 "2009-08-31T22:04:41Z")

</div>

I’ve never used it myself, but a quick google for “ruby multiple  
regression” turned this up:

[http://ruby-statsample.rubyforge.org/](http://ruby-statsample.rubyforge.org/)

HTH,

-Roy
