I study Marker book "Model Theory, An Introduction". Definition 3.1.1 on page 72 defines "theory T has quantifier elimination".
A theory $T$ has quantifier elimination if for every formula $\phi$ there is a quantifier-free formula $\psi$ such that $T \models \phi \leftrightarrow \psi$.
"$T \models \phi \leftrightarrow \psi$" is, as far as I see, actually not defined in Marker's book, but I guess with this he means $T \models \forall \vec v \; ( \phi \leftrightarrow \psi)$ where $\vec v$ is the tuple of variables in $FV( \phi ) \cup FV ( \psi )$. ($FV(\phi) =$ set of free variables of $\phi$.)
Question: Is my interpretation correct?
$\psi$ is allowed to have more free variables it seems, from above definition. Some other resources (here for example) seem to have same definition of quantifier elimination.
The above definitions don't seem to require the following: Each free variable of $\psi$ is free variable of $\phi$ (in particular, if $\phi$ is a sentence, then $\psi$ is sentence too). I saw other resource which requires it. Now this confuse me. Can someone tell me proper definition, or tell which is the most common one. For example in this resource on page 30 the definition requires it only for formulas $\psi (x_1 , \ldots, x_n )$ with "$n\geq 1$", but I don't understand what that exactly means (since sentences have no free variables so they're still of this form hence we can just leave out the $n\geq 1$ requirement).
Yes, your interpretation is correct. In fact writing $T \models \varphi$ for a $\mathcal L$-theory $T$ should imply that $\varphi$ is a $\mathcal L$-sentence. But model theorists are very free (no pun intended) with variables$^{[1]}$ : if $\varphi(\bar x)$ is a $\mathcal L$-formula, it certainly is a $(\mathcal L \cup \bar x)$-sentence (where every $x_i$ is now a new constant symbol). So writing $T \models \varphi(\bar x)$ for a $\mathcal L$-theory $T$ is an abuse for $\tilde T \models \varphi(\bar x)$ where $\tilde T$ is the theory $T$ viewed as a $(\mathcal L \cup \bar x)$-theory.
Now a $(\mathcal L \cup \bar x)$-structure is just an $\mathcal L$-structure with an assignation of the variables $x_i$. Then $\tilde T \models \varphi(\bar x)$ if and only if, for any $\mathcal L$-structures $\mathfrak M$ which models $T$ and for any assignation $\sigma$ of the $x_i$'s, one has $(\mathfrak M,\sigma) \models \varphi(\bar x)$. That is precisely the definition of $T \models \forall \bar x \varphi(\bar x)$.
About the "$n\geq 1$", it is a technical issue. If you allow $n=0$ on a language without constant, there as no quantifier-free sentence : you then can not find a quantifier-free sentence equivalent to $\exists x (x =x)$ for example. Requiring $n\geq 1$ forces you to consider sentences as formula of the form $\phi(y)$ : then a quantifier-free formula as $y=y$ is suitable for the previous problem.
[1] I write $\bar x$ for a tuple $(x_1,\dots,x_n)$ when I don't care about the length $n$. I the write $\varphi(\bar x)$ when the free variables of $\varphi$ are among the $x_i$'s.