8
$\begingroup$

I am studying multilevel/hierarchical models and I have trouble deriving the mathematical formulae for certain models. Is it on topic to ask about this ? I mean, I fit a model with software, and I want to understand the mathematical formula, which I am having problems with doing. Is that on topic ?

$\endgroup$

2 Answers 2

10
$\begingroup$

Questions about derivations are often asked and answered. Sometimes, when they are homework, then they are off-topic (or actually technically not off-topic, but considered written in a bad format).

Questions with details and understanding

If your question is about

and I want to understand the mathematical formula

then it is always on-topic

(provided that it is about statistics, purely mathematical questions are sometimes moved to the maths stackexchange page, an example is proof using Cauchy Schwarz inequality).

Here are some examples with the bias variance decomposition formula


Homework

Home-work and study type of questions are a slightly difficult situation. If you have 'trouble deriving the mathematical formulae' then you should ideally explain that trouble, as that's the root cause of the problem.

The point of doing home-work is to learn from the experience. Getting the answer without doing any work and learning how to overcome the trouble doesn't help much. Also, home-work questions are often a duplicate of a previously existing question with only a slight variation. E.g. find the MLE.

In the four questions in the previous section above the questions about the derivation are never plainly directly asking for the solution and are always about understanding the intuition or some particular step.

You might see homework questions being answered even when it is borderline. I notice that I did this here Showing $\frac{2X}{1-X^2}$ is standard Cauchy when $X$ is standard Cauchy Possibly it helps if an answer can be about intuition or in some other way a more colorful description about the method of derivation, but based on the question this can not be directly said whether this is gonna be the case.

See also the self-study tag info

'How did they do/derive/prove this?' type of questions

This doesn't mean that asking directly for derivations is off-topic. For example if someone finds some step in an article and asks how it is derived like "I have been reading this article ... from ... and do not see how they got equation ... How can we derive this?"

Example:

However, if it is formulated without any context and if it is a simple question then people might think that it is homework and ignore it.

Other

I myself have made several questions about derivations as sub-questions to other questions

Structural formulas of linear models

At first I thought your question was about deriving mathematical equations, but I also notice your question.

Doubts about mixed model (R vs SAS) with nested random effects

which is more about the use of syntax and debugging code. Questions about writing such formulae have been closed before Why do I have to subtract 1 from R regression to measure fixed effects? because they are about coding. Personally I feel that this is borderline as I argued in a comment it can be seen in a wider context than just a single programming language

I don't believe this is much about R notation. Those symbolic notations of the structural formulas of linear models are used in a wider setting. An early description is Wilkinson and Rogers, 1973, Symbolic Description of Factorial Models for Analysis of Variance.

other questions like that are

These are always a bit tricky. A question about a warning message from a computer code is about coding , but when it involves statistics to solve the problem then it is on-topic. However, without the answer it might not be clear whether the solution is about a statistics problem or not.

In your case, the answer seems to me like it is more about the logic, the encoding off the location:block not being nested in your data, and this makes it less of a programming error specific to the programming language. That makes it less off-topic (at least in my opinion).

$\endgroup$
9
$\begingroup$

There is more to it than simply answering in an affirmative or negative sense.

Since its inception, the community has catered to questions that implicitly needed or explicitly sought derivations/arguments/proofs.

But they were conceptual queries and hence different from homework based queries that ask for solving their problems.

The more important thing is how the question is presented: It has to be well-researched. Check books, articles, lecture notes, old CV posts (check for possible duplicates). Then write down

  • Your objectives and problems.

  • What your current understanding points to and whether this or that line of approach is efficient/optimal/problematic or not.

That amplifies your chance of getting a constructive, helpful answer.

Perhaps basic but worth mentioning: a question that shows attempts to understand any available derivation or any relevant effort thereof in laying out a sketch/argument in the same vein is preferable to a question which simply asks to show a proof.

$\endgroup$
1
  • 1
    $\begingroup$ +1 "That amplifies your chance of getting a constructive, helpful answer." Also amplifies one's chances of learning more deeply through the process of asking, than simply obtaining information. $\endgroup$
    – Alexis
    Dec 2, 2023 at 20:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .