Graviada
Graviada

Reputation: 51

Find unknown parameters of the function, if f(x) and x are given

I need some help. I have an equation:

f(x) = acos(x) + (bsqrt(x) + ctg(x))^2,

where a, b, c are unknown parameters. Also I have a few pairs of x -> f(x) like in Supervised ML problem.

How can I find parameters? I'm thinking of some numerical methods and linear regression, but actually I don't know what to do.

Upvotes: 0

Views: 295

Answers (1)

Axel Kemper
Axel Kemper

Reputation: 11322

The unknown parameters would minimize the sum of squared differences between computed function values and observed function values.

You could define such a sum of squared errors in Excel and use Excel Solver to minimize it.

From a Python program, you could try Scipy fsolve.

Upvotes: 1

Related Questions