November 06, 2026
Description: This slide frames the session as a progression. A simulation helps us understand a problem, a dashboard communicates it, and an app lets a stakeholder interact with it. Every example later in the deck is a working project you can open and click through.
Core idea
Typical business uses
Description: Simulation is the safest way to learn an analytic method, because the “true” answer is known in advance. In my teaching I use simulated datasets for segmentation and conjoint exercises so students can check whether their model recovers the pattern we built in. Example 5 later in the deck is a simulation app built the same way.
Description: A dashboard is not a collection of charts. It is an answer to a specific question. These five steps are the workflow behind every project in this deck.
| R with Shiny | Python with Google Colab | |
|---|---|---|
| Strength | Interactive web apps and polished statistical graphics | Notebook-style walkthroughs that run in the browser |
| Sharing | A public link on shinyapps.io | A shareable Colab link or a notebook on GitHub |
| Setup for users | None, just open the link | A Google account, then run the cells |
| Best for | Stakeholder-facing dashboards | Teaching, reproducible analysis, text and review mining |
Description: The two tools complement each other. Use Shiny when the audience wants to click and explore, and Colab when they want to follow and reproduce the analysis step by step. Neither requires installing software.
Description: Shiny turns an R analysis into a web application without requiring web-development skills. The four examples that follow all use this structure, applied to search marketing, local real estate, finance, and search trends.
https://utjimmyx.shinyapps.io/serp/
Description: I designed this app recently as a companion to my web scraping and SEO teaching material. It shows how scraped search data can move from a table in R to a tool a marketer can use without writing code.
https://7d8g6z-zhenning-xu.shinyapps.io/property/
Description: I created this app recently as a local, practical case. It shows how an analytics project can serve a specific community and business question, and gives students a model for choosing a regional topic of their own.
https://7d8g6z-zhenning-xu.shinyapps.io/stocks_2/
Description: Financial data is a natural fit for dashboards because the audience almost always wants to change the ticker or the date range. A few well-chosen controls can replace many static charts.
https://zhenningxu.shinyapps.io/app_GTrends/
Description: Search interest is a useful proxy for consumer attention. This app connects to our difference-in-differences and campaign-analysis exercises, where trends data serve as the outcome measure.
Description: Colab removes the setup barrier that slows down many classes. The next two slides show two Python notebooks stored on GitHub that follow this pattern.
Open the battery life notebook on GitHub
Description: This is the simulation example in the deck and the Python counterpart to the Shiny apps. Instead of a web interface, the reader runs the notebook, changes the assumptions, and watches how the simulated battery life responds.
Description: Review data is a rich source of customer feedback and connects to text analysis and natural language processing (NLP) methods. Because the notebook lives on GitHub, students can view it, download it, and open it in Colab.
| # | Project | Tool | Link |
|---|---|---|---|
| 1 | SERP analysis app | R Shiny | Open app |
| 2 | Bakersfield real estate agents | R Shiny | Open app |
| 3 | Stocks dashboard | R Shiny | Open app |
| 4 | Google Trends app | R Shiny | Open app |
| 5 | Battery life simulation app | Python | Open notebook |
| 6 | Customer review analysis | Python | Open on GitHub |
Description: A reference list. Each project answers a different business question, but all follow the same path from data to a shareable link.
Description: These principles apply equally to a Shiny app and a Colab notebook. They are also the grading criteria I suggest for student projects.
Description: Each idea combines a simulation or dataset, an analysis method, and a published deliverable. Students can share finished work through RPubs, shinyapps.io, or GitHub.
Description: The repositories and publications above hold my teaching materials and example projects. Thank you, and questions are welcome.