Let's say that I have some function $z = f(x,y)$.
I know that if I want to calculate the partial derivatives of $x$ and $y$ numerically that I can use finite differences, like the central differences method below:
$$\frac{dz}{dx} = \frac{f(x+\varepsilon, y) - f(x-\varepsilon,y)}{2*\varepsilon}\\ $$ and $$ \frac{dz}{dy} = \frac{f(x, y+\varepsilon) - f(x,y-\varepsilon)}{2*\varepsilon}$$
However, let's say that I have two (or more) triplets of $z=f(x,y)$. Like say $2 = f(4,5)$ and $3=f(8,2)$. Can I use that information to estimate partial derivatives?
My attempt at a guess on how to do this would be: $$\frac{dz}{dx} = \frac{3-2}{8-4} = \frac{1}{4}$$ and $$\frac{dz}{dy} = \frac{3-2}{2-5} = \frac{1}{-3}$$
Is that method valid? Are there better ways? What sort of accuracy can I expect?