Search Interfaces and Visualization


Search Interfaces and Visualization

Michael
Today we're exploring exploratory data analysis, or EDA, and information visualization with ideas from Professor Marti Hearst of Berkeley's School of Information. Her research focuses on search user interfaces, information visualization, natural language processing, and improving MOOCs. She also wrote the first book on search user interfaces and has received major honors, including an ACM fellowship, an NSF Career Award, an IBM Faculty Award, Google research awards, and teaching awards.

Hope
And the central question is wonderfully practical: why visualize data at all? Why not simply apply statistics? The main reason is to gain insight. Sometimes the visual system reveals information that other techniques do not. But visualization is not always the answer; its value depends on the problem and on what you can learn from seeing the data.

Michael
A simple chemistry example makes that clear. The molecular formula C4H4 can have two different structural representations, and the layouts correspond to butane and isobutane. The same formula written as text does not communicate the same information as a structural diagram. Seeing the arrangement tells you something about the substance that the characters alone conceal.

Hope
The classic statistical example is Anscombe's quartet. It consists of four sets of x-y pairs with the same mean, the same standard deviation, the same regression line, and the same R-squared statistic. If you only inspect those summaries, the data sets look essentially identical.

Michael
But plot the pairs on coordinate axes and they look radically different. One may show a linear relationship, another may be curved, another may be driven by an outlier, and another may have a different arrangement altogether. The important lesson is not that statistics are useless. It is that summary statistics can hide behavior that a visualization makes immediately visible.

Hope
That lesson goes back to 1973, but the history behind it is important. People once explored small data sets by looking closely at the numbers. Then more powerful statistical methods became common, and analysts increasingly focused on identifying distributions and applying preset techniques, such as asking whether data were Poisson or Gaussian.

Michael
Computers reinforced that shift because standard statistical procedures were easier to run than exploratory tools. More recently, though, computers and software have become powerful enough to load and examine large data sets quickly in many different ways. That change is quite recent, even if current students may assume these tools have always worked smoothly.

Hope
The tools have arrived faster than our shared understanding of how to use them well. We can explore much larger data sets much more quickly, but the community still lacks a complete account of what good exploratory data analysis looks like and how to teach it. That gap is the research problem at the center of this talk.

Michael
We also need to distinguish two purposes of visualization. One is analysis: the analyst uses visualizations to understand the data and solve a problem. The other is presentation: the analyst already understands the results and creates a visualization so other people can understand them.

Hope
The final products may sometimes look alike—both could include bar charts, for example—but the processes are different. Presentation emphasizes the end result and interpretability. Exploratory analysis emphasizes the process of investigating, questioning, and learning what the data contain, especially early in an analysis when the answers are not yet known.

Michael
A presentation assignment can make that distinction concrete. Students might receive business data and be asked to design a visualization that answers questions such as which departments were over budget in the first half of the year and under budget in the second, or which department was over budget every month except November.

Hope
The visualization can be evaluated objectively by showing it to people and checking whether they answer the questions correctly. If users cannot answer, the design has failed its usability goal. There is no need for the instructor simply to judge which chart looks best, and there is not necessarily one correct visual design: successful submissions might include line graphs, bar charts, or even a heat map.

Michael
That kind of assignment is about presentation, because the underlying business data and questions are already established. The challenge is to communicate known answers clearly. EDA begins earlier, when you are still trying to understand what the data are about.

Hope
John Tukey is a major intellectual influence here. His advice was essentially to look at the data to see what it seems to say. EDA comes before confirmatory techniques: you get to know the lay of the land, think about what might be present, and investigate before committing to a particular hypothesis or statistical procedure.

Michael
That investigation can resemble detective work. Data analyst Al Inselberg, for example, writes about approaching data without making too many assumptions and trying to discover what might be there. But this creates a genuine tension: statisticians may warn that exploratory analysis becomes a fishing expedition, where you search until you find noise that looks interesting.

Hope
That tension is still unresolved. EDA is valuable, but it is not yet fully understood as a disciplined practice. Analysts need ways to explore without fooling themselves, and they need to know when a pattern is meaningful, when it is an error, and when they have simply searched too many possibilities.

Michael
There are many reasons to explore data. You might optimize a function, such as choosing materials and manufacturing parameters for inexpensive light bulbs that do not break too often and are not too toxic. You might create a narrative, plan a strategy, monitor a situation, investigate possible causal relationships, detect fraud, understand why a disease outbreak is happening, or solve a crime.

Hope
And the activities of EDA are equally broad. You create overviews, get familiar with the variables, look for trends and tendencies, make discoveries, find anomalies and outliers, identify errors, and formulate hypotheses. You may explore those hypotheses, refute them, undermine them, or reformulate them as the data suggest new directions.

Michael
The difficulties are substantial. EDA can be time-intensive and ad hoc. You may not know when you are finished, whether you are wrong, whether you have missed something, or whether you are fooling yourself. It is also unfriendly to beginners because there is no single fixed recipe that guarantees a complete analysis.

Hope
Teaching it therefore requires more than demonstrating a visualization tool. Hearst describes EDA as both an attitude and a skill. Students have to shift out of the mindset used for a straightforward presentation assignment and become comfortable asking open questions, inspecting data, following leads, and changing direction.

Michael
Her revised teaching approach was highly interactive and activity-centered. Students completed activities before every class, worked actively during class, coded and designed frequently, and received regular feedback. They also examined and commented on other students' work instead of waiting several weeks between assignments and feedback.

Hope
One especially effective step was having students read earlier EDA assignments and write a short paragraph about two of them. The instructor checked whether students had misunderstood the purpose of EDA and corrected those misunderstandings before they began their own projects. That early feedback prevented many students from repeating the procedures they had used for a conventional visualization task.

Michael
Students then worked with well-structured data sets, although they could choose their own if they wished. They used readings about EDA and worked with Tableau, which was considered a useful tool despite its difficulties. The assignments gave exploration some structure: formulate hypotheses, investigate them, let the data determine the next steps, verify or refute the hypotheses, formulate new ones when appropriate, and create dashboards summarizing the results.

Hope
A strong example came from a student named Faye, who analyzed data surrounding a threatened BART strike. Public claims suggested that union workers were overpaid, that management was too large, and that union employees received excessive overtime. Instead of accepting those claims, she turned them into explicit questions and investigated them with visualizations.

Michael
Her first question was whether union workers earned more than non-union workers. The data did not support that claim; the non-union workers in her comparison earned substantially more. She then examined whether BART was management-heavy and again found that the answer was no: most employees were rank-and-file workers.

Hope
She also investigated overtime. Union workers generally did not receive unusually large overtime pay, except in transportation operations, where their base pay was low. The exploration did reveal striking outliers among some non-union workers, including a finance employee whose base pay was about thirty-four thousand dollars while overtime pay approached three hundred thousand.

Michael
That outlier prompted further investigation rather than an immediate conclusion. The unusual payment had an innocuous explanation connected to accumulated unused vacation and sick time over many years, and the issue had also been investigated. This is a key feature of EDA: an anomaly is a question to examine, not automatically proof of misconduct.

Hope
The broader lesson was that the popular complaints were not supported by the data, while other interesting patterns were. The student did not simply produce an attractive dashboard; she used visualization to test claims, follow unexpected findings, and discover what the data actually showed.

Michael
Other student projects illustrated the same process. One analysis of Oakland city data suggested that a mattress dumped in an area where mattresses are commonly reported might be removed more quickly than one dumped in an unusual location. A similar pattern appeared in San Francisco data for graffiti: familiar locations seemed to receive quicker cleanup than unusual ones.

Hope
Students also incorporated EDA into final projects even when it was not required. Projects examined wildfires and drought, BART travel patterns, and which stations riders traveled between. One BART project explored differences between male and female riders and found a pattern with more women than men riding BART, a relationship the students encountered through exploration rather than by beginning with that specific question.

Michael
The research seminar asked what analysts actually do when they explore. Students independently performed EDA on similar data sets and recorded their processes. They behaved very differently and made important mistakes, showing that even trained analysts do not necessarily follow a common sequence of actions.

Hope
One student, Hassan, conducted a meticulous analysis of SEC flight data. He carefully examined the available dimensions and documented his actions in detail. Yet he failed to notice that the data represented only one month—the month containing September 11—and therefore missed the significance of a gap in takeoffs and landings during several days.

Michael
Another student, Anna, noticed that omission. The example shows why an analyst must understand the scope and structure of a data set before interpreting patterns. A careful process is not enough if the analyst never checks what period, population, or slice of data is actually present.

Hope
The students also analyzed Florida presidential election data containing overvotes and undervotes. They spent time exploring before consulting Wikipedia to understand what those terms meant, and then recognized that the variables represented error data. When the researchers mapped the students' actions, they found very little commonality in how people moved through the analysis.

Michael
To describe those activities, the group developed a taxonomy of EDA actions, adapted from work by IBM researchers Götz and Zhou. The taxonomy could be viewed at a high level and then explored in greater detail, with an interactive viewer allowing analysts to drill down through levels of action. This is an attempt to make the process of EDA more visible and understandable.

Hope
Another research direction was metadata landscaping, inspired by Steven Few's discussion of exploratory vistas. The goal is to give analysts a visual feeling for the metadata before they start asking questions. An interface might let someone select variables related to a question—such as department, amount, and division—and then ask whether the data set can actually answer the question.

Michael
That step directly addresses the kind of mistake made in the flight-data example. Before analyzing, you inspect the variables, their profiles, and the shape of the collection. A related visual summary for data such as the Titanic data can show how values are distributed and where categories or age ranges occur, making gaps and concentrations easier to notice.

Hope
There are also related efforts in data cleaning, data overviews, and other approaches to helping people explore a data set responsibly. The common idea is to provide guidance before and during exploration, rather than handing beginners a powerful tool and expecting them to discover a sound method on their own.

Michael
A particularly interesting approach is crowdsourced research. Different research teams receive the same question and the same data set, then analyze it independently and report their methods. In one project, teams investigated whether soccer referees were more likely to give red cards to dark-skinned players than to light-skinned players.

Hope
The project made the teams' data, techniques, and results available through a wiki. The teams often agreed on the main research question, though not always, and their analyses varied considerably. Comparing those approaches helps researchers understand how much conclusions depend on analytic choices and how data analysis differs from one team to another.

Michael
There is also an organizational challenge. Exploratory tools can reveal things that people would prefer not to share. In a large automobile company, for example, analysis exposed a troubling cost pattern that made a country manager unhappy. More broadly, organizations may resist findings that reveal errors or concealed problems.

Hope
One possible response is to have multiple groups analyze the data and present their results, rather than placing all responsibility and pressure on one team. Independent analyses cannot eliminate organizational resistance, but they may make errors harder to hide and give decision-makers a stronger basis for examining uncomfortable findings.

Michael
Finally, useful analysis must lead somewhere. In a business setting, a beautiful visualization is not enough if it does not drive a decision, create value, or lead to action. Dashboards should help people identify what deserves attention—for example, a key number, a meaningful trend, or the fact that nothing important has changed.

Hope
That is why usability matters throughout the process. A visualization should help its audience answer relevant questions, not merely look impressive. The objective evaluation assignment embodies this principle: if people cannot answer questions about the data, the design has not done its job.

Michael
The same principle explains why visualization can matter in high-stakes settings. The difference between a chemical formula written as text and a structural representation can be the difference between understanding or missing a meaningful distinction. Visualization is valuable when it supplies insight that supports better understanding, decisions, or action.

Hope
So the closing message is that EDA has gained momentum because new data, faster computing, and powerful tools make exploration easier than before. But our understanding and teaching methods have not kept pace. We need clearer guidelines, better tools for guiding exploration, and courses that help learners develop both the habits and the judgment required to explore responsibly.

Michael
And the practical habit to remember is simple: look at your data. Do not rush straight to a statistical procedure or a polished dashboard. First understand what is present, question what you see, investigate anomalies, test and revise hypotheses, and keep asking whether the result is genuinely useful.

Ask anything
We've read this whole study set, so questions about it get the best answers.