SlideShare a Scribd company logo
1 of 31
Download to read offline
R Programming
Topic: Analyzing a dataset
Dataset: Amazon Alexa Reviews
Introduction
 This dataset consists of a nearly 3000 Amazon customer reviews (input text),
and 5 variables which are star ratings, date of review, variant, verified reviews
and feedback of various Amazon Alexa products like Alexa Echo, Echo dots,
Alexa Firesticks etc.
Explanation of variables:
1. Star ratings(num): The star ratings are the ratings given by customers to the various
products of amazon after testing and using them and generally range from 1 to 5.
2. Date of review(num): The date on which the customers are reviewing the various products
of amazon.
3. Variation(char): The different variants of the products of amazon. For E.g.: Black variant of
echo show & white variant of echo show are two different variants of echo show.
4. Verified reviews(char): These reviews are given by customers or official personnel who
have genuinely tested the various amazon products and are marked as verified by Amazon.
5. Feedback(num): This variable is having two face value i.e. 1 and 0.
• 1 indicates a positive feedback from the customer.
• 0 indicates a negative feedback from the customer.
Amazon Alexa
 Amazon Alexa known simply as Alexa is a virtual assistant developed by Amazon,
first used in the Amazon Echo and the Amazon Echo Dot smart speakers developed
by Amazon Lab126.
 It is capable of voice interaction, music playback, making to-do lists, setting alarms,
streaming podcasts, playing audiobooks, and providing weather, traffic, sports, and
other real-time information, such as news.
 Alexa can also control several smart devices using itself as a home
automation system.
Objectives
 Discover insights into consumer reviews and assist with machine learning models.
 Train your machine models for sentiment analysis.
 Analyze customer reviews how many positive reviews .
 How many negative reviews.
 Bringing out relation between variables.
 Summarizing data and finding patterns.
 Analyzing patterns through plot of graph.
Sentiment Analysis
 Sentiment analysis is the measurement of positive and negative language. Sentiment
analysis is also known as opinion mining.
 It is a way to evaluate written or spoken language to determine if the expression is
favorable, unfavorable, or neutral, and to what degree.
 Sentiment analysis uses data mining processes and techniques to extract and capture
data for analysis in order to discern the subjective opinion of a document or collection
of documents, like blog posts, reviews, news articles and social media feeds like tweets
and status updates.
Sentiment
analysis for
facebook
Sentiment
analysis for
twitter
Intent analysis
of facebook
comments
install.packages(“kSentiment”)
library(kSentiment)
 Using these commands you can install
the Sentiment package and can
perform sentiment analysis commands.
Applications of
sentiment analysis
Features of Amazon Alexa
Products of Amazon
ECHO DOT
ECHO PLUS AMAZON ECHO
ECHO SPOT
FIRE TV STICK ECHO SHOW
Based on their experience, the customers give reviews, feedback and
star ratings to the various products they have used and tested.
Structure & Summary function
Vector function
which.min & which.max function
Subset Function
Plot, histogram & boxplot function
Most widely used
variations are black
dot and charcoal
fabric.
install.pakage(“tidyverse”)
library(tidyverse)
hist(amazon_alexa$i..rating,
xlab=“Alexa Rating”,
ylab=“Number of Ratings”,
main=“Bar Chart of Alexa
Ratings”)
install.packages(“tidytext”)
library(tidytext)
unnest_tokens() function
Table function
Tapply () function
 Syntax: Tapply(x, INDEX, FUN = NULL, …, default = NA, simplify = TRUE)
1. X = a vector,
2. INDEX = list of one or more factor,
3. FUN = function or operation that needs to be applied.
Lets understand with data :-
Now we have to summarize data by date with rating to see interesting patterns
Regression Analysis
• Regression Analysis is a very widely used statistical tool to establish a relationship model
between two variables. One of these variable is called predictor variable whose value is gathered
through experiments. The other variable is called response variable whose value is derived from
the predictor variable.
• Syntax: Lm(formula,data)
• Formula is a symbol presenting the relation between x and y.
• Data is the vector on which the formula will be applied.
• Adjusted r square:-the adjusted r-squared compares the explanatory power of regression models
that contain different numbers of predictors.
• Interpret the p-values:-a low p-value (< 0.05) indicates that you can reject the null hypothesis. In
other words, a predictor that has a low p-value is likely to be a meaningful addition to your model
because changes in the predictor's value are related to changes in the response variable.
Linear regression
Conclusion
 By analyzing this dataset named “Amazon Alexa” we can give the potential
customers a clear understanding of the product by providing them the reviews of
those customers who already have Alexa.
 This analysis shows that the products star ratings have maximum frequency at 5 star
and minimum frequency at 2 star, this takes us to the conclusion that the product is
liked by the customers.
 From the histogram we had plotted for the variable star ratings, a conclusion can be
drawn that almost 2500 customers out of the total 3150 customers have given a 5-star
rating to the various products of amazon, thus making it the most frequent star rating
given by the customers to the products.
 Relationships between the different variables were analyzed.
 The data was summarized and interesting patterns were obtained.
 These patterns were then further analyzed by using various plot functions such as
histogram, boxplot, etc.
Thank You!!

More Related Content

Similar to amazonalexa-191018052738 (5).pdf

Generating test data for Statistical and ML models
Generating test data for Statistical and ML modelsGenerating test data for Statistical and ML models
Generating test data for Statistical and ML modelsVladimir Ulogov
 
Lobsters, Wine and Market Research
Lobsters, Wine and Market ResearchLobsters, Wine and Market Research
Lobsters, Wine and Market ResearchTed Clark
 
Weka term paper(siddharth 10 bm60086)
Weka term paper(siddharth 10 bm60086)Weka term paper(siddharth 10 bm60086)
Weka term paper(siddharth 10 bm60086)Siddharth Verma
 
Yelp dataset challenge
Yelp dataset challengeYelp dataset challenge
Yelp dataset challengeArnabKMCS156
 
Yelp dataset challenge
Yelp dataset challengeYelp dataset challenge
Yelp dataset challengearnkmish
 
Collaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFCollaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFYusuke Yamamoto
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codepradesigali1
 
It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.Alex Powers
 
Online feedback correlation using clustering
Online feedback correlation using clusteringOnline feedback correlation using clustering
Online feedback correlation using clusteringawesomesos
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataAbhishek M Shivalingaiah
 
Software fundamentals
Software fundamentalsSoftware fundamentals
Software fundamentalsSusan Winters
 
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment AnalysisIRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment AnalysisIRJET Journal
 
2005-Model-guided information discovery for intelligence analysis-p269-alonso
2005-Model-guided information discovery for intelligence analysis-p269-alonso2005-Model-guided information discovery for intelligence analysis-p269-alonso
2005-Model-guided information discovery for intelligence analysis-p269-alonsoHua Li, PhD
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation SystemAnamta Sayyed
 

Similar to amazonalexa-191018052738 (5).pdf (20)

Ethical solutions services
Ethical solutions servicesEthical solutions services
Ethical solutions services
 
Generating test data for Statistical and ML models
Generating test data for Statistical and ML modelsGenerating test data for Statistical and ML models
Generating test data for Statistical and ML models
 
Ethical solutions services
Ethical solutions servicesEthical solutions services
Ethical solutions services
 
Lobsters, Wine and Market Research
Lobsters, Wine and Market ResearchLobsters, Wine and Market Research
Lobsters, Wine and Market Research
 
Weka term paper(siddharth 10 bm60086)
Weka term paper(siddharth 10 bm60086)Weka term paper(siddharth 10 bm60086)
Weka term paper(siddharth 10 bm60086)
 
Poster (2)
Poster (2)Poster (2)
Poster (2)
 
Yelp dataset challenge
Yelp dataset challengeYelp dataset challenge
Yelp dataset challenge
 
Yelp dataset challenge
Yelp dataset challengeYelp dataset challenge
Yelp dataset challenge
 
Collaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFCollaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CF
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source code
 
Amazon seniment
Amazon senimentAmazon seniment
Amazon seniment
 
It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.It's Not You. It's Your Data Model.
It's Not You. It's Your Data Model.
 
Thinking in react
Thinking in reactThinking in react
Thinking in react
 
Online feedback correlation using clustering
Online feedback correlation using clusteringOnline feedback correlation using clustering
Online feedback correlation using clustering
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big Data
 
Software fundamentals
Software fundamentalsSoftware fundamentals
Software fundamentals
 
Sentiment Analysis - Amazon Alexa Reviews
Sentiment Analysis - Amazon Alexa ReviewsSentiment Analysis - Amazon Alexa Reviews
Sentiment Analysis - Amazon Alexa Reviews
 
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment AnalysisIRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
 
2005-Model-guided information discovery for intelligence analysis-p269-alonso
2005-Model-guided information discovery for intelligence analysis-p269-alonso2005-Model-guided information discovery for intelligence analysis-p269-alonso
2005-Model-guided information discovery for intelligence analysis-p269-alonso
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 

Recently uploaded

Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1T.D. Shashikala
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksIJECEIAES
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalSwarnaSLcse
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemSampad Kar
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2T.D. Shashikala
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxRashidFaridChishti
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.benjamincojr
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...drjose256
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashidFaiyazSheikh
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdfKamal Acharya
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docxrahulmanepalli02
 
Low Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s HandbookLow Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s HandbookPeterJack13
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxMANASINANDKISHORDEOR
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...Amil baba
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Nitin Sonavane
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024EMMANUELLEFRANCEHELI
 

Recently uploaded (20)

Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Low Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s HandbookLow Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s Handbook
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 

amazonalexa-191018052738 (5).pdf

  • 3. Introduction  This dataset consists of a nearly 3000 Amazon customer reviews (input text), and 5 variables which are star ratings, date of review, variant, verified reviews and feedback of various Amazon Alexa products like Alexa Echo, Echo dots, Alexa Firesticks etc.
  • 4. Explanation of variables: 1. Star ratings(num): The star ratings are the ratings given by customers to the various products of amazon after testing and using them and generally range from 1 to 5. 2. Date of review(num): The date on which the customers are reviewing the various products of amazon. 3. Variation(char): The different variants of the products of amazon. For E.g.: Black variant of echo show & white variant of echo show are two different variants of echo show. 4. Verified reviews(char): These reviews are given by customers or official personnel who have genuinely tested the various amazon products and are marked as verified by Amazon. 5. Feedback(num): This variable is having two face value i.e. 1 and 0. • 1 indicates a positive feedback from the customer. • 0 indicates a negative feedback from the customer.
  • 5. Amazon Alexa  Amazon Alexa known simply as Alexa is a virtual assistant developed by Amazon, first used in the Amazon Echo and the Amazon Echo Dot smart speakers developed by Amazon Lab126.  It is capable of voice interaction, music playback, making to-do lists, setting alarms, streaming podcasts, playing audiobooks, and providing weather, traffic, sports, and other real-time information, such as news.  Alexa can also control several smart devices using itself as a home automation system.
  • 6. Objectives  Discover insights into consumer reviews and assist with machine learning models.  Train your machine models for sentiment analysis.  Analyze customer reviews how many positive reviews .  How many negative reviews.  Bringing out relation between variables.  Summarizing data and finding patterns.  Analyzing patterns through plot of graph.
  • 7. Sentiment Analysis  Sentiment analysis is the measurement of positive and negative language. Sentiment analysis is also known as opinion mining.  It is a way to evaluate written or spoken language to determine if the expression is favorable, unfavorable, or neutral, and to what degree.  Sentiment analysis uses data mining processes and techniques to extract and capture data for analysis in order to discern the subjective opinion of a document or collection of documents, like blog posts, reviews, news articles and social media feeds like tweets and status updates.
  • 9. install.packages(“kSentiment”) library(kSentiment)  Using these commands you can install the Sentiment package and can perform sentiment analysis commands. Applications of sentiment analysis
  • 11. Products of Amazon ECHO DOT ECHO PLUS AMAZON ECHO ECHO SPOT
  • 12. FIRE TV STICK ECHO SHOW Based on their experience, the customers give reviews, feedback and star ratings to the various products they have used and tested.
  • 17.
  • 18. Plot, histogram & boxplot function
  • 19. Most widely used variations are black dot and charcoal fabric. install.pakage(“tidyverse”) library(tidyverse)
  • 20. hist(amazon_alexa$i..rating, xlab=“Alexa Rating”, ylab=“Number of Ratings”, main=“Bar Chart of Alexa Ratings”)
  • 22.
  • 24. Tapply () function  Syntax: Tapply(x, INDEX, FUN = NULL, …, default = NA, simplify = TRUE) 1. X = a vector, 2. INDEX = list of one or more factor, 3. FUN = function or operation that needs to be applied. Lets understand with data :- Now we have to summarize data by date with rating to see interesting patterns
  • 25.
  • 26. Regression Analysis • Regression Analysis is a very widely used statistical tool to establish a relationship model between two variables. One of these variable is called predictor variable whose value is gathered through experiments. The other variable is called response variable whose value is derived from the predictor variable. • Syntax: Lm(formula,data) • Formula is a symbol presenting the relation between x and y. • Data is the vector on which the formula will be applied. • Adjusted r square:-the adjusted r-squared compares the explanatory power of regression models that contain different numbers of predictors. • Interpret the p-values:-a low p-value (< 0.05) indicates that you can reject the null hypothesis. In other words, a predictor that has a low p-value is likely to be a meaningful addition to your model because changes in the predictor's value are related to changes in the response variable.
  • 28.
  • 29. Conclusion  By analyzing this dataset named “Amazon Alexa” we can give the potential customers a clear understanding of the product by providing them the reviews of those customers who already have Alexa.  This analysis shows that the products star ratings have maximum frequency at 5 star and minimum frequency at 2 star, this takes us to the conclusion that the product is liked by the customers.  From the histogram we had plotted for the variable star ratings, a conclusion can be drawn that almost 2500 customers out of the total 3150 customers have given a 5-star rating to the various products of amazon, thus making it the most frequent star rating given by the customers to the products.
  • 30.  Relationships between the different variables were analyzed.  The data was summarized and interesting patterns were obtained.  These patterns were then further analyzed by using various plot functions such as histogram, boxplot, etc.