3. Parameter estimation by optimization