Formal Fallacy (Non Sequitur)
Read this article, which defines the non sequitur fallacy and identifies examples of it.
In philosophy, a formal fallacy, deductive fallacy, logical fallacy or non sequitur (Latin for "it does not follow") is a pattern of reasoning we render invalid due to a flaw in its logical structure that can neatly be expressed in a standard logic system, such as propositional logic. It is defined as a deductive argument that is invalid. The argument itself could have true premises, but still have a false conclusion. Thus, a formal fallacy is a fallacy where deduction goes wrong, and is no longer a logical process. However, this may not affect the truth of the conclusion since validity and truth are separate in formal logic.
While a logical argument is a non sequitur if, and only if, it is invalid, the term "non sequitur" typically refers to those types of invalid arguments which do not constitute formal fallacies covered by particular terms (e.g. affirming the consequent). In other words, in practice, "non sequitur" refers to an unnamed formal fallacy.
A special case is a mathematical fallacy, an intentionally invalid mathematical proof, often with the error subtle and somehow concealed. Mathematical fallacies are typically crafted and exhibited for educational purposes, usually taking the form of spurious proofs of obvious contradictions.
A formal fallacy is contrasted with an informal fallacy, which may have a valid logical form and yet be unsound because one or more premises are false.
Taxonomy
The standard Aristotelian logical fallacies are:
 Fallacy of four terms (quaternio terminorum);
 Fallacy of the undistributed middle;
 Fallacy of illicit process of the major or the minor term;
 Affirmative conclusion from a negative premise.
Other logical fallacies include:
 The selfreliant fallacy.
In philosophy, the term logical fallacy properly refers to a formal fallacy – a flaw in the structure of a deductive argument, which renders the argument invalid.
However, it is often used more generally in informal discourse to mean an argument that is problematic for any reason, and thus encompasses informal fallacies as well as formal fallacies – valid but unsound claims or poor nondeductive argumentation.
The presence of a formal fallacy in a deductive argument does not imply anything about the argument's premises or its conclusion (see fallacy fallacy). Both may actually be true, or even more probable as a result of the argument (e.g. appeal to authority), but the deductive argument is still invalid because the conclusion does not follow from the premises in the manner described. By extension, an argument can contain a formal fallacy even if the argument is not a deductive one; for instance an inductive argument that incorrectly applies principles of probability or causalitycan be said to commit a formal fallacy.
 Affirming the Consequent
Any argument that takes the following form is a non sequitur

If A is true, then B is true.

B is true.

Therefore, A is true.
Even if the premise and conclusion are all true, the conclusion is not a necessary consequence of the premise. This sort of non sequitur is also called affirming the consequent.
An example of affirming the consequent would be:

If Jackson is a human (A), then Jackson is a mammal. (B)

Jackson is a mammal. (B)

Therefore, Jackson is a human. (A)
While the conclusion may be true, it does not follow from the premise:

Humans are mammals

Jackson is a mammal

Therefore, Jackson is a human
The truth of the conclusion is independent of the truth of its premise – it is a 'non sequitur', since Jackson might be a mammal without being human. He might be an elephant.
Affirming the consequent is essentially the same as the fallacy of the undistributed middle, but using propositions rather than set membership.
 Denying the antecedent
Another common non sequitur is this:

If A is true, then B is true.

A is false.

Therefore, B is false.
While B can indeed be false, this cannot be linked to the premise since the statement is a non sequitur. This is called denying the antecedent.
An example of denying the antecedent would be:

If I am Japanese, then I am Asian.

I am not Japanese.

Therefore, I am not Asian.
While the conclusion may be true, it does not follow from the premise. For all the reader knows, the statement's declarant could be another ethnicity of Asia, e.g. Chinese, in which case the premise would be true but the conclusion false. This argument is still a fallacy even if the conclusion is true.
 Affirming a Disjunct
Affirming a disjunct is a fallacy when in the following form:

A is true or B is true.

B is true.

Therefore, A is not true.*
The conclusion does not follow from the premise as it could be the case that A and B are both true. This fallacy stems from the stated definition of or in propositional logic to be inclusive.
An example of affirming a disjunct would be:

I am at home or I am in the city.

I am at home.

Therefore, I am not in the city.
While the conclusion may be true, it does not follow from the premise. For all the reader knows, the declarant of the statement very well could be in both the city and their home, in which case the premises would be true but the conclusion false. This argument is still a fallacy even if the conclusion is true.
*Note that this is only a logical fallacy when the word "or" is in its inclusive form. If the two possibilities in question are mutually exclusive, this is not a logical fallacy. For example,

I am either at home or I am in the city.

I am at home.

Therefore, I am not in the city.
 Denying a Conjunct
Denying a conjunct is a fallacy when in the following form:

It is not the case that both A is true and B is true.

B is not true.

Therefore, A is true.
The conclusion does not follow from the premise as it could be the case that A and B are both false.
An example of denying a conjunct would be:

I cannot be both at home and in the city.

I am not at home.

Therefore, I am in the city.
While the conclusion may be true, it does not follow from the premise. For all the reader knows, the declarant of the statement very well could neither be at home nor in the city, in which case the premise would be true but the conclusion false. This argument is still a fallacy even if the conclusion is true.
 Fallacy of the Undistributed Middle
The fallacy of the undistributed middle is a fallacy that is committed when the middle term in a categorical syllogism is not distributed. It is thus a syllogistic fallacy. More specifically it is also a form of non sequitur.
The fallacy of the undistributed middle takes the following form:

All Zs are Bs.

Y is a B.

Therefore, Y is a Z.
It may or may not be the case that "all Zs are Bs", but in either case it is irrelevant to the conclusion. What is relevant to the conclusion is whether it is true that "all Bs are Zs," which is ignored in the argument.
An example can be given as follows, where B=mammals, Y=Mary and Z=humans:

All humans are mammals.

Mary is a mammal.

Therefore, Mary is a human.
Note that if the terms (Z and B) were swapped around in the first copremise then it would no longer be a fallacy and would be correct.
In Contrast to Informal Fallacy
Formal logic is not used to determine whether or not an argument is true. Formal arguments can either be valid or invalid. A valid argument may also be sound or unsound:
 A valid argument has a correct formal structure. A valid argument is one where if the premises are true, the conclusion must be true.
 A sound argument is a formally correct argument that also contains true premises.
 Ideally, the best kind of formal argument is a sound, valid argument.
Formal fallacies do not take into account the soundness of an argument, but rather its validity. Premises in formal logic are commonly represented by letters (most commonly p and q). A fallacy occurs when the structure of the argument is incorrect, despite the truth of the premises.
As modus ponens, the following argument contains no formal fallacies:

If P then Q

P

Therefore Q
A logical fallacy associated with this format of argument is referred to as affirming the consequent, which would look like this:

If P then Q

Q

Therefore P
This is a fallacy because it does not take into account other possibilities. To illustrate this more clearly, substitute the letters with premises:

If it rains, the street will be wet.

The street is wet.

Therefore, it rained.
Although it is possible that this conclusion is true, it does not necessarily mean it must be true. The street could be wet for a variety of other reasons that this argument does not take into account. However, if we look at the valid form of the argument, we can see that the conclusion must be true:

If it rains, the street will be wet.

It rained.

Therefore, the street is wet.
This argument is valid and, if it did rain, it would also be sound.
If statements 1 and 2 are true, it absolutely follows that statement 3 is true. However, it may still be the case that statement 1 or 2 is not true. For example:

If Albert Einstein makes a statement about science, it is correct.

Albert Einstein states that all quantum mechanics is deterministic.

Therefore, it is true that quantum mechanics is deterministic.
In this case, statement 1 is false. The particular informal fallacy being committed in this assertion is argument from authority. By contrast, an argument with a formal fallacy could still contain all true premises:

If someone owns Fort Knox, then he is rich.

Bill Gates is rich.

Therefore, Bill Gates owns Fort Knox.
Although, 1 and 2 are true statements, 3 does not follow because the argument commits the formal fallacy of affirming the consequent.
An argument could contain both an informal fallacy and a formal fallacy yet lead to a conclusion that happens to be true, for example, again affirming the consequent, now also from an untrue premise:

If a scientist makes a statement about science, it is correct.

It is true that quantum mechanics is deterministic.

Therefore, a scientist has made a statement about it.
Common Examples
 Some of your key evidence is missing, incomplete, or even faked! That proves I am right!
 The vet cannot find any reasonable explanation for why my dog died. See! See! That proves that you poisoned him! There is no other logical explanation!
 Adolf Hitler liked dogs. He was evil. Therefore, liking dogs is evil.
A Venn diagram illustrating a fallacy:
Statement 1: Most of the green is touching the red.
Statement 2: Most of the red is touching the blue.
Logical fallacy: Since most of the green is touching red, and most of the red is touching blue, most of the green must be touching blue. This, however, is a false statement.
In the strictest sense, a logical fallacy is the incorrect application of a valid logical principle or an application of a nonexistent principle:

Most Rimnars are Jornars.

Most Jornars are Dimnars.

Therefore, most Rimnars are Dimnars.
This is fallacious. And so is this:

People in Kentucky support a border fence.

People in New York do not support a border fence.

Therefore, people in New York do not support people in Kentucky.
Indeed, there is no logical principle that states:

For some x, P(x).

For some x, Q(x).

Therefore, for some x, P(x) and Q(x).
An easy way to show the above inference as invalid is by using Venn diagrams. In logical parlance, the inference is invalid, since under at least one interpretation of the predicates it is not validity preserving.
People often have difficulty applying the rules of logic. For example, a person may say the following syllogism is valid, when in fact it is not:

All birds have beaks.

That creature has a beak.

Therefore, that creature is a bird.
"That creature" may well be a bird, but the conclusion does not follow from the premises. Certain other animals also have beaks, for example: an octopus and a squid both have beaks, some turtles and cetaceans have beaks. Errors of this type occur because people reverse a premise. In this case, "All birds have beaks" is converted to "All beaked animals are birds." The reversed premise is plausible because few people are aware of any instances of beaked creatures besides birds – but this premise is not the one that was given. In this way, the deductive fallacy is formed by points that may individually appear logical, but when placed together are shown to be incorrect.
Non Sequitur in Everyday Speech
In everyday speech, a non sequitur is a statement in which the final part is totally unrelated to the first part, for example:
Life is life and fun is fun, but it's all so quiet when the goldfish die.
— West with the Night, Beryl Markham
Source: Wikipedia, https://en.wikipedia.org/wiki/Formal_fallacy
This work is licensed under a Creative Commons AttributionShareAlike 3.0 License.