I have a function $y=sin(x)$
I sample the points $ x_i=\{0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1\}$ and $$ y_i=sin(x_i) + \epsilon \ \ \epsilon \sim iid\ Normal$$
Now given only the set $\{x_i,y_i\}$ I want to uncover the underlying functional form $f(x)$ given as
$$y=f(x)+\epsilon \ \ \ \ \epsilon \sim iid\ Normal $$
My question is : ARE $y_i$'s independent ?
My intuition is that $y_1$ and $y_2$ are not independent. This is because given a new ${x}$ say ${x_\star}$ we can use $y_i$'s to learn some information about ${y_\star}$.
Does the fact that the input points come from the same underlying function make them somehow correlated or posses commonalities ? and if not why do most methods (ex: Non-parametric splines, Gaussian process) use the $y_i$'s to get information and learn ${y_\star}$ ? Isn't the fact that if samples are independent then they can't learn new information from each other ?