I am trying to calculate value $x in a number series based on an array of numbers (as $numbers).
Ex:
$numbers = array(1=>1000,2=>600,3=>500,4=>450,5=>425,6=>405,7=>400,8=>396);
function estimateNumber($x) {
// function to estimate number $x in $numbers data set
}
What would be the most statistically accurate method?
What you’re attempting to do is a large branch of mathematics called interpolation. Claiming one way is more “statistically accurate” than the other will probably spark religious wars. It all depends on what kind of data you’re trying to interpolate.
Linear interpolation will be the most straightforward.