AI_Chuong 1
AI_Chuong 1
AI_Chuong 1
University Of Economics
THE FACUTY OF ELECTRONIC COMMERCE
AI in Business
AI in Business introduction
Total Percent
Technology Total Jobs Research Research
Jobs Jobs
Number of research jobs in data by industry and technology (2015-2018) Research by Goldfarb et al
(2019)
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
AI and Business
• AI (specifically ML) shows early indicators of being a general-purpose
technology
Content from: “Could Machine Learning Be a General-Purpose Technology? Evidence from Online Job Postings” by Goldfarb, Taska &
Teodoridis
KHOA THƯƠNG MẠI ĐIỆN TỬ Content/Quote from: https://www.simplilearn.com/introduction-to-digital-transformation-tutorial
THE FACUTY OF ELECTRONIC COMMERCE
University Of Danang
University Of Economics
THE FACUTY OF ELECTRONIC COMMERCE
AI in Business
Big Data Overview
• Data has been very important to businesses for multiple decades, but the
emphasis on big data is relatively new
source: https://www.cbpr.me/big-data-and-public-relations/4vs/
https://www.datasciencecentral.com/profiles/blogs/data-veracity
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Drivers of Big Data
• Computing capacity: the capacity to store data has increased and the
associated cost has decreased
• Data generation: the world is going digital, more people and things are
connected than ever before
Content/quotes from: “Big Data” by VictorMayer- Schonberger and Kenneth Cukier, Images: https://www.axios.com/fewer-people-use-facebook-for-news-
13273e71-ab51-49cc-b4ee-1588a241c0c8.html, https://www.imore.com/best-fitbit/
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Drivers of Big Data
Availability
Availability
AI in Business
Big Data Analysis
Tool Developers
Data Experts: Data architects, governance, policy
Decision Making - Exec. & Management: Apply data to solve business issues
Industry Vertical Domain Expertise: Identify relevant business issues, ask the right questions
“Data Mining”
Machine Learning
AI in Business
Data Management Tools
• Database
• A structured collection of data
• Example: an Excel spreadsheet
• Database Management System (DBMS)
• Allow users to access and manage the database
• Example: Excel, Microsoft, Oracle, MongoDB
• Often referred to as a database
• Data warehouse
• A particular kind of DBMS
• Specialized in the type of data it stores - historic data from many sources
• Specialized in the purpose it serves - analytics
• Example: Azure SQL Data Warehouse, Google BigQuery, Snowflake,
Amazon Redshift
source: https://www.dremio.com/what-is-a-data-warehouse/
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Value of a Data Warehouse
source: https://www.dremio.com/what-is-a-data-warehouse/
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Open Source Big Data Tools: Hadoop and Spark
• Big data tools like Hadoop serve two main purposes, storage and processing
• Storage - lots of data (usually in a distributed fashion)
• Processing - involves distributed processing across nodes, parallelizing
the data process as much as possible
• Popular Hadoop distribution: Cloudera
source: https://hci.stanford.edu/courses/cs448g/a2/files/map_reduce_tutorial.pdf
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Open Source Big Data Tools: Hadoop and Spark
AI in Business Introduction
Data Management Infrastructure
• Database:
• “A structured collection of data”
• Example: an Excel spreadsheet
• Database Management System (DBMS):
• “Allows user to access and manage the database”
• Examples: Excel, Oracle, MongoDB
• Often also referred to as a database
• Data Warehouse:
• A particular kind of DBMS, “specialized in the data it stores - historic data
from many sources - and the purpose it serves - analytics”
• Azure SQL Data Warehouse, Google BigQuery, Snowflake, Amazon
Content/quotes from: https://www.dremio.com/what-is-a-data-
Redshift warehouse/
source: https://www.dremio.com/what-is-a-data-warehouse/
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Value of Data Warehouses
AI in Business Introduction
Data Analysis: Extracting Intelligence from Big Data
• The next step, and the core business opportunity, involves using data to
make predictions about the future, called predictive analytics
• Can we predict demand?
• Can we predict fraud?
Content/quotes from: “Prediction Machines” by Ajay Agrawal, Joshua Gans, and Avi Goldfarb
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Predictive Analytics: Amazon Recommendations
Shop and
Visit website Pay for items Items shipped
place in cart
Amazon’s Recommendations
Content/quotes from: “Prediction Machines” by Ajay Agrawal, Joshua Gans, and Avi Goldfarb, Images: https://www.netsville.com/2018/11/13/amazon-hq2-bringing-25k-jobs-to-2-new-east-coast-
locations/amazon-logo-square/, https://icon-library.net/icon/shopping-icon-on-amazon-25.html, https://www.imore.com/amazon-app-everything-you-need-know,
https://services.amazon.com/handmade/getting-started-guide.html, https://www.mageplaza.com/blog/product-recomendation-how-amazon-succeeds-with-it.html
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Predictive Analytics: Amazon Payments
• Big data & predictive analytics have direct benefits for Amazon
• Helpful recommendations ➜ more shoppers and purchases
• Accurate fraud predictions ➜ fewer losses & happier customers
• Perhaps most importantly, prediction can be a virtuous cycle
• Better predictions ➜ more shoppers ➜ more data ➜ better
predictions
Content/quotes from: “Prediction Machines” by Ajay Agrawal, Joshua Gans, and Avi Goldfarb
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
University Of Danang
University Of Economics
THE FACUTY OF ELECTRONIC COMMERCE
AI in Business Introduction
Introduction to Artificial Intelligence
Definition of AI
• “The theory and development of computer systems
able to perform tasks that normally require human
intelligence” - Merriam Webster
• Understanding language, reasoning, speech
recognition, decision-making, navigating the visual
world, manipulating physical objects, etc.
source: https://www.securitymagazine.com/articles/90871-whats-the-real-role-of-ai-and-ml-in-cybersecurity
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Intelligence on a Spectrum
Origins
• Alan Turing, Cryptography
• Can machines think?
• “My contention is that machines can be constructed
which will simulate the behavior of the human mind
very closely.”
• Proposed the Turing test for machine intelligence
(1950) - Can machines do well in imitation games?
• Soon after, a workshop called the Dartmouth Summer Research Project on
Artificial Intelligence was held, which historians believe is what coined the
term AI
source: “A Human’s Guide to Machine Intelligence” by Kartik Hosanagar
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
“ Calling it AI made it extremely ambitious, and it inspired
many people to enter the field, which has been responsible
for a lot of the progress.”
— PEDRO DOMINGOS
Much of what the general public knows about AI is about AI playing popular
games, which has been widely covered in the press
Images: https://www.nytimes.com/2011/02/17/science/17jeopardy-watson.html
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Progression of AI in Games
AI in Business Introduction
Machine Learning Overview
• Idea: Learning from data where you have cleanly labeled outputs and
inputs
• Inputs can be referred to as features/covariates
• Outputs are often called targets (this is what we are trying to predict)
• Example - Email data
• The output we are trying to predict is whether an email is spam or not
• The inputs, or features/covariates, are the actual text in the email
• Supervised learning is used when there is cleanly labeled past data,
which have a “correct” answer
• Certain data have been labeled as “spam”
• Certain other data have been labeled as “not spam”
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Supervised Learning Example
• Suppose you have two ad copies and you don’t know which will attract
more clicks (and therefore visitors to your website)
• Traditional A/B testing involves showing ad A 50% of the time and ad B
50% of the time, and then assessing which ad performed better
Ad Ad B
A
B performs better than A
The A/B test line is midway between the A
and B lines as it is 50% A and 50% B
KHOA THƯƠNG MẠI ĐIỆN TỬ
THE FACUTY OF ELECTRONIC COMMERCE
Reinforcement Learning
• Machine learning can improve upon A/B testing through bandit algorithms
• Bandit algorithms update beliefs based upon performance
• They spend more time on best
performers early on while still
learning and improving over time
• The bandit begins by showing
50% A & 50% B, but slowly
starts allocating more and more
traffic to the higher-performing
ad as it learns and confirms
which one is better
AI in Business
Reinforcement Learning
AI in Business
A Detailed View of Machine Learning
What is accuracy?
• Ability to make correct predictions on data you haven’t seen
Var1 Var2 Var3 Var4 Outcome
Quantity of data
• Number of distinct observations
Var1 Var2 Var3 Var4 Outcome
Quantity of data
• Number of distinct observations
Var1 Var2 Var3 Var4 Outcome
Quantity of data
• Number of distinct observations
• Different characteristics about your observations
Var1 Var2 Var3 Var4 Outcome
Quantity of data
• Number of distinct observations
• Different characteristics about your observations
Var1 Var2 Var3 Var4 Var5 Var6 Var7 Var8 Outcome