Context and goals:
Consider $x$ a scalar (deterministic) independent variable and $y = f(x;\beta)+\eta$ be a dependent random variable obtained trough $f$ with some parameters $\beta$ and $\eta$ is some noise modeled as a Gaussian with zero mean and unknown variance. Concretely, chose $$ f(x;\beta) = \beta_1 + \frac{\beta_2}{1+e^{\beta_3x}} $$ Now, assume that we made $M$ experiments (with $M$ presumably low) and obtained $M$ pairs of measurements $(x_1,y_1),\dots,(x_M,y_M)$.
- Question: Given the data, How to obtain a way to estimate of $y$ for any $x$ as well as its "confidence"?
Let me explain my attempt to solve this problem:
My idea was to fit the parameters to the data using nonlinear regression by means of optimization (gradient descent) for example. Thus obtain an approximate model $f(\bullet;\hat{\beta})$. Then, for certain value of $x$ we can model that its corresponding $y$ is a Gaussian centered at $f(\bullet;\hat{\beta})$ (right?). However, since I don't know the variance of the noise $\eta$, the most we can do is to compute the sample variance of $y_1,\dots,y_M$ and use a student's-t distribution instead.
The problem is that, I'm not totally convinced that $f(\bullet;\hat{\beta})$ can be used as the mean of $y$. I guess one has to check if $f(\bullet;\hat{\beta})$ is an unbiased estimate of $y$. However, I don't know how to check that. Moreover, by using the sample variance I only get a number which represents the "confidence" for all $y$ which seems unsatisfactory to me since I would expect to be more confident of values of $y$ for $x$ near the samples $x_1,\dots,x_M$. But maybe my intuition is not correct.