The total number of relations from \( P \) to \( Q \) is given by:
\[
n(Q)^n(P) = 4^3 = 64.
\]
For the relation to be a function, each element of \( P \) must be related to exactly one element of \( Q \). The number of functions is:
\[
n(Q)^{n(P)} = 4^3 = 64.
\]
Thus, the number of non-functions is:
\[
\text{Non-functions} = 4^3 - 4^3 = 63.
\]
Therefore, the probability that the relation is not a function is:
\[
P(\text{not a function}) = \frac{63}{64}.
\]