Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Shiny Real Estate App with Zillow API

Matt Dancho
February 05, 2020

Shiny Real Estate App with Zillow API

Zillow is a FREE TOOL with an API that allows Data Scientists to connect to a massive repository of Home Prices and Features. In this lab, we use Shiny, Crosstalk, and Zillow API to create an ML-powered Zillow Home Price Explanation tool.

This is an amazing, end-to-end data science lab. Follow along, and learn how I built a Shiny Real Estate App that uses XGBoost, DALEX, Cross Talk, Plotly, Leaflet, and more!

Matt Dancho

February 05, 2020
Tweet

More Decks by Matt Dancho

Other Decks in Business

Transcript

  1. With the Zillow API Matt Dancho & David Curry Business

    Science Learning Lab Shiny Real Estate App
  2. Shiny API Series • Lab 28 - Shiny Real Estate

    App ◦ Zillow API • Lab 29 - Shiny Oil & Gas App ◦ Quandl API • Lab 30 - Shiny Finance App ◦ Tidyquant API • Lab 31 - Shiny Marketing App ◦ Google Analytics API
  3. Learning Labs PRO Every 2-Weeks 1-Hour Course Recordings + Code

    + Slack $19/month university.business-science.io Lab 27 - Marketing Series, Pt 4 Google Trends Automation with Shiny Lab 26 - Marketing Series, Pt 3 Customer Journey with Machine Learning Lab 25 - Marketing Series, Pt 2 Attribution with ChannelAttribution Lab 24 - Marketing Series, Pt 1 A/B Testing with Infer Lab 23 - SQL Series SQL with BigQuery & Conversion Funnel Lab 22 - SQL Series SQL for Time Series Lab 21 - SQL Series SQL for Data Science Lab 20 - Machine Learning Explainable Machine Learning Lab 19 - Network Analysis Continuous Learning Advanced Topics
  4. Agenda • Demo ◦ Shiny App that Emails Reports to

    Coworkers • Why a Zillow App? ◦ Helping Realtors, Mortgage Companies, & People • ML Workflow ◦ Zillow ◦ Parsnip & DALEX ◦ Shiny + Crosstalk • 30-Min Demo ◦ Zillow API ◦ ML Workflow ◦ Shiny Crosstalk ◦ Real Estate App [LL PRO] • Pro-Tips & Learning Guide
  5. Real Estate Story My wife is a realtor Data is

    a huge part of what she provides her clients. A step in that process is analyzing comparable homes She provides guidance on how to price the home (sellers) and how much to pay for homes (buyers)
  6. Real Estate Story How an app can help Zillow has

    a vast amount of data on homes: • Number of Bedrooms • Square Footage • Neighborhood We can use this data to understand which features drive price Machine Learning & Explainable ML
  7. Workflow Step-By-Step Start Finish 1 2 3 Zillow API Connect

    to Zillow Wrangle & Visualize Data Machine Learning Create a Model that approximates reality Explain the model Shiny App Container for the analysis Production
  8. Pro-Tip #3: Find ways to go beyond reporting Give Businesses

    Apps Businesses can’t scale reports Businesses can scale shiny Let your audience interact with the analysis & make good decisions Use Machine Learning & Explainable ML to help decision making
  9. Advanced Visualization Advanced Data Wrangling Advanced Functional Programming & Modeling

    Advanced Machine Learning Visualization Data Cleaning & Manipulation Data Science Algorithms & Iteration Business Reporting Business Analysis with R (DS4B 101-R) Data Science For Business with R (DS4B 201-R) Web Apps & Shiny Developer (DS4B 102-R + DS4B 202A-R) Web Apps Data Science Foundations 7 Weeks Machine Learning & Business Consulting 10 Weeks Web Application Development 12 Weeks -TRACK Project-Based Courses with Business Application Business Science University R-Track 4-Course R-Track System
  10. Key Benefits - Fundamentals - Weeks 1-5 (25 hours of

    Video Lessons) - Data Manipulation (dplyr) - Time series (lubridate) - Text (stringr) - Categorical (forcats) - Visualization (ggplot2) - Programming & Iteration (purrr) - 3 Challenges - Machine Learning - Week 6 (8 hours of Video Lessons) - Clustering (3 hours) - Regression (5 hours) - 2 Challenges - Learn Business Reporting - Week 7 - RMarkdown & plotly - 2 Project Reports: 1. Product Pricing Algo 2. Customer Segmentation Visualization Data Cleaning & Manipulation Business Reporting Business Analysis with R (DS4B 101-R) Data Science Foundations 7 Weeks Data Science Algorithms & Iteration
  11. Key Benefits Understanding the Problem & Preparing Data - Weeks

    1-4 - Project Setup & Framework - Business Understanding / Sizing Problem - Tidy Evaluation - rlang - EDA - Exploring Data -GGally, skimr - Data Preparation - recipes - Correlation Analysis - 3 Challenges Machine Learning - Weeks 5, 6, 7 - H2O AutoML - Modeling Churn - ML Performance - LIME Feature Explanation Return-On-Investment - Weeks 7, 8, 9 - Expected Value Framework - Threshold Optimization - Sensitivity Analysis - Recommendation Algorithm Data Science For Business (DS4B 201-R) Machine Learning & Business Consulting 10 Weeks Advanced Visualization Advanced Data Wrangling Advanced Functional Programming & Modeling Advanced Data Science End-to-End Churn Project
  12. Key Benefits Learn Shiny & Flexdashboard - Build Applications -

    Learn Reactive Programming - Integrate Machine Learning App #1: Predictive Pricing App - Model Product Portfolio - XGBoost Pricing Prediction - Generate new products instantly App #2: Sales Dashboard with Demand Forecasting - Model Demand History - Segment Forecasts by Product & Customer - XGBoost Time Series Forecast - Generate new forecasts instantly Shiny Apps for Business (DS4B 102-R) Web Application Development 4 Weeks Web Apps Machine Learning
  13. Key Benefits Frontend + Backend + Production Deployment Frontend for

    Shiny - Bootstrap Backend for Shiny - MongoDB - Dynamic UI - User Authentication - Store & Write User Data Production Deployment - AWS - EC2 Server - VPC Connection - URL Routing Shiny Apps for Business (DS4B 202A-R) Web Application Development 6 Weeks