<p>If a question asks about doing someone's homework and does not meet the requirements of <a href="https://stats.stackexchange.com/questions/tagged/self-study" class="post-tag" title="show questions tagged &#39;self-study&#39;" rel="tag">self-study</a> questions <a href="https://stats.stackexchange.com/tags/self-study/info">described in here</a>, then what you should do is cast a close vote:</p>

<pre><code>Close -&gt; off-topic because... -&gt; Self-study questions [...]
</code></pre>

<p>If the question asks about debugging or reviewing someone's code (in many cases it will also be off-topic on <a href="http://stackoverflow.com/">http://stackoverflow.com/</a> and <a href="https://codereview.stackexchange.com/">https://codereview.stackexchange.com/</a> but you could consider voting to migrate if it is relevant), then it is also off-topic, so you should vote:</p>

<pre><code>Close -&gt; off-topic because... -&gt; This question appears to be off-topic
                                 because EITHER it is not about statistics,
                                 machine learning, data analysis, data
                                 mining, or data visualization, OR it
                                 focuses on programming [...]
</code></pre>

<p>In many cases the descriptions in the off-topic notices are clear enough to show why the question was closed. If you feel that the question could be edited, so that it becomes on-topic, then you can always comment to encourage the OP to relevant edits. Sometimes I comment also when I have a feeling that an OP does not understand how does the site works, so some brief comment may be helpful. Then I usually give them some of the links: to the <a href="https://stats.stackexchange.com/tour">tour</a>, <a href="https://stats.stackexchange.com/help/on-topic">on-topic</a> help page, and <a href="https://stats.stackexchange.com/help/how-to-ask">how to ask?</a> guidelines.</p>
