R Assignment 4 - Kevin Pham
docx
keyboard_arrow_up
School
Montgomery College *
*We aren’t endorsed by this school
Course
100
Subject
Statistics
Date
Feb 20, 2024
Type
docx
Pages
4
Uploaded by GeneralElk1670
Kevin Pham
STAT100 Section 0331
R Assignment 4
1.a. The explanatory variable is the Server variable.
1.b. The response variable is the Pct_Tip variable.
1.c. The role-type classification is C->Q
1.d.
Boxplot of Server and Pct_Tip variables with default formatting settings:
Boxplot of Server and Pct_Tip variables with customized formatting settings:
1.e. The server that had the highest median tip percentage was Ashley at 16.75.
1.f. The server that had the least median tip percentage was Byron at 15.60. 1.g. The box plots show that median tip percentage for Ashley was 16.75, Byron was 15.60, and Cassandra was 16.25 which around 15-16%. These results show that every server received at least 13% in tips and no more than 20%. The average for every server is around 16-17%. Based on these small differences between the servers and tip percentages, there is little to no relationship between the two variables. 2.a. The explanatory variable is the Bill variable. 2.b.
The response variable is the Pct_Tip variable. 2.c.
The role-type classification is Q->Q. 2.d.
Scatterplot of Bill and Pct_Tip variables with default formatting settings:
Scatterplot of Bill and Pct_Tip variables with customized formatting settings:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
2.e. The correlation coefficient for this potential relationship is r = 0.1353. 2.f. The value of the correlation coefficient indicates that there is a weak positive linear relationship between the bill amount and tip percentage. 2.g.
The least-squares linear regression equation for this relationship is Tip Percentage = 15.50965 - 0.04881 (Bill). 2.h.
Tip Percentage = 15.50965 - 0.04881 (Bill)
= 15.50965 - 0.04881 (50)
= 15.50965 - 2.4405
= 13.07%
The tip percentage is 13.07% for a table with a total bill of $50.00.
2.i. The scatterplot seems to indicate a weak positive relationship between the bill and tip percentage. There is no strong linear shape present in the scatterplot based on how spread out the
points are. The correlation coefficient r = 0.1353 can be interpreted as a weak positive relationship because of how close it is to zero. The regression equation also reveals that for every
dollar of the bill, we would expect 0.1353 percent to be charged for the tip percentage. The value
of the slope is very close to zero which means there is a weak positive relationship between the bill and the tip percentage.
Related Documents
Related Questions
The r code for side by side boxplot of vitamind v newage and vitamin d v country.
Scatterplot code for relationship between vitamin d level and age.
arrow_forward
How to find independent and defendant variables
arrow_forward
An international relations professor is supervising four master's students.
Information about the students is summarized in the table.
Student Name | Student Number| Area of Intere st GPA
914589205
Anna
Africa
3.44
Pierre
981672635
Middle East
3.51
Juan
906539012
Latin America
3.71
Yoko
977530271
Asia
3.45
Identify the variables and determine whether each variable is quantitative or
qualitative.
student number: qualitative; area of interest: qualitative; GPA: quantitative
student number: quantitative; area of interest: qualitative; GPA: quantitative
student number: quantitative; area of interest: qualitative; GPA: qualitative
student number: qualitative; area of interest: qualitative; GPA: qualitative
arrow_forward
The residents of a housing development for senior citizens have completed a survey whereon they indicated how physically active they are and how many visitors they receive each week. Are these two varibles related for the 10 cases reported below?
arrow_forward
Suppose you were to collect data for the following pair of variables, gasoline: number of miles driven since
your last fill up, gallons of gas remaining in your tank. You want to make a scatterplot. Which variable
would you use as the explanatory variable?
number of miles driven since your last fill up
gallons of gas remaining in your tank
Which variable would you use as the response variable?
O number of miles driven since your last fill up
gallons of gas remaining in your tank
Would you expect to see a positive or negative association?
positive
negative
O neither
arrow_forward
Define the term Independent Variable?
arrow_forward
Identify the independent (or quasi-independent) and dependent variables in the following examples. Also have identify the type of manipulation used for the independent variable and the scales of measurement for the dependent variable(s). Discuss each example and consider any confounding variables that may pose a problem for the study.
Researchers design a study to measure responses of subway passengers to information announced over the intercom. The same announcement will be made by the conductor, but in one condition, a bell noise will precede the announcement. At the next stop, passengers will be interviewed to determine whether they heard they announcement and if they could decipher the message.
arrow_forward
I need help with identifying the independent and dependent variables in excel.
Explain the step-by-step procedures in excel.
arrow_forward
15 wheelchair users were randomly assigned to three groups with 5 in each group. These participants navigated in virtual-reality settings. Group 1 participants were in the virtual-reality setting (a building) as wheelchair users. Group 2 participants were in the virtual-reality setting in a wheelchair pushed by a walking person. Group 3 participants walked without aid in the virtual-reality setting. Joan measured the time each participant needed to complete the navigation of the virtual-reality setting. What is the independent variable(s)?
arrow_forward
Suppose you have access to a database with the variables listed below. Choose two variables you are interested in exploring that may be related (a predictor and outcome).
Which variable is your y (outcome) and which is your x (predictor)? *Hint: which one may predict the other? Example: hot weather may predict sunburns.
arrow_forward
A study was done to identify variables that might
produce high click counts on Twitter. You and 14 of your
friends collect data on all of your tweets for a week. You
record the number of click counts, the length of each
tweet, the outside temperature, whether it is raining,
the time of day, and the day of the week. Classify each
of the variables as explanatory or response.
click counts
V[ Choose ]
response
explanatory
length of each tweet
Choose]
outside temperature
[ Choose ]
raining
[Choose ]
time of day
[Choose )
day of week
[ Choose ]
>
arrow_forward
III. A researcher is interested in what type of bait attracts
the most moths. The number of moths in a trap was
recorded for traps that were in different locations, and
used different baits. The data is in the file Trap.csv,
with the following columns:
Column 1. Moths: The number of moths in the trap
Column 2. Location: The location of the trap on a tree
Top, Middle, Lower, Ground.
-
Column 3. Bait:
Chemical
The bait used - Scent, Sugar,
(a) Plot the interaction plot. Does there appear to be
an interaction effect? Explain your answer.
(b) Find the group means for Location.
(c) Find the group means for Bait.
(d) Find the group means for all treatment levels.
(e) Do you believe that the number of moths trapped is
different for all Locations? Explain.
arrow_forward
A survey was conducted on how many texts (in average) students receive during an
in-person class time. A survey data in a class in a particular day is given in the table.
Number students
Number of texts
1
20
2
14
12
4
5
If the average number texts that students received during this class time is 3, then
determine the number of students (the value of x) that received 5 texts during the
class time on that particular day.
arrow_forward
Sahar Rasoul-Math 7 End of Yea X Gspy ninjas book-Google
docs.google.com/spreadsheets/d/1j5MotWzsc0V1V3Qyl4rbP_OFOUotaNXCIIFax>
Copy of Copy of Col...
8.8
Sahar Rasoul - Math 7 End of Year Digital Task Cards Student Version ☆
File Edit View Insert Format Data Tools Extensions Help Last edit was 5 minu
$ % .0 .00 123 Century Go... ▼ 18 Y BIS
fx| =IF(B4="Question 1", Sheet2! H21, if(B4="Question 2", Sheet2! H22, IF(B4="
n
100%
36:816
A
B
C
6
16
A flashlight can light
a circular area of up
to 6 feet in diameter.
What is the maximum
area that can be lit?
Round to the nearest
tenth.
30x
0004
15
A Sheet1
https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.amazon.com%2FSpy-Ninjas-Ultimate-Guidebook-Scholastic%2Fdp
7
8
9
10
11
12
13
14
3
5.
7.
a
5
$9
A
arrow_forward
A quasi-independent variable is most similar to and consistent with which of the following terms?
A. control group
B. manipulation
C. Non-equivalent groups research study
D. pre-post research study
arrow_forward
There are three types of bike used in the Metro bike system as standard, electric, and smart. We want to make a comparison of standard bikes and the other two types. Make a new variable called standard. This variable should have “yes” values for bikes that are standard and “no” values for bikes that are electric or smart.
Using the R code
arrow_forward
Read this same passage. And fill the boxes that what are number of rows and columns when the last question is given.
arrow_forward
Factorial designs allow us to study both (blank) effects of the independent variables on the dependent variables.
A. Main and interactive
B. Symbiotic and dichotomous
C. Dependent and independent
D. Rank order and correlational
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Big Ideas Math A Bridge To Success Algebra 1: Stu...
Algebra
ISBN:9781680331141
Author:HOUGHTON MIFFLIN HARCOURT
Publisher:Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition...
Algebra
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
Related Questions
- The r code for side by side boxplot of vitamind v newage and vitamin d v country. Scatterplot code for relationship between vitamin d level and age.arrow_forwardHow to find independent and defendant variablesarrow_forwardAn international relations professor is supervising four master's students. Information about the students is summarized in the table. Student Name | Student Number| Area of Intere st GPA 914589205 Anna Africa 3.44 Pierre 981672635 Middle East 3.51 Juan 906539012 Latin America 3.71 Yoko 977530271 Asia 3.45 Identify the variables and determine whether each variable is quantitative or qualitative. student number: qualitative; area of interest: qualitative; GPA: quantitative student number: quantitative; area of interest: qualitative; GPA: quantitative student number: quantitative; area of interest: qualitative; GPA: qualitative student number: qualitative; area of interest: qualitative; GPA: qualitativearrow_forward
- The residents of a housing development for senior citizens have completed a survey whereon they indicated how physically active they are and how many visitors they receive each week. Are these two varibles related for the 10 cases reported below?arrow_forwardSuppose you were to collect data for the following pair of variables, gasoline: number of miles driven since your last fill up, gallons of gas remaining in your tank. You want to make a scatterplot. Which variable would you use as the explanatory variable? number of miles driven since your last fill up gallons of gas remaining in your tank Which variable would you use as the response variable? O number of miles driven since your last fill up gallons of gas remaining in your tank Would you expect to see a positive or negative association? positive negative O neitherarrow_forwardDefine the term Independent Variable?arrow_forward
- Identify the independent (or quasi-independent) and dependent variables in the following examples. Also have identify the type of manipulation used for the independent variable and the scales of measurement for the dependent variable(s). Discuss each example and consider any confounding variables that may pose a problem for the study. Researchers design a study to measure responses of subway passengers to information announced over the intercom. The same announcement will be made by the conductor, but in one condition, a bell noise will precede the announcement. At the next stop, passengers will be interviewed to determine whether they heard they announcement and if they could decipher the message.arrow_forwardI need help with identifying the independent and dependent variables in excel. Explain the step-by-step procedures in excel.arrow_forward15 wheelchair users were randomly assigned to three groups with 5 in each group. These participants navigated in virtual-reality settings. Group 1 participants were in the virtual-reality setting (a building) as wheelchair users. Group 2 participants were in the virtual-reality setting in a wheelchair pushed by a walking person. Group 3 participants walked without aid in the virtual-reality setting. Joan measured the time each participant needed to complete the navigation of the virtual-reality setting. What is the independent variable(s)?arrow_forward
- Suppose you have access to a database with the variables listed below. Choose two variables you are interested in exploring that may be related (a predictor and outcome). Which variable is your y (outcome) and which is your x (predictor)? *Hint: which one may predict the other? Example: hot weather may predict sunburns.arrow_forwardA study was done to identify variables that might produce high click counts on Twitter. You and 14 of your friends collect data on all of your tweets for a week. You record the number of click counts, the length of each tweet, the outside temperature, whether it is raining, the time of day, and the day of the week. Classify each of the variables as explanatory or response. click counts V[ Choose ] response explanatory length of each tweet Choose] outside temperature [ Choose ] raining [Choose ] time of day [Choose ) day of week [ Choose ] >arrow_forwardIII. A researcher is interested in what type of bait attracts the most moths. The number of moths in a trap was recorded for traps that were in different locations, and used different baits. The data is in the file Trap.csv, with the following columns: Column 1. Moths: The number of moths in the trap Column 2. Location: The location of the trap on a tree Top, Middle, Lower, Ground. - Column 3. Bait: Chemical The bait used - Scent, Sugar, (a) Plot the interaction plot. Does there appear to be an interaction effect? Explain your answer. (b) Find the group means for Location. (c) Find the group means for Bait. (d) Find the group means for all treatment levels. (e) Do you believe that the number of moths trapped is different for all Locations? Explain.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Big Ideas Math A Bridge To Success Algebra 1: Stu...
Algebra
ISBN:9781680331141
Author:HOUGHTON MIFFLIN HARCOURT
Publisher:Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition...
Algebra
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL