My set-up is the following, I have two variables $N$ and $TTR$, and I have these points for each variable:
$N$ = [35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]
$TTR$ = [0.818, 0.812, 0.812, 0.804, 0.804, 0.798, 0.792, 0.793, 0.788, 0.784, 0.781, 0.778, 0.776, 0.771, 0.767, 0.767]
I want to fit these data to the following model:
$$TTR=D/N \cdot \left( \sqrt{1 + 2N/D} - 1\right)$$
where $D$ is the parameter that I want to find and is gives the best fit.
Based on the example I am taking this, D = 66 should be around the "optimal" parameter, plotting these results I get:
I am trying a brute force approach, where I vary D from 1 to 70 (since D is "limited" to this set of values), and finding the D with the least mean squared error, however I get $D_{optimal} = 28$, and the result of that is shown in the following figure:
which is not better than the real optimal value, at least visually. How can I address this problem?