Saturday, April 19, 2014

Polynomial regression - Rosetta Code

Regression analysis - Wikipedia, the free encyclopedia

The term "regression" was coined by Francis Galton in the nineteenth century to describe a biological phenomenon. The phenomenon was that the heights of descendants of tall ancestors tend to regress down towards a normal average (a phenomenon also known as regression toward the mean)

Polynomial regression - Rosetta Code:

Find an approximating polynom of known degree for a given data.

Example: For input data:
x = {0,  1,  2,  3,  4,  5,  6,   7,   8,   9,   10};
y = {1,  6,  17, 34, 57, 86, 121, 162, 209, 262, 321};
The approximating polynom is:
3 x2 + 2 x + 1




Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 730 tasks, 125 draft tasks, and is aware of 533 languages, though we do not (and cannot) have solutions to every task in every language.

No comments: