Random variables based on the same probability mass function (pmf) or probability density function (pdf) are not always independent. Independence requires that the joint distribution equals the product of the individual distributions, specifically P(A = a, B = b) = P(A=a) * P(B=b). In cases where one variable is a function of another, such as X = Y, the variables are perfectly correlated and thus dependent. To verify independence, one must check the condition of separability in their distributions. Understanding this concept is crucial for accurate statistical analysis.