Error Vector Magnitude (EVM) is a measure of demodulator performance in the presence of impairments. The demodulated symbols are compared against ideal symbol locations over the measurement window to measure EVM, magnitude error, and phase error.
The following image shows the comparison of demodulated symbols against ideal symbol locations.
where In+jQn is the vector representing the symbol being measured at index n
N is the number of symbols to be measured