Visualization & streaming: How to use it to your advantage

Importance of data visualization Many people would say that knowledge sharing is one of the noblest things any human being can do. Aside from helping other people grow and be better, by sharing their knowledge people become happier, develop new professional or private connections and bring more purpose to their life. This is why the author of this blog post has always admired teachers and professors who are the most obvious examples of knowledge sharing. In a way, being a data scientist is all about knowledge sharing as well. Put in simple terms, data scientists extract the knowledge from raw data and share it with the world. Knowledge sharing is certainly a complex concept and it can be described as anything but a universal and straightforward process. There are many different theories as to how children and people, in general, learn the easiest and the quickest. While the process undoubtedly varies from individual to individual, there is an idea that the use of visualizations in the learning process helps students to learn faster and better. Check out the following articles for a word or two about this: The Use of Visualization in Teaching and Learning Process for Developing Critical Thinking of Students and Enhancing Learning with Visualization Techniques. Speaking from our own experience, visualizations definitely bring more fun and diversity to the learning process. We would also say that they leave stronger traces in our brains when compared to the usual learning methods, which is why the resulting conclusions are often easier to access afterward. Humans are highly visual creatures, sight is the sense they rely on the most and it brings them the largest share of information about the world around them. Because of this, it makes sense that interesting and concise visualizations could speed up the learning process. Also, it’s very important to keep the visualizations as simple as possible, the idea is to let them tell the story on their own, not to confuse the observers with unnecessary and redundant information. This is very well summed up in a quote by Ben Shneiderman: “The purpose of visualization is insight, not pictures”. Now that we’ve stated how important visualization is, it’s time to introduce some context to this blog post. This is the newest post in the series about our Retail Business Intelligence Platform project. After finishing up the streaming part of this project, about which you can read in our posts about Kafka and Spark, the next step was to generate appealing visuals in order to present our findings. We decided to go with two widely used visualization tools: Tableau and PowerBI. But before we show you some visualizations, a few words need to be said about data visualization in general. About data visualization Data visualization can be more or less effective, depending on the results and types of visuals used. To get the most out of it, one should know which visual should be used in which situation. Also, it is important to note that one of the main perks of visualization is the opportunity to easily send a desired message to someone without the use of words. As we all know, words don’t always come easy and can be tiresome compared to nice colorful visuals. However, sending a message with the help of visualization tools is anything but easy. In order to do it almost flawlessly, one would need to perfectly understand the data, the results, the human mind, and the laws of perception. Many factors should be taken into consideration when constructing visuals and, naturally, time and thought that has to be invested in the process grows with the complexity of visuals and the intricacy of the message one’s trying to send. If you’re one for more looking at visuals than coming up with them, you need to be aware of how easily you can be manipulated by someone showing you only visuals that support his or her agenda. This shouldn’t surprise anyone who knows that statistics and data science are closely related, considering that statistics itself is very prone to manipulation. Famous American novelist Mark Twain has popularized a quote about the manipulative nature of statistics and attributed it to the Victorian era British prime minister Benjamin Disraeli. Benjamin has allegedly once said there are three kinds of lies: “lies, damned lies, and statistics.” This is a peculiarly sensitive subject as manipulation and lying don’t always have to be deliberate. Statisticians and data scientists can be subconsciously biased and can affect the final results and visuals unintentionally. On the other hand, for those who create visuals one of the key pieces of advice is to keep it simple. People can get lost in trying to say too much with a simple visual, which can result in the viewer understanding nothing or getting a message that wasn’t intended. Of course, it’s not easy to make things simple and it takes a lot of experience and understanding. But it’s definitely worth all the effort because obeying simplicity keeps you from going astray by overcomplicating. Interactivity is very welcome as well. It changes the role of the viewer from a passive observer to an active participant. Essentially, it turns the process into an experience for viewers which makes it much more memorable and easy to understand. Tableau examples Just a quick reminder, our project included the unit sales data of more than three thousand products in ten different Walmart stores throughout three different states. We’ve tried many different visuals and charts and here we offer you a glimpse of the few most interesting ones. Figure 1 shows the 5 items with the highest average price for each department. Figure 1: Top Five Most Expensive Items for Each Department Figure 2 gives you two pieces of information at once. It shows the number of items sold and the total revenue for a certain item. Here we’ve picked item HOBBIES_1_345. Figure 2: Total Items Sold and Total Revenue for item HOBBIES_1_345 The next visual is Figure 3