[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

So this is a polynomial curve of unknown degree and coefficients,

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 1

File: plot.png (22KB, 842x844px) Image search: [Google]
plot.png
22KB, 842x844px
So this is a polynomial curve of unknown degree and coefficients, how do I figure out the best fit?
>>
>>8297168
Take differential equations.
>>
>>8297168
use le computer software
>>
>>8297168
what does "the best fit" mean? if you want a degree n polynomial fit, pick n points, and fit a polynomial with lagrange interpolation. you're probably going to overfit if you make n too high, but just try different values increasing n to make it more precise

>>8297327
what the fuck are you talking about
>>
>>8297330
the best fit obviously means the polynomial that looks most like the polynomial in the picture, hopefully near-identical to the polynomial in the picture
>>
>>8297406
it usually isn't that. I would expect the actual best fit no to consider those weird spikes. the best fit for real data is usually not the actual minimization of the error. that's called "overfitting"
>>
>>8297168
If you want the meme answer, pick n to be the number of data points you have minus one, and then you have exactly one polynomial that goes through all of them.

Maybe try randomly picking half the data as the "training set" and the other half as the "test set" and pick the n which has the least error on the test set, to prevent overfitting.
>>
>>8297411
oh yeah ignore those spikes, they're at the square numbers, the function returns zero at every perfect square
>>
>>8297473
give me the data and ill fit it for you.
>>
>>8297477
http://pastebin.com/HtSnk2Mm
>>
>>8297168
Lrn2lagrange-polynomial
Thread posts: 11
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.