Cum Hoc Ergo Propter Hoc
Cum Hoc, Ergo Propter Hoc is a form of Non Causa Pro Cause that is committed to stating that one thing is the cause of another just because both are observed or occur together .-
A is observed whenever B
So A is the cause of B
It is a fallacy because it could be that, on the contrary, B was the cause of A, or that both were the consequence of a common cause, or even that there was no causal relationship or that it is very complex and indirect. -
example:
Inflation is caused by merchants who increase prices