![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
![]() One can best-fit a straight line y = ax + b through scattered dots (x,y) using least squares linear regression. One minimises the sum of the squares of the error of the found best-fitting line and the actual dots(/measurements).
Now I want to weigh each of these errors for distance to the most recent x(/measurement), giving most weight to the most recent point. Say, if we observe time on the x axis [I'll use brackets as subscript is no option here], c = the number of 'dots' we want to calculate a line from y[t] = the observation at x[t], where t = -(c+1),... , -3, -2, -1, 0 weight w = 0.9^|x[0] - x[t]| What formulas should I use to calculate a and b in y = ax + b? For someone a little more proficient in math than I am it shouldn't be too hard. $25 by epass to the first to correctly post and derive these formulas. Thanks in advance! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2005
Location: Café del Mar
Posts: 5,162
|
hahahahahahhahahaa @ asking this on gfy
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jun 2007
Location: I live in cage
Posts: 4,193
|
uhhhhhhhhhhhhh
![]() ![]()
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
Well GFY is full of retards but has some hidden gems as well!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
Is this an actual math problem that will be graded by someone? or just something for yourself?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
Ask Good Will Hunting.
__________________
SPECIALTY COSTUMES • PROPS • FX Superheroes • Monsters • Robots PM for details For any manufacturing needs. Adult or otherwise. aka BonsHigh on Insta Bonsai weed plants |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
So Fucking Banned
Join Date: Apr 2007
Posts: 111
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
hit me up on icq, I can get you an algorithm that will do what you want, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2007
Posts: 3,026
|
we will help you out with your porn sites, but we refuse to do your homework for you...c'mon now!
![]()
__________________
ICQ: 395-433-632 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
I mean, I can obviously minimise the sum of squares by 'brute force' easily for each a and b and approximate their optimum this way, but I would like help in deriving a and b for the point where [delta]f/[delta]a = [delta]f/[delta]b = 0.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
well, I can get you the "formulas" but really, implementing the formulas involves writing an algorithm to solve this problem... even with simple non-weighted case, you can't just magically get the answer, you have to build an algorithm to solve it...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Aug 2004
Posts: 2,009
|
Quote:
a = ( [sum](i=1 to N) (x[i] - x[mean]) (y[i] - y[mean]) ) / ( [sum](i=1 to N) (x[i] - x[mean])^2 Annoying I have to resort to this kind of notation. Naturally you need an algorithm to calculate the sums, means, etc but an equation like the one above is what I'm looking for. The rest I can do myself. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Jan 2006
Location: The Valley
Posts: 7,412
|
fun. wish I had the time to play with this one.
I'm probably one stats class short of being able to crank something out for ya. Hit me up tonight, after the business day is done, if you're still looking for an answer, bro.
__________________
-D. ICQ: 202-96-31 |
![]() |
![]() ![]() ![]() ![]() ![]() |