Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

using matlab load the provided cw 9 . xlsx table using readtable command. The data represents the total tip paid by customer in a restaurant

using matlab
load the provided cw9.xlsx table using readtable command. The data represents the total tip paid by customer in a restaurant detailed by the customer(s) gender, number, if he/she/they are smokers, total bill, day and time.
a) Using grpstats command:
On average, who spend more on the total bill, Male or Female?
On average, who spend more on the total bill, Smoker or non-smoker?
On average, on which day the customers spend more on the total bill, from Monday to Sunday?
b) Add another column of data, tip_percent, to the table, which is the percent of tips tip/total_bill) paid by the customer. To add one column of data to existing table T, create a table (say Tnew) using this column of data (using table command), then set Tnew
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions