Fitting Primes to a Linear Model

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The first n prime numbers can be roughly approximated by a linear function of their index i. That is, the prime is close to a+b i for some constants a and b. This Demonstration fits the first n 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.

Contributed by: Darren Glosemeyer (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send