How to calculate the R square if not given the number of points

55 Views Asked by At

This is an interview problem I encountered and I have no idea about how to deal with it. Hope to get any hint or help for the first step.

Suppose there is a unit circle centered at origin, we randomly sample N points on it. There is also another point (K, K), where K >> 1. Now we do a linear regression to these N+1 points, please calculate the $R^2$