Fitting Primes to a Linear Model

The first prime numbers can be roughly approximated by a linear function of their index . That is, the prime is close to for some constants and . This Demonstration fits the first primes to a linear function and displays the Cook's distances and residuals for each point. Larger Cook's distances indicate greater influence or leverage of the associated point on the fitting. For the primes, points near the ends of the range have larger residuals and greater influence on the overall fit.

comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+