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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-03-2007, 12:59 PM   #1
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Math problem

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!
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:05 PM   #2
cranki
Confirmed User
 
Join Date: Feb 2005
Location: Café del Mar
Posts: 5,162
hahahahahahhahahaa @ asking this on gfy
cranki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:06 PM   #3
Brother Bilo
Confirmed User
 
Brother Bilo's Avatar
 
Join Date: Jun 2007
Location: I live in cage
Posts: 4,193
uhhhhhhhhhhhhh
__________________
Brother Bilo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:15 PM   #4
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Well GFY is full of retards but has some hidden gems as well!
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:17 PM   #5
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:20 PM   #6
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
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


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:22 PM   #7
noone1
So Fucking Banned
 
Join Date: Apr 2007
Posts: 111
Quote:
Originally Posted by Rhesus View Post
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!
Ugh. Google it. No one does this shit by hand. Grab a TI graphing calculator or a computer program.
noone1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:22 PM   #8
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Quote:
Originally Posted by woj View Post
Is this an actual math problem that will be graded by someone? or just something for yourself?
It's for myself, I'm not studying anything math-related.
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:23 PM   #9
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Quote:
Originally Posted by noone1 View Post
Ugh. Google it. No one does this shit by hand. Grab a TI graphing calculator or a computer program.
All a google search yields is linear regression weighted for variance which is not what I need.
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:28 PM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:32 PM   #11
ADL Josh
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
ADL Josh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:33 PM   #12
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Quote:
Originally Posted by woj View Post
hit me up on icq, I can get you an algorithm that will do what you want, icq: 33375924
Hello, thank you for your offer, but I want formulas to integrate in other stuff I'm building. I can't work with a seperate algo.
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:36 PM   #13
Rhesus
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.
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:39 PM   #14
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 01:49 PM   #15
Rhesus
Confirmed User
 
Join Date: Aug 2004
Posts: 2,009
Quote:
Originally Posted by woj View Post
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...
I mean to get an equation like this one (for non-weighted cases):

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.
Rhesus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2007, 02:23 PM   #16
D
Confirmed User
 
D's Avatar
 
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
D is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.