The following has been copy pasted from Wikipedia from the Confusion of the inverse page, where the following are examples of common fallacies. Help me understand why the second one is wrong.
° Hard drug users tend to use marijuana; therefore, marijuana users tend to use hard drugs (the first probability is marijuana use given hard drug use, the second is hard drug use given marijuana use).[5]
° Most accidents occur within 25 miles from home; therefore, you are safest when you are far from home.[5]
° Terrorists tend to have an engineering background; so, engineers have a tendency towards terrorism.[6]
Edit 1: Thank you for the answer but I still fail to visualize it mathematically. Can you help me visualize it like I have on the marijuana/hard drug example? (I'm fairly new to conditional probability and Bayes theorem so it might be wrong)
The second one is wrong because most activity happens within 25 miles from home. It's not being close to home that causes the spike in accident rates; it's the fact that you're close to home most of the time.
Here's a related fallacy: all human deaths occur on the Earth's surface. Therefore, the safest place for a human is outer space.
In response to your edit: The parallelism is the same as the marijuana one you cite. Specifically, $\mathbb P(\text{close to home} \mid \text{accident}) > \mathbb P(\text{far from home} \mid \text{accident})$, but it would be wrong to say $\mathbb P(\text{accident} \mid \text{close to home}) > \mathbb P(\text{no accident} \mid \text{close to home})$.
Second attempt at clarification: for the sake of discussion, let's imagine that the events "have an accident" ($A$) and "being close to home" ($H$) are independent of one another, but that $\mathbb P(A) = 0.1$ and $\mathbb P(H) = 0.9$. The claim "most accidents occur close to home" is justified, because $$\mathbb P(A \cap H) = 0.09 > 0.01 = \mathbb P(A \cap H^c).$$ Really, this is just a reflection of the fact that $\mathbb P(H) > \mathbb P(H^c)$, since the events are independent. However, it would not be fair to say that you are safest when far from home, because $\mathbb P(A | H) = \mathbb P(A | H^c) = 0.1$ by independence.