estimate_lambda function

Estimate lambda values