May 4, 2024 12:19
It depends on the sign of \lambda_i: If \lambda_i > 0, then x_i=0 can be a local minimum. If \lambda_i < 0, then some stationary point with x_i=0 is actually a saddle-point
May 3, 2024 13:48
Ok I figured out what's missing. If $\lambda_i < 0$ then $x_i$ cannot be zero at a local minimum.
May 3, 2024 13:39
Ah I think my answer fails because when $\lambda_i<0$, I can't do $\partial\lambda_{i}|x_{I}| \ne \lambda_{i}\partial|x_{I}|$
May 3, 2024 13:36
Not sure what you mean by:

if $x$ is in two orthant, $O_1$ and $O_2$

?
May 3, 2024 08:55
Please take a look at the answer I have just posted: math.stackexchange.com/a/4910031/10063. I'm not sure if we can get around this somehow and do a faster search over 2^N orthants instead ...
May 3, 2024 08:52
(Too bad LaTeX is not supported in this chat!)
May 3, 2024 08:51
It seems to me one would need to search through all $3^N$ vectors $\mathbf{s}\in\{-1,0,+1\}^{N}$. So not just orthants
May 3, 2024 08:24
Though I'm not sure how to (exhaustively) search for all solutions ...
May 3, 2024 08:24
On second thought I now believe your stationarity condition is actually sufficient for having a local minima.
May 3, 2024 08:24
Yes, stationarity is ok. The problem is with the assumption that "stationarity" implies it is a local minimizer.
May 3, 2024 08:24
Regarding the optimality condition you wrote ... doesn't this assume that the objective function is convex? My objective function fails to be convex at the hyperplanes $x_i=0$ whenever the corresponding $\lambda_i<0$.
May 3, 2024 08:24
Let $x(s)$ be a solution to the inner convex minimization problem (with given $s$). If some coordinates vanish, $x_i(s)=0$, it does not necessarily follow that this $x(s)$ is a local minimum in the original problem. Do you agree? This is the point I'm missing (otherwise I agree with your answer).
 
Dec 13, 2022 22:22
Great. Thanks for sticking with this!
Dec 13, 2022 22:00
I see.
Dec 13, 2022 21:59
Where is it? I'm curious now too.
Dec 13, 2022 21:59
Aha!
Dec 13, 2022 21:59
There's the pesky 1/2 factor. But that's irrelevant if we're focusing on the presence or not of this uAubu term.
Dec 13, 2022 21:58
Here is the argument I'm using to obtain the variance in the general case, where 'x' is a general multivariate normal.
Dec 13, 2022 21:57
Dec 13, 2022 21:52
Do you agree?
Dec 13, 2022 21:52
I think we can at least agree on the following expression for the variance, if the x are standardized (zero mean, unit variances):
$$\Tr(\mathbb{A}\mathbb{A}) + \mathbf{b}^{\top}\mathbf{b}$$
Dec 13, 2022 21:51
I don't see how. I mean, it would just replace A with 2A.
Dec 13, 2022 21:34
Here's a simple check that agrees with my expression for the variance, without this term.
Dec 13, 2022 21:33
Dec 13, 2022 21:25
But I neither find a mistake in mine ....
Dec 13, 2022 21:25
I don't find a mistake in your calculation.
Dec 13, 2022 21:21
I still don't agree with the variance though ... if I take my expression in the previous comment, and multiply all the $A$ by 2, you see I never get the $6\mu A\mu b\mu$ term you get.
Dec 13, 2022 21:21
So now I agree with your expression.
Dec 13, 2022 21:21
Ah sorry, it's my fault. I was working with the expression $ z = \frac{1}{2}\mathbf{x}^{\top}\mathbb{A}\mathbf{x} + \mathbf{b}^{\top}\mathbf{x} + c$
Dec 13, 2022 21:21
This is the expression I get for the variance: $\frac{1}{2}tr(\mathbb{A\Sigma A\Sigma}) + \mathbf{u}^{\top}\mathbb{A\Sigma A}\mathbf{u} + 2\mathbf{b}^{\top}\mathbb{\Sigma A}\mathbf{u} + \mathbf{b}^{\top}\Sigma\mathbf{b}$, assuming $A$ is symmetric.
Dec 13, 2022 21:21
I get a similar expression, but off by some of the factors, and also the second-to last term I have is different.. I will do some numerical verifications to check
 

 Discussion between becko and Tim

Imported from a comment discussion on stats.stackexchange.com/...
May 5, 2022 13:37
Ok, but the variances of the gradients you get are different. Also, what do you mean precisely by "the weighted average" here? Is the the weighted average over a mini-batch?
May 5, 2022 13:37
Ok, I hope to convince you at least that this weighted average is not an unbiased estimate of the gradient. Do you agree on that?
May 5, 2022 13:37
As I said, that gives a biased estimate of the gradient. This is contrast to the unweighted case, where the batch (unweighted) average gives an unbiased estimate of the gradient evaluated on the full data.
May 5, 2022 13:37
I mean precisely this: $\frac{\sum_{i \in \mathcal{B}} w_i f'_i}{\sum_{i \in \mathcal{B}} w_i}$ is not an unbiased estimate of the gradient in the full dataset. If you don't agree, can you try to prove that it is?
May 5, 2022 13:37
The unweighted average is special, because all the weights are equal. Only in that case, the above formula is an unbiased estimate. But if the weights are not all equal, then it is not. You can check the calculation, if you want.
May 5, 2022 13:37
For example, suppose you do $\frac{\sum_{i \in \mathcal{B}} w_i f'_i}{\sum_{i \in \mathcal{B}} w_i}$, where $\mathcal{B}$ denotes the mini-batch. Then this is not an unbiased estimate of the gradient in the full data.
May 5, 2022 13:37
Again, I'm not following precisely what you mean. Can you write explicitly the mini-batch gradient estimate you propose ?
May 5, 2022 13:37
Can you be explicit in how the weighted average is taken? This is the central point of my question.
May 5, 2022 13:37
I don't think this answers my question? It's really a matter of the variance of the gradients estimates and which approach leads to less noisy estimates in a mini-batch.
May 5, 2022 13:37
THanks for the reference though!
 

 Mathematics

Associated with Math.SE; for both general discussion & math qu...
May 16, 2019 20:29
It's been a long time since I visited the chat. Very disappointed to see it still doesn't support latex!
 
Nov 30, 2018 21:58
Nov 30, 2018 21:58
@user587192 Absolute integrability is not necessary for integrability
Nov 30, 2018 21:58
@user587192 Integrate[Exp[I a x^2], {x, -Infinity, Infinity}, Assumptions -> Element[a, Reals]]
Nov 30, 2018 21:58
@user587192 Yes. I know how to do it in polar coordinates (see my answer). What I need to understand is what I did wrong if I try to do it in Cartesian coordinates and using the Fourier transform of the Dirac delta function, as I attempted to do in my question.
Nov 30, 2018 21:58
@user587192 Eq. (2.1)
Nov 30, 2018 21:58
@reuns Yes and yes.
Nov 30, 2018 21:58
@fedja In fact, $I = n^{n/2-1} \pi^n/2 / \Gamma(n/2)$ can be obtained if one uses polar coordinates (see doi.org/10.1093/qmath/12.1.165). Some step of my derivation leads to a fictitious divergence.
Nov 30, 2018 21:58
@fedja Why do you say I started with a divergent integral? The first formula I gave for $I$ is (up to some factors) the surface area of a sphere of radius $n$ in $n$ dimensions. It is finite. Only the later formulas diverge. That's why I think I did something wrong. Can you please explain?