POV-Ray : Newsgroups : povray.off-topic : Linear regression : Re: Linear regression Server Time
4 Sep 2024 01:18:51 EDT (-0400)
  Re: Linear regression  
From: Invisible
Date: 8 Jun 2010 09:29:50
Message: <4c0e45ce@news.povray.org>
scott wrote:

> The simplest form for you seems to be:
> 
> b = (mean[x*y] - mean[x] * mean[y]) / ( mean[x^2] - mean[x]^2 )
> 
> a = mean[y] - b * mean[x]
> 
> then your line of best fit is:
> 
> y = a + b*x

OK. I'll go see if I can get that to work...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.