Share E-Book

Beautiful Data The Stories Behind Elegant Data Solutions (Toby Segaran, Jeff Hammerbacher)(Z-Library)

Author

,

Rating 4.0 AI initial rating

Log in to rate

Data
Language English

In this insightful book, you'll learn from the best data practitioners in the field just how wide-ranging -- and beautiful -- working with data can be. Join 39 contributors as they explain how they developed simple and elegant solutions on projects ranging from the Mars lander to a Radiohead video. With Beautiful Data, you will: Explore the opportunities and challenges involved in working with the vast number of datasets made available by the Web Learn how to visualize trends in urban crime, using maps and data mashups Discover the challenges of designing a data processing system that works within the constraints of space travel Learn how crowdsourcing and transparency have combined to advance the state of drug research Understand how new data can automatically trigger alerts when it matches or overlaps pre-existing data Learn about the massive infrastructure required to create, capture, and process DNA data That's only small sample of what you'll find in Beautiful Data. For anyone who handles data, this is a truly fascinating book. ... The contents are less impressive: O'Reilly bring together a heterogeneous group of authors and let them fend for themselves, with no editorial effort to unite their stories. Some authors hold their own, presenting interesting analyses and visualizations, or just interesting tales, others are less successful. (The spectrum of statistical expertise, for example, is bounded by Andrew Gelman and a graduate student believing that normality is a requirement of the central-limit theorem). 'Interesting' is a good thing, but for $40 I would like 'useful', and here the book comes up short. An appealing leisure read, but not much more, I am afraid.

Format PDF
Size 8.3 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
(This page has no text content)
Page 2
Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Beautiful Data Edited by Toby Segaran and Jeff Hammerbacher
Page 3
Beautiful Data Edited by Toby Segaran and Jeff Hammerbacher Copyright © 2009 O’Reilly Media, Inc. All rights reserved. Printed in Canada. Published by O’Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com. Editor: Julie Steele Production Editor: Rachel Monaghan Copyeditor: Genevieve d’Entremont Indexer: Angela Howard Proofreader: Rachel Monaghan Cover Designer: Mark Paglietti Interior Designer: Marcia Friedman Illustrator: Robert Romano Printing History: July 2009: First Edition. The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Beautiful Data, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. ISBN: 978-0-596-15711-1 [F]
Page 4
All royalties from this book will be donated to Creative Commons and the Sunlight Foundation.
Page 5
(This page has no text content)
Page 6
v C O N T E N T S PREFACE xi 1 SEEING YOUR LIFE IN DATA 1 by Nathan Yau Personal Environmental Impact Report (PEIR) 2 your.flowingdata (YFD) 3 Personal Data Collection 3 Data Storage 5 Data Processing 6 Data Visualization 7 The Point 14 How to Participate 15 2 THE BEAUTIFUL PEOPLE: KEEPING USERS IN MIND WHEN DESIGNING DATA COLLECTION METHODS 17 by Jonathan Follett and Matthew Holm Introduction: User Empathy Is the New Black 17 The Project: Surveying Customers About a New Luxury Product 19 Specific Challenges to Data Collection 19 Designing Our Solution 21 Results and Reflection 31 3 EMBEDDED IMAGE DATA PROCESSING ON MARS 35 by J. M. Hughes Abstract 35 Introduction 35 Some Background 37 To Pack or Not to Pack 40 The Three Tasks 42 Slotting the Images 43 Passing the Image: Communication Among the Three Tasks 46 Getting the Picture: Image Download and Processing 48 Image Compression 50 Downlink, or, It’s All Downhill from Here 52 Conclusion 52
Page 7
vi C O N T E N T S 4 CLOUD STORAGE DESIGN IN A PNUTSHELL 55 by Brian F. Cooper, Raghu Ramakrishnan, and Utkarsh Srivastava Introduction 55 Updating Data 57 Complex Queries 64 Comparison with Other Systems 68 Conclusion 71 5 INFORMATION PLATFORMS AND THE RISE OF THE DATA SCIENTIST 73 by Jeff Hammerbacher Libraries and Brains 73 Facebook Becomes Self-Aware 74 A Business Intelligence System 75 The Death and Rebirth of a Data Warehouse 77 Beyond the Data Warehouse 78 The Cheetah and the Elephant 79 The Unreasonable Effectiveness of Data 80 New Tools and Applied Research 81 MAD Skills and Cosmos 82 Information Platforms As Dataspaces 83 The Data Scientist 83 Conclusion 84 6 THE GEOGRAPHIC BEAUTY OF A PHOTOGRAPHIC ARCHIVE 85 by Jason Dykes and Jo Wood Beauty in Data: Geograph 86 Visualization, Beauty, and Treemaps 89 A Geographic Perspective on Geograph Term Use 91 Beauty in Discovery 98 Reflection and Conclusion 101 7 DATA FINDS DATA 105 by Jeff Jonas and Lisa Sokol Introduction 105 The Benefits of Just-in-Time Discovery 106 Corruption at the Roulette Wheel 107 Enterprise Discoverability 111 Federated Search Ain’t All That 111 Directories: Priceless 113 Relevance: What Matters and to Whom? 115 Components and Special Considerations 115 Privacy Considerations 118 Conclusion 118
Page 8
C O N T E N T S vii 8 PORTABLE DATA IN REAL TIME 119 by Jud Valeski Introduction 119 The State of the Art 120 Social Data Normalization 128 Conclusion: Mediation via Gnip 131 9 SURFACING THE DEEP WEB 133 by Alon Halevy and Jayant Madhaven What Is the Deep Web? 133 Alternatives to Offering Deep-Web Access 135 Conclusion and Future Work 147 10 BUILDING RADIOHEAD’S HOUSE OF CARDS 149 by Aaron Koblin with Valdean Klump How It All Started 149 The Data Capture Equipment 150 The Advantages of Two Data Capture Systems 154 The Data 154 Capturing the Data, aka “The Shoot” 155 Processing the Data 160 Post-Processing the Data 160 Launching the Video 161 Conclusion 164 11 VISUALIZING URBAN DATA 167 by Michal Migurski Introduction 167 Background 168 Cracking the Nut 169 Making It Public 174 Revisiting 178 Conclusion 181 12 THE DESIGN OF SENSE.US 183 by Jeffrey Heer Visualization and Social Data Analysis 184 Data 186 Visualization 188 Collaboration 194 Voyagers and Voyeurs 199 Conclusion 203
Page 9
viii C O N T E N T S 13 WHAT DATA DOESN’T DO 205 by Coco Krumme When Doesn’t Data Drive? 208 Conclusion 217 14 NATURAL LANGUAGE CORPUS DATA 219 by Peter Norvig Word Segmentation 221 Secret Codes 228 Spelling Correction 234 Other Tasks 239 Discussion and Conclusion 240 15 LIFE IN DATA: THE STORY OF DNA 243 by Matt Wood and Ben Blackburne DNA As a Data Store 243 DNA As a Data Source 250 Fighting the Data Deluge 253 The Future of DNA 257 16 BEAUTIFYING DATA IN THE REAL WORLD 259 by Jean-Claude Bradley, Rajarshi Guha, Andrew Lang, Pierre Lindenbaum, Cameron Neylon, Antony Williams, and Egon Willighagen The Problem with Real Data 259 Providing the Raw Data Back to the Notebook 260 Validating Crowdsourced Data 262 Representing the Data Online 263 Closing the Loop: Visualizations to Suggest New Experiments 271 Building a Data Web from Open Data and Free Services 274 17 SUPERFICIAL DATA ANALYSIS: EXPLORING MILLIONS OF SOCIAL STEREOTYPES 279 by Brendan O’Connor and Lukas Biewald Introduction 279 Preprocessing the Data 280 Exploring the Data 282 Age, Attractiveness, and Gender 285 Looking at Tags 290 Which Words Are Gendered? 294 Clustering 295 Conclusion 300
Page 10
C O N T E N T S ix 18 BAY AREA BLUES: THE EFFECT OF THE HOUSING CRISIS 303 by Hadley Wickham, Deborah F. Swayne, and David Poole Introduction 303 How Did We Get the Data? 304 Geocoding 305 Data Checking 305 Analysis 306 The Influence of Inflation 307 The Rich Get Richer and the Poor Get Poorer 308 Geographic Differences 311 Census Information 314 Exploring San Francisco 318 Conclusion 319 19 BEAUTIFUL POLITICAL DATA 323 by Andrew Gelman, Jonathan P. Kastellec, and Yair Ghitza Example 1: Redistricting and Partisan Bias 324 Example 2: Time Series of Estimates 326 Example 3: Age and Voting 328 Example 4: Public Opinion and Senate Voting on Supreme Court Nominees 328 Example 5: Localized Partisanship in Pennsylvania 330 Conclusion 332 20 CONNECTING DATA 335 by Toby Segaran What Public Data Is There, Really? 336 The Possibilities of Connected Data 337 Within Companies 338 Impediments to Connecting Data 339 Possible Solutions 343 Conclusion 348 CONTRIBUTORS 349 INDEX 357
Page 11
(This page has no text content)
Page 12
xi Chapter Preface WHEN WE WERE FIRST APPROACHED WITH THE IDEA OF A FOLLOW-UP TO BEAUTIFUL CODE, THIS TIME about data, we found the idea exciting and very ambitious. Collecting, visualizing, and processing data now touches every professional field and so many aspects of daily life that a great collection would have to be almost unreasonably broad in scope. So we contacted a highly diverse group of people whose work we admired, and were thrilled that so many agreed to contribute. This book is the result, and we hope it captures just how wide-ranging (and beautiful) working with data can be. In it you’ll learn about everything from fighting with govern- ments to working with the Mars lander; you’ll learn how to use statistics programs, make visualizations, and remix a Radiohead video; you’ll see maps, DNA, and something we can only really call “data philosophy.” The royalties for this book are being donated to Creative Commons and the Sunlight Foundation, two organizations dedicated to making the world better by freeing data. We hope you’ll consider how your own encounters with data shape the world.
Page 13
xii P R E F A C E How This Book Is Organized The chapters in this book follow a loose arc from data collection through data storage, organization, retrieval, visualization, and finally, analysis. Chapter 1, Seeing Your Life in Data, by Nathan Yau, looks at the motivations and challenges behind two projects in the emerging field of personal data collection. Chapter 2, The Beautiful People: Keeping Users in Mind When Designing Data Collection Methods, by Jonathan Follett and Matthew Holm, discusses the importance of trust, persuasion, and testing when collecting data from humans over the Web. Chapter 3, Embedded Image Data Processing on Mars, by J. M. Hughes, discusses the chal- lenges of designing a data processing system that has to work within the constraints of space travel. Chapter 4, Cloud Storage Design in a PNUTShell, by Brian F. Cooper, Raghu Ramakrishnan, and Utkarsh Srivastava, describes the software Yahoo! has designed to turn its globally dis- tributed data centers into a universal storage platform for powering modern web applications. Chapter 5, Information Platforms and the Rise of the Data Scientist, by Jeff Hammerbacher, traces the evolution of tools for information processing and the humans who power them, using specific examples from the history of Facebook’s data team. Chapter 6, The Geographic Beauty of a Photographic Archive, by Jason Dykes and Jo Wood, draws attention to the ubiquity and power of colorfully visualized spatial data collected by a volun- teer community. Chapter 7, Data Finds Data, by Jeff Jonas and Lisa Sokol, explains a new approach to think- ing about data that many may need to adopt in order to manage it all. Chapter 8, Portable Data in Real Time, by Jud Valeski, dives into the current limitations of distributing social and location data in real time across the Web, and discusses one poten- tial solution to the problem. Chapter 9, Surfacing the Deep Web, by Alon Halevy and Jayant Madhavan, describes the tools developed by Google to make searchable the data currently trapped behind forms on the Web. Chapter 10, Building Radiohead’s House of Cards, by Aaron Koblin with Valdean Klump, is an adventure story about lasers, programming, and riding on the back of a bus, and end- ing with an award-winning music video. Chapter 11, Visualizing Urban Data, by Michal Migurski, details the process of freeing and beautifying some of the most important data about the world around us. Chapter 12, The Design of Sense.us, by Jeffrey Heer, recasts data visualizations as social spaces and uses this new perspective to explore 150 years of U.S. census data.
Page 14
P R E F A C E xiii Chapter 13, What Data Doesn’t Do, by Coco Krumme, looks at experimental work that demonstrates the many ways people misunderstand and misuse data. Chapter 14, Natural Language Corpus Data, by Peter Norvig, takes the reader through some evocative exercises with a trillion-word corpus of natural language data pulled down from across the Web. Chapter 15, Life in Data: The Story of DNA, by Matt Wood and Ben Blackburne, describes the beauty of the data that is DNA and the massive infrastructure required to create, cap- ture, and process that data. Chapter 16, Beautifying Data in the Real World, by Jean-Claude Bradley, Rajarshi Guha, Andrew Lang, Pierre Lindenbaum, Cameron Neylon, Antony Williams, and Egon Willighagen, shows how crowdsourcing and extreme transparency have combined to advance the state of drug discovery research. Chapter 17, Superficial Data Analysis: Exploring Millions of Social Stereotypes, by Brendan O’Connor and Lukas Biewald, shows the correlations and patterns that emerge when peo- ple are asked to anonymously rate one another’s pictures. Chapter 18, Bay Area Blues: The Effect of the Housing Crisis, by Hadley Wickham, Deborah F. Swayne, and David Poole, guides the reader through a detailed examination of the recent housing crisis in the Bay Area using open source software and publicly available data. Chapter 19, Beautiful Political Data, by Andrew Gelman, Jonathan P. Kastellec, and Yair Ghitza, shows how the tools of statistics and data visualization can help us gain insight into the political process used to organize society. Chapter 20, Connecting Data, by Toby Segaran, explores the difficulty and possibilities of joining together the vast number of data sets the Web has made available. Conventions Used in This Book The following typographical conventions are used in this book: Italic Indicates new terms, URLs, email addresses, filenames, and file extensions. Constant width Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, state- ments, and keywords. Constant width bold Shows commands or other text that should be typed literally by the user. Constant width italic Shows text that should be replaced with user-supplied values or by values determined by context.
Page 15
xiv P R E F A C E Using Code Examples This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a pro- gram that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require per- mission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission. We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Beautiful Data, edited by Toby Segaran and Jeff Hammerbacher. Copyright 2009 O’Reilly Media, Inc., 978-0-596-15711-1.” If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at permissions@oreilly.com. How to Contact Us Please address comments and questions concerning this book to the publisher: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, CA 95472 800-998-9938 (in the United States or Canada) 707-829-0515 (international or local) 707-829-0104 (fax) We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at: http://oreilly.com/catalog/9780596157111 To comment or ask technical questions about this book, send email to: bookquestions@oreilly.com For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our website at: http://oreilly.com
Page 16
P R E F A C E xv Safari® Books Online When you see a Safari® Books Online icon on the cover of your favorite technology book, that means the book is available online through the O’Reilly Network Safari Bookshelf. Safari offers a solution that’s better than e-books. It’s a virtual library that lets you easily search thousands of top tech books, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http://my.safaribooksonline.com.
Page 17
(This page has no text content)
Page 18
1 Chapter 1 C H A P T E R O N E Seeing Your Life in Data Nathan Yau IN THE NOT-TOO-DISTANT PAST, THE WEB WAS ABOUT SHARING, BROADCASTING, AND DISTRIBUTION. But the tide is turning: the Web is moving toward the individual. Applications spring up every month that let people track, monitor, and analyze their habits and behaviors in hopes of gaining a better understanding about themselves and their surroundings. People can track eating habits, exercise, time spent online, sexual activity, monthly cycles, sleep, mood, and finances online. If you are interested in a certain aspect of your life, chances are that an application exists to track it. Personal data collection is of course nothing new. In the 1930s, Mass Observation, a social research group in Britain, collected data on various aspects of everyday life—such as beards and eyebrows, shouts and gestures of motorists, and behavior of people at war memorials—to gain a better understanding about the country. However, data collection methods have improved since 1930. It is no longer only a pencil and paper notepad or a manual counter. Data can be collected automatically with mobile phones and handheld computers such that constant flows of data and information upload to servers, databases, and so-called data warehouses at all times of the day. With these advances in data collection technologies, the data streams have also developed into something much heftier than the tally counts reported by Mass Observation partici- pants. Data can update in real-time, and as a result, people want up-to-date information.
Page 19
2 C H A P T E R O N E It is not enough to simply supply people with gigabytes of data, though. Not everyone is a statistician or computer scientist, and not everyone wants to sift through large data sets. This is a challenge that we face frequently with personal data collection. While the types of data collection and data returned might have changed over the years, individuals’ needs have not. That is to say that individuals who collect data about them- selves and their surroundings still do so to gain a better understanding of the information that lies within the flowing data. Most of the time we are not after the numbers them- selves; we are interested in what the numbers mean. It is a subtle difference but an impor- tant one. This need calls for systems that can handle personal data streams, process them efficiently and accurately, and dispense information to nonprofessionals in a way that is understandable and useful. We want something that is more than a spreadsheet of numbers. We want the story in the data. To construct such a system requires careful design considerations in both analysis and aesthetics. This was important when we implemented the Personal Environmental Impact Report (PEIR), a tool that allows people to see how they affect the environment and how the environment affects them on a micro-level; and your.flowingdata (YFD), an in-development project that enables users to collect data about themselves via Twitter, a microblogging service. For PEIR, I am the frontend developer, and I mostly work on the user interface and data visualization. As for YFD, I am the only person who works on it, so my responsibilities are a bit different, but my focus is still on the visualization side of things. Although PEIR and YFD are fairly different in data type, collection, and processing, their goals are similar. PEIR and YFD are built to provide information to the individual. Neither is meant as an endpoint. Rather, they are meant to spur curiosity in how everyday decisions play a big role in how we live and to start conversations on personal data. After a brief background on PEIR and YFD, I discuss personal data collection, storage, and analysis with this idea in mind. I then go into depth on the design process behind PEIR and YFD data visualizations, which can be generalized to personal data visualization as a whole. Ultimately, we want to show individuals the beauty in their personal data. Personal Environmental Impact Report (PEIR) PEIR is developed by the Center for Embedded Networked Sensing at the University of California at Los Angeles, or more specifically, the Urban Sensing group. We focus on using everyday mobile technologies (e.g., cell phones) to collect data about our surround- ings and ourselves so that people can gain a better understanding of how they interact with what is around them. For example, DietSense is an online service that allows people to self-monitor their food choices and further request comments from dietary specialists; Family Dynamics helps families and life coaches document key features of a family’s daily interactions, such as colocation and family meals; and Walkability helps residents and pedestrian advocates make observations and voice their concerns about neighborhood
Page 20
S E E I N G Y O U R L I F E I N D A T A 3 walkability and connections to public transit.* All of these projects let people get involved in their communities with just their mobile phones. We use a phone’s built-in sensors, such as its camera, GPS, and accelerometer, to collect data, which we use to provide information. PEIR applies similar principles. A person downloads a small piece of software called Cam- paignr onto his phone, and it runs in the background. As he goes about his daily activi- ties—jogging around the track, driving to and from work, or making a trip to the grocery store, for example—the phone uploads GPS data to PEIR’s central servers every two min- utes. This includes latitude, longitude, altitude, velocity, and time. We use this data to esti- mate an individual’s impact on and exposure to the environment. Environmental pollution sensors are not required. Instead, we use what is already available on many mobile phones—GPS—and then pass this data with context, such as weather, into estab- lished environmental models. Finally, we visualize the environmental impact and expo- sure data. The challenge at this stage is to communicate meaning in data that is unfamiliar to most. What does it mean to emit 1,000 kilograms of carbon in a week? Is that a lot or is that a little? We have to keep the user and purpose in mind, as they drive the system design from the visualization down to the data collection and storage. your.flowingdata (YFD) While PEIR uses a piece of custom software that runs in the background, YFD requires that users actively enter data via Twitter. Twitter is a microblogging service that asks a very simple question: what are you doing right now? People can post, or more appropriately, tweet, what they are doing via desktop applications, email, instant messaging, and most importantly (as far as YFD is concerned), SMS, which means people can tweet with their mobile phones. YFD uses Twitter’s ubiquity so that people can tweet personal data from anywhere they can send SMS messages. Users can currently track eating habits, weight, sleep, mood, and when they go to the bathroom by simply posting tweets in a specific format. Like PEIR, YFD shows users that it is the little things that can have a profound effect on our way of life. During the design process, again, we keep the user in mind. What will keep users motivated to manually enter data on a regular basis? How can we make data collection as painless as possible? What should we communicate to the user once the data has been logged? To this end, I start at the beginning with data collection. Personal Data Collection Personal data collection is somewhat different from scientific data gathering. Personal data collection is usually less formal and does not happen in a laboratory under controlled condi- tions. People collect data in the real world where there can be interruptions, bad network connectivity, or limited access to a computer. Users are not necessarily data experts, so when something goes wrong (as it inevitably will), they might not know how to adjust. * CENS Urban Sensing, http://urban.cens.ucla.edu/
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay

Every 10 yuan is 1 year of VIP; the remainder counts as months (5 yuan is 5 months, 100 yuan is 10 years). Signed-in users are enabled immediately and both you and the admin get an email. Guests receive an ID and are sent to register.

← Back to List