6. Parameter estimation by optimization