All cognitive states, including stress and anxiety, defines your state of mind. With different cognitive states different patterns in EEG are observed. For example, in stress and anxiety the cingulate cortex is very active and hence we observe higher than normal beta activity in EEG, especially near Default mode network(DMN).

More details on