Simple linear regression can be used to analyze the effect…