I have been posed this challenge by my math teacher, and after thinking about it for a bit I have become quite stumped:
- Create a program that will generate a certain number of points that will obtain a particular r value when linear regression is run on those points.
It would have the following inputs:
- x range
- y range
- number of elements/points
- the desired r value
and the following outputs:
- x list
- corresponding y list
Thus when linear regression is run on the points formed by the outputted x and y lists, the desired r value is made. Does anyone know of a method to complete this?
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me