Disclosed are a method and a system for matching an electroencephalogram and music files which compares the scaling index &alpha of an electroencephalogram with the long-range correlation index &bgr, and matches music file with the electroencephalogram if the scaling index and the long-range correlation index close to equal so as to find a music file matched with a measured electroencephalogram automatically. The method and system in accordance with the present invention may automatically find music files matching with human brain statements in real time by measuring an electroencephalogram, and then guide people relieve stress and relax effectively.本發明揭露一種根據腦電訊號提供相匹配音樂之方法及其系統,該方法包括:S1:根據測量的腦電訊號,得到該腦電訊號的定標指數α;S2:對預設音樂庫中的音樂進行分析,得到該音樂的長程相關指數β;S3:根據該定標指數α與該長程相關指數β,對該腦電訊號與該音樂進行匹配。本實施例揭露的腦電訊號與音樂進行匹配之方法及其系統藉由測量人的腦電訊號而快速自動化地找到符合人當前情緒狀態的樂曲,這對於緩解壓力、放鬆平復心情有很重要的作用。S1~S3‧‧‧步驟