Skip to Content
実践 時系列解析 ―統計と機械学習による予測
book

実践 時系列解析 ―統計と機械学習による予測

by Aileen Nielsen, 山崎 邦子, 山崎 康宏
September 2021
Beginner to intermediate
484 pages
7h 27m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 時系列解析 ―統計と機械学習による予測

11章誤差の測定

これまでの章では、様々な指標を使って、モデル間の比較やモデルの作業成果の判断を行ってきました。本章では、予測精度の見積もりのベストプラクティスを、時系列データに固有の懸念に重点を置いて検討します。

時系列予測を始めたばかりの人に最も大切なことは、通常、標準的な交差検証は勧められないことを理解することです。データサンプルを時間非依存的な方法でランダムに選んで、訓練、検証、およびテスト用の各データセットにすることはできないのです。

それだけではありません。異なるデータサンプル同士が独立なように見える場合でも、両者が時間的にどう関係しているかを考える必要があります。例えば、時系列の分類問題に取り組んでいて、それぞれが独自のデータである個別の時系列のサンプルが多数あるとします。この場合には、訓練、検証、テスト用にこれらの時系列サンプルからランダムに選んでよいとつい考えたくなりますが、それを実行するのは間違いです。このアプローチが間違っているのは、モデルの使い方、すなわち、時間的に前のデータで訓練し、後のデータでテストするという使い方を反映していないからです。

未来の情報をモデルに漏出してはいけません。現実世界のモデリングでは起きない状況だからです。これをすると、ひいては、モデルの予測誤差は、テスト時の方が本番稼働時よりも小さくなります。なぜなら、テスト時に、未来の情報がもたらされるように、モデルを交差検証しているからです(つまり、どのモデルを使用するかのフィードバックとして)。

これが起きる具体的な筋書きを見てみましょう。アメリカ西部の主要都市の大気質監視モデルを訓練しているとします。訓練用データセットには、サンフランシスコ、ソルトレークシティ、デンバー、サンディエゴの、2017年と2018年分の全データを含めました。テスト用データセットには、同じ期間のラスベガス、ロサンゼルス、オークランド、フェニックスのデータを含めたとします。すると、大気質モデルの成績は、ラスベガスとロサンゼルスで特に良く、2018年では全体的に非常に良いものでした。素晴らしい結果です! ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

実践 AWSデータサイエンス ―エンドツーエンドのMLOpsパイプライン実装

実践 AWSデータサイエンス ―エンドツーエンドのMLOpsパイプライン実装

Chris Fregly, Antje Barth, 黒川 利明, 本橋 和貴
実践 機械学習システム

実践 機械学習システム

Willi Richert, Luis Pedro Coelho, 斎藤 康毅

Publisher Resources

ISBN: 9784873119601Other