Skip to Content
Bad Data 技術手冊
book

Bad Data 技術手冊

by Q. Ethan McCallum
September 2013
Intermediate to advanced
264 pages
5h
Chinese
GoTop Information, Inc.
Content preview from Bad Data 技術手冊
124
|
第九章:當資料與現實不相符時
簡單來說,若你現在在看 Sears Holdings,並且想知道在 2004 年它的股票編號為何,答
案是 KMRT,並不是 S。若想知道它在 2001 年的股票編號,答案則是它尚未存在。但
若你想要查股票編號為 S 的過去某個時間點的價錢,那麼你最好確定你是在查 Sears
Sprint
多數的人在工作上會使用股票的資料,就算是在財務企業中,也會想要使用股票編號當
成唯一辨識碼。它們當初被建立時就是基於這個目的,而且在任何時間點內都會是唯一
的。但當你開始建立時間序列來從過去看這些資料,它們將會是你的絆腳石。
多數的資料來源,如 Google 或是 Yahoo! Finance,都是使用最近的股票編號來當成唯一
鍵。這代表不論在何時讀取了更新資料,有些辨識碼已經變更了。
更重要的是,任何目前再也不能夠被交易的公司並沒有擁有一個編號。在目前多數的資
料集合中,若你尋找「S」則會找到 Sprint;若尋找「Sears」則會找到 SHLD;若尋找
Kmart 則什麼都找不到。這在資料中導致了一個主要的「存活偏差」:若你從不去看那
些破產倒閉或是被買下的公司,該股票市場看起來會非常的有利。
也有一些縮寫為 CUSIPISIN 或是 SEDOL 等的通用唯一辨識碼。但這些是私營的並且
通常是無法取用的。它們也只有解決一半的問題:它們不會像股票編號般被回收使用,
但它們會因為該股票有小變動而變更它們的辨識碼(如當 KMRT 變成 SHLD CUSIP
就變更了) ...
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

RxJava反应式编程

RxJava反应式编程

Tomasz Nurkiewicz, Ben Christensen
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald
Kubernetes编程

Kubernetes编程

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9789862768952