You have done some serious sinful act and you want to do something as good as bad you have done. Do this Yagya to reduce the sin.