How to find the minimum of the following function
$$ {\rm f}\left(w\right) = {1 \over 2}\sum_{i = 1}^{n}\left({1 \over 1 + {\rm e}^{-x_{i}\,w}} -y_{i}\right)^{2} $$
where $x_{i}, y_{i} \in \left(0, 1\right)$ are constants, $w\in \mathbb{R}$?
Could you find a analytic or computational way to get the minimum of the function ?.
I suppose that this is a nonlinear least square fit problem in which you have data points [x(i) , y(i)] and you want to adjust the parameter w. If you establish the derivative of f(w) with respect to w, you have one (not too complex) equation to solve but it can easily be done using Newton method. The problem is to start with a reasonable value; you can have one rewriting x(i) as a function of y(i). Going to logarithms, you will see that x(i) is along a straight line of Log[y(i) / (1-y(i)] and the slope of this line is w. So, you have everything to start.