Bruce Hansen's book "Econometrics" defines a random sample as follows: "The observations $(y_i,x_i, z_i)$ are a random sample if they are mutually independent and identically distributed $(iid)$ across $i =1, ..., n.$"
I have two questions about this definition: $1)$ Can two observations be iid or does the concept of iid apply only to random variables? In other words, each observation must be associated with a random variable. And the different observations correspond to the result of the same experiment. $2)$ Since each observation is made up of three elements $(y_i, x_i, z_i)$, then should each observation be considered as the realization of a random vector? So the concept of iid refers here to the independence and identical distribution of random vectors and not random variables?