Spectral Entropy
Spectral entropy is the Shannon entropy of a signal's normalised power spectrum, scaled to 0-1, so a flat noise-like spectrum scores near 1 and a single dominant rhythm near 0.
스펙트럼 엔트로피는 신호의 정규화된 파워 스펙트럼에 대한 섀넌 엔트로피를 0~1로 나타낸 값으로, 잡음처럼 평평한 스펙트럼은 1에 가깝고 한 주파수가 지배하면 0에 가깝습니다.
How irregular is this EEG channel, and does its spectral complexity drop during the task blocks compared with rest?
이 뇌파 채널의 신호가 얼마나 불규칙한지, 과제 구간에서 휴식 구간보다 스펙트럼 복잡도가 낮아지는지 알고 싶어요.
Estimate the power spectral density with Welch's method, turn it into a probability distribution over frequency bins and compute its Shannon entropy divided by the maximum possible entropy. Repeating the calculation in sliding windows shows how spectral complexity changes over time.
When to use Spectral Entropy
- You want a single number for how spread out a signal's power is across frequencies.
- You need to track changes in signal regularity over time with sliding windows.
- You compare complexity between recordings sampled at the same rate.
When to use something else
- The signal is strongly non-stationary within each window; use a time-frequency method such as a wavelet transform.
- You need complexity in the time domain (pattern predictability); use sample entropy or permutation entropy.
Assumptions and requirements
- Samples are equally spaced in time.
- The signal is approximately stationary within each analysis window.
- Segment length and window are fixed before comparing groups.
What the analysis reports
- Normalised spectral entropy and entropy in bits
- Dominant frequency and the Welch PSD used
- Entropy per sliding window with its range
- Check for regular sampling
How to report it
The normalised spectral entropy of the signal (N = [n], fs = [value] Hz) was [value]; across [k] sliding windows it ranged from [value] to [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Spectral Entropy on Quorant
- Data you need
- a table (CSV or Excel) with a time variable and an outcome variable
- Price
- 150 credits for one analysis up to 10,000 rows (complexity level 1); larger or wider data costs more. Optional methodologist review: 900 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.