@whuber asked recently about Top Ten List of Reasons to Close a Question Immediately, i.e. how not to ask questions, but maybe let's address this from the opposite perspective: how to ask a "great" question? As @whuber I'm treating this thread lightly and I think we could allow ourselves humorous answers because questions should be regarded based on their content rather than form, but nevertheless, it plays a role...
After actively observing CV for some time I'd say that the recipe for a question to get noticed and highly upvoted is:
- Make it general rather then narrow,
- Use a short, meaningful, but "catchy" title,
- Make it nicely formatted, use
code formattingand $\TeX$,
- It should consist of a few sentences and should not be one sentence: an overly long question would mean that people would not read it carefully,
- Use machine-learning, bayesian, or p-value tags, they always attract attention!
- Ask about something controversial,
- Ask as a high-rank user!
- Include mathematical formulas,
- Provide an example,
- Don't use self-study tag.
Include any XKCD drawing.
Find an unanswered question that has a attracted fairly little attention, perhaps because it was poorly worded or a bit vague, or a bit eclectic, this for example, on a currently hot topic, such as machine learning. Start a discussion about it here on meta, such as this. Then improve and re-write the question.