I have attached the full workflow, where the goal is to find the correlation using Pearson method for the revenue and the complaints for all customers. I have used the lag value for complaints as want to check if complaint has been raised 3 months back if there is any effect on revenue. the result shows for max customers the Correlation is less than 0.7 which indicates revenue goes down and now would further want to check if there is linearity between revenue and complaints using linear regression.
new to linear regression, may i exactly know which value to check for the linearity.
can you validate the workflow especially on linear regression part if that's the correct way to process according to the problem statement.
attached the screen shot of the linear regression result