การแยกส่วนประกอบอนุกรมเวลาของชุดข้อมูล airline
ในแบบฝึกหัดนี้ คุณจะนำการแยกส่วนประกอบอนุกรมเวลาไปใช้กับชุดข้อมูล airline และแสดงผลส่วนประกอบ trend และ seasonal
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
การแสดงภาพข้อมูล Time Series ด้วย Python
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Import statsmodels.api as sm
____
# Perform time series decompositon
decomposition = sm.tsa.____(____)
# Extract the trend and seasonal components
trend = ____
seasonal = ____