Power Spectrum analysis arbitrary length signals
The answer depends on the statistical characterization of the signal. If the random EEG signal is stationary over when seen over 5 second cycles, then you are better off averaging over 5 seconds cycles. If not, then averaging over these 5 seconds cycles might not yield the best estimate. In that case better off averaging over the entire duration.