40203478_Assignment_3
.pdf
keyboard_arrow_up
School
Concordia University *
*We aren’t endorsed by this school
Course
280
Subject
Statistics
Date
Jan 9, 2024
Type
Pages
8
Uploaded by DeaconSalamander3940
Introduction to Statistical Programming: Assignment 3
Marissa Gonçalves (Student ID: 40203478)
Textbook Problems
Section 2.7 on Page 34
Problem 1
a)
# Create a vector containing solar radiation observation data, then display the values
# from the vector sample.
solar.radiation
<-
c(
11.1
,
10.6
,
6.3
,
8.8
,
10.7
,
11.2
,
8.9
,
12.2
)
solar.radiation
## [1] 11.1 10.6
6.3
8.8 10.7 11.2
8.9 12.2
b)
# Determine the mean, median, range and variance for solar radiation observations by
# utilizing appropriate functions.
mean(solar.radiation)
## [1] 9.975
median(solar.radiation)
## [1] 10.65
range(solar.radiation)
## [1]
6.3 12.2
var(solar.radiation)
## [1] 3.525
c)
The mean, median and range values for sr10 increased by 10, but the variance remains the same as the
variance value obtained from solar.radiation data.
# Create a variable sr10, which includes all solar radiation observation values added
# by 10, then use the mean, median, range and variance functions to calculate needed
# values for comparison.
sr10
<-
solar.radiation +
10
mean(sr10)
## [1] 19.975
median(sr10)
## [1] 20.65
range(sr10)
## [1] 16.3 22.2
1
var(sr10)
## [1] 3.525
d)
All mean, median, range and variance values for srm2 differ from solar.radiation data values.
# Create a variable srm2, which includes all solar radiation observation values
# multiplied by -2, then use the mean, median, range and variance functions to
# calculate needed values for comparison.
srm2
<-
solar.radiation * (-
2
)
mean(srm2)
## [1] -19.95
median(srm2)
## [1] -21.3
range(srm2)
## [1] -24.4 -12.6
var(srm2)
## [1] 14.1
e)
# Create three histograms with appropriate titles and unique colour codes to compare
# data stored in solar.radiation, sr10, srm2 variables with one another.
par(
mfrow=
c(
1
,
3
))
hist(solar.radiation,
main=
"Solar Radiation Graph I"
,
col=
"blue"
,
ylab=
"Number of Solar Radiation Observations"
,
xlab=
"Solar Radiation Values"
)
hist(sr10,
main=
"Solar Radiation Graph II"
,
col=
"gold"
,
ylab=
"Number of Solar Radiation Observations"
,
xlab=
"Solar Radiation Values Added by 10"
)
hist(srm2,
main=
"Solar Radiation Graph III"
,
col=
"purple"
,
ylab=
"Number of Solar Radiation Observations"
,
xlab=
"Solar Radiation Values Multiplied by -2"
)
2
Solar Radiation Graph I
Solar Radiation Values
Number of Solar Radiation Observations
6
8
10
12
14
0
1
2
3
4
Solar Radiation Graph II
Solar Radiation Values Added by 10
Number of Solar Radiation Observations
16
18
20
22
24
0
1
2
3
4
Solar Radiation Graph III
Solar Radiation Values Multiplied by -2
Number of Solar Radiation Observations
-25
-20
-15
-10
0
1
2
3
4
5
Problem 3
# Create variable n as a sequence from 1 to 15, then determine the pairwise maxima
# between both 2ˆn and nˆ3, before summing the pairwise value using the function pmax().
n
<-
1
:
15
sum(pmax(
2
ˆn, nˆ
3
))
## [1] 66538
Section 2.9 on Page 46
Problem 2
a)
# Utilize the nrow() function to determine the number of rows and the ncol() function
# to find the number of columns in the USArrests data frame. According to the results,
# there are 50 rows and 4 columns in USArrests built-in data frame.
nrow(USArrests)
## [1] 50
ncol(USArrests)
## [1] 4
b)
# Utilize the vapply() function to determine the median of each column in the USArrests
# data frame.
vapply(USArrests, median,
1
)
3
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
Related Questions
PART I: For this part, we will divide the data set into two groups: those who have infection and those who do not. Consider only those who have an infection.1. For these subjects only, construct a stemplot for the variable “heart rate”. (We will be making this into a back-to-back stemplot later, so leave room on the left side.)2. Discuss the shape of your stemplot. Is it symmetric? Positively skewed? Negatively skewed? None of these? Are there any outliers?3. How would you describe the center and the spread of this distribution?4. Find the five-number summary.5. Construct a box plot.
arrow_forward
Two refreshment stands kept track of the number of cases of soda they sold
weekly during the summer time, as shown on the dot plots below.
Stand A
Stand B
10 11 12 13 14 15 16 17 18 19
10 11 12 13 14 15 16 17 18 19
Number of Cases Sold
Number of Cases Sold
What is the difference between the modes of the number of cases of soda sold?
OA. 11
ов. 2
ос. 5
OD. 16
arrow_forward
Question 2
Jadual menunjukkan bilangan pelanggan (dalam juta)
dan jualan tahunan (dalam RM juta) untuk sampel 14
Outlet Pakaian Berjenama.
Table shows the number of customer (in millions) and
annual sales (in million RM) for a sample of 14 Branded
Apparel Outlet.
Store Customers (x) Annual Sales (y)
1
3.7
5.7
2
3.6
5.9
3
2.8
6.7
4
5.6
9.5
3.3
5.4
2.2
3.5
7
3.3
6.2
8
3.1
4.7
9
3.2
6.1
10
3.5
4.9
11
5.2
10.7
12
4.6
7.6
13
5.8
11.8
14
3.0
4.1
a. Draw a scatter diagram to show the relationship
between two variables.
Answer:
arrow_forward
2. Two different statistics. Statistic A and Statistic B. are used to estimate the same population
parameter. Statistic A has less variability than Statistic B and Statistic A has less bias than Statistic B.
Using the axes below, draw parallel dotplots showing 10 values of each statistic that are consistent
with these characteristics. Assume that the parameter value is at the arrow on the axes.
Statistic A
Statistic B
arrow_forward
20A , 20B , 20C
arrow_forward
Readin
AB
CLASS REFERENC...
Question 18
3 pts
18. Given stem and leaf plot. Find mode.
stem
leaf
1, 1, 2, 2, 3, 4, 4, 4, 4, 5, 8
0, 0, 0, 1, 1, 3, 7, 9
5, 5, 7, 7, 8, 8, 9, 9
0, 1, 1, 1, 2, 2, 2, 4, 5
0, 4, 8, 9
2, 6, 7, 7, 8
1
2
4
6
3, 6
Key: 6|3 = 63 years old
%3D
arrow_forward
Help. Please
arrow_forward
Question no. 03:
A data set consists of ten (x,y) pairs of numbers:
(3,20)(5,13)(6,9)(8,4)(11,0)(12,0)(14,1)(17,6)(18,9)(20,16)
a) Plot the data in a scatter diagram.
b) Based on the plot, explain whether the relationship between x and y appears to be linear or not
linear.
arrow_forward
Subject Risk
Age
Blood Pressure Smoker
1.
12
57
152
2
24
67
163
3
13
58
155
4
56
86
177
1
5) Determine using appropriate graphical methods whether older people at a higher
5
28
59
196
risk of stroke
ie is there a corelation between age and risk of stroke?
51
76
189
1.
7
18
56
155
1
8
31
78
120
9
37
80
135
1
10
15
78
98
11
22
71
152
12
36
70
173
1.
13
15
67
135
14
48
77
209
1.
15
15
60
199
16
36
82
119
1.
17
8.
66
166
18
34
80
125
1.
19
3
62
117
20
37
59
207
1.
21
13
56
153
22
25
бб
162
23
14
57
156
24
57
85
176
1.
25
29
58
197
26
52
75
188
1
27
19
55
156
1
28
32
77
119
29
38
79
134
1.
30
16
77
99
31
23
70
151
32
37
69
174
1
33
16
66
134
1.
34
49
76
208
1
35
16
59
200
36
37
81
118
1
37
65
167
38
35
79
124
1
39
4
61
118
40
38
58
206
1
arrow_forward
Question 1
a) A wedding photographer made $500 on average in the 5 years it has been operational. A sample of 12 months were analyzed and it was found that he made an average of $620.
i. Does the value $500 refer to the parameter or to the statistic?
ii. Is the value $620 a parameter or a statistic?
iii. State two advantages of using a sample statistic rather than a parameter.
b) For each the following variables, state which is quantitative and which is qualitative. If it is quantitative, state whether it is discrete or continuous.
i. The amount of flour added to bake a pie
ii. The temperature of a glass of milk
iii. The addresses of all patients at a dental office
c) Choose the level of measurement described below
i. Rate how satisfied are you with your customer service (ordinal, interval)
ii. The distance Madison runs every morning (interval, ratio)
iii. The Magazine that sells the most copies in a month (nominal, ordinal)
Question 2
A small Fashion Boutique sells its…
arrow_forward
The following is a 3D scatter plot of some data. The colored vectors correspond to the three principal components
of this data, obtained by performing PCA. Which of these vectors is most likely to be the first principal component?
3
-1.00
-0.75
-0.50
-0.25
-1
g00 0.25
-2
0.50
-3
0.75
100
yellow
arrow_forward
Question 21
The SSR:
A) Will increase if you increase the number of observations
B) Is a measure of the variation in Y that our model fails to explain
C) Is our preferred measure of goodness of fit
D) (a) and (b) are true, but (c) is false
E) (b) and (c) are true, but (a) is false
arrow_forward
Question 34 parts b, c , and d
arrow_forward
Read the data below from the Philippine Statistics Authority (PSA) and answer the questions that
follow.
The population in the City of General Trias City in 2015 is
around 314,300 based on the 2015 Census of Population
conducted by the Philippine Statistics Authority. According
to Population.City, the population growth rate of General
Trias from 2010 - 2015 is approximately 5.25% per year.
freesvg.org/vector-image-
of-population-icon
1. Make a function that would represent the growth of population in General Trias.
2. Complete the table of values below based on the equation in number 1.
Year (x)
2015
2016
2017
2018
2019
2020
Population f(x) 314,300
3. Based on the table above, what would be the population of General Trias in 2020?
4. Using the values in number 2, sketch the graph of the population in as a function of
time (in years). Use graphing paper and attach it.
arrow_forward
2) Parts
A
B
a.
b.
C
arrow_forward
A data set contains the observations 7, 4, 2, 3, 1. Findx J2.
arrow_forward
sub parts 4-6
arrow_forward
Given are five observations for two variables, x and y.
xi
1
2
3
4
5
yi
4
7
6
10
13
(a)
Develop a scatter diagram for these data.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is labeled: x. The vertical axis ranges from 0 to 18 and is labeled: y. The points are plotted from left to right in increments of 1 in an upward, diagonal direction starting in the lower left corner of the diagram. The points are between 4 to 13 on the vertical axis.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is labeled: x. The vertical axis ranges from 0 to 18 and is labeled: y. The points are plotted from left to right in increments of 1 in a downward, diagonal direction starting in the upper left corner of the diagram. The points are between 4 to 13 on the vertical axis.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is labeled: x. The vertical axis ranges…
arrow_forward
Evaluate the following and determine if the sequence
{an}
converges or diverges
20n2-5n +1
An
5n2
10n + 1
arrow_forward
Given are five observations for two variables, x and y.
xi
1
2
3
4
5
yi
3
8
5
10
14
(a)
Develop a scatter diagram for these data.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is labeled: x. The vertical axis ranges from 0 to 18 and is labeled: y. The points are plotted from left to right in increments of 1 in a downward, diagonal direction starting in the upper left corner of the diagram. The points are between 3 to 14 on the vertical axis.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is labeled: x. The vertical axis ranges from 0 to 18 and is labeled: y. The points are plotted from left to right in increments of 1 starting in the upper left corner of the diagram. The first 2 points are between 10 to 14 on the vertical axis. The next 3 points are between 3 to 8 on the vertical axis.
A scatter diagram has 5 points plotted on it. The horizontal axis ranges from 0 to 6 and is…
arrow_forward
View
History
Bookmarks
People
Tab
Window
Help
dugen.wileyplus.com/edugen/student/mainfr.uni
Mann, Introductory Statistics, 9e
Chapter 13, Section 13.2, Problem 032b
An auto manufacturing company wanted to investigate how the price of one of its car models depreciates
with age. The research department at the company took a sample of eight cars of this model and
collected the following information on the ages (in years) and prices (in hundreds of dollars) of these
cars.
Age
8.
3
6.
9.
3
Price
17 95 51
20 146 41 35 98
Compute the coefficient of determination.
Round your answer to two decimal places.
The coefficient of determination is
the tolerance is +/-2%
arrow_forward
Question 1
a) A wedding photographer has made $500 on average in the 5 years it has been operational. When 12 months were analyzed, it was found that he made $620 per month.
Does the value $500 refer to the parameter or to the statistic?
Is the value $650 a parameter or a statistic?
iii. State two advantages of using a sample statistic rather than a parameter.
b) For each the following variables, state which is quantitative and which is qualitative. If it is continuous, state whether it is discrete or continuous.
The amount of flour added to bake a pie
The temperature of a glass of milk
iii. The addresses of all patients at a dental office
c) Choose the level of measurement described below
The number on the t-shirt of a player on a football team (ordinal, interval)
The distance Madison runs every morning (interval, ratio)
iii. The Magazine that sells the most copies in a month (nominal, ordinal)
arrow_forward
4). Perform
one way ANDVA for the
followving data .
Position 1: 90
82 79 98 83 91
Pasition 2:
99 93 l04 89 95 86
105
90 94
b8
Pesition 3: 83
2/2
arrow_forward
(Please do not give solution in image format thanks)
Question 3. Five students taking a Business Statistics module at MANCOSA were asked to provide an example of a variable they have encountered in their day-to-day life. Their responses are as follows: Student Variable Lungani The body temperature of a patient diagnosed with COVID-19 Nsika The price of a technology company stock on the NASDAQ Thembekile The age of his bull mastiff Mduduzi The number of female students in Mduduzi’s Python class Which student/s provided a continuous true
arrow_forward
Question 34 parts e, f, and g.
arrow_forward
Question 6
10-
+++
9 10
Name the data set for the dot-plot above.
Your answer:
O 2,3,5,6,10
O 3,5,6,3,6,3,5,3,10,5,2,5
O 2,3,5,6,10,3,5,6,3,5,3,5
O 5,2,5,10,3,5,3,6,3,6,5,5
arrow_forward
Need help with question 3 A. The data is in question 2.
arrow_forward
5
arrow_forward
i mathxl.com/Student/PlayerHomework.aspx?homeworkld%3574125325&questionld=1&flushed%3Dfalse&cld=6161404¢erwin=
T'Mara Gilchrist &
P Do Homework - T'Mara Gilchrist- Google Chrome
Mat 122 - 80 Fall 2020
Homework: Section 6.2 Homework
HW S
2 of 10 (0 complete)
Score: 0 of 1 pt
6.2.11
Construct the truth table for the compound statement -(p v g).
Complete the truth table.
9 (p v q)
F
F
Enter your answer in the edit fields and then click Check Answer
All parts showing
Terms of Use Privacy Policy Copyright © 2020 Pearson Education Inc. All Rights Reserved.
Clear Al
search
a
arrow_forward
A scientist conducts research and discovers a link between variables A and B. The scientist claims that A is the cause of B based on this association. Is this statement correct? Explain.
arrow_forward
This question has part a, b, and c.
arrow_forward
Question 8
Identify Q1 using the box and whisker plot below.
23
25
27
29
31
33
35
37
39
A
23
26
C
31
D
©2021 Illuminate Education TM, Inc.
O Type here to search
10
arrow_forward
Bookmarks Profiles
Tab
Window
Help
Do Homework - 1530 Module 4 Section 3.5 HW
earson.com/Student/PlayerHomework.aspx?homeworkId=674412092&questionid=6&flushed=false&cid=7842482¢erwin=yes
H 1530.303 Puckett
Lida Paul 06/19/24 1:29 AM
mework: 1530 Module 4
Question 3, 3.5.5
HW Score: 63.33%, 3.8 of 6
points
ction 3.5 HW
Part 1 of 5
Points: 0.8 of 1
Save
tion list
uestion 1
不
Use the side-by-side boxplots shown to complete parts (a) through (e).
X
y
question 2
0
30
30
60
60
90
90
120
n 1530 M
n 1530 M
Question 3
(a) What is the median of variable x?
The median of variable x is
(Round to the nearest integer as needed.)
Question 4
Incorrect:
Question 5
Question 6
Help me solve this View an example
Textbook
English (United States)
BAB
3
4
5
MacBook Pro
<6
E
R
T
Y
D
F
G
27
&
H
כ
* 00
8
Clear all
9
Check answer
Focus
O
J
K
L
P
+ 1/
لانه
{
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Related Questions
- PART I: For this part, we will divide the data set into two groups: those who have infection and those who do not. Consider only those who have an infection.1. For these subjects only, construct a stemplot for the variable “heart rate”. (We will be making this into a back-to-back stemplot later, so leave room on the left side.)2. Discuss the shape of your stemplot. Is it symmetric? Positively skewed? Negatively skewed? None of these? Are there any outliers?3. How would you describe the center and the spread of this distribution?4. Find the five-number summary.5. Construct a box plot.arrow_forwardTwo refreshment stands kept track of the number of cases of soda they sold weekly during the summer time, as shown on the dot plots below. Stand A Stand B 10 11 12 13 14 15 16 17 18 19 10 11 12 13 14 15 16 17 18 19 Number of Cases Sold Number of Cases Sold What is the difference between the modes of the number of cases of soda sold? OA. 11 ов. 2 ос. 5 OD. 16arrow_forwardQuestion 2 Jadual menunjukkan bilangan pelanggan (dalam juta) dan jualan tahunan (dalam RM juta) untuk sampel 14 Outlet Pakaian Berjenama. Table shows the number of customer (in millions) and annual sales (in million RM) for a sample of 14 Branded Apparel Outlet. Store Customers (x) Annual Sales (y) 1 3.7 5.7 2 3.6 5.9 3 2.8 6.7 4 5.6 9.5 3.3 5.4 2.2 3.5 7 3.3 6.2 8 3.1 4.7 9 3.2 6.1 10 3.5 4.9 11 5.2 10.7 12 4.6 7.6 13 5.8 11.8 14 3.0 4.1 a. Draw a scatter diagram to show the relationship between two variables. Answer:arrow_forward
- 2. Two different statistics. Statistic A and Statistic B. are used to estimate the same population parameter. Statistic A has less variability than Statistic B and Statistic A has less bias than Statistic B. Using the axes below, draw parallel dotplots showing 10 values of each statistic that are consistent with these characteristics. Assume that the parameter value is at the arrow on the axes. Statistic A Statistic Barrow_forward20A , 20B , 20Carrow_forwardReadin AB CLASS REFERENC... Question 18 3 pts 18. Given stem and leaf plot. Find mode. stem leaf 1, 1, 2, 2, 3, 4, 4, 4, 4, 5, 8 0, 0, 0, 1, 1, 3, 7, 9 5, 5, 7, 7, 8, 8, 9, 9 0, 1, 1, 1, 2, 2, 2, 4, 5 0, 4, 8, 9 2, 6, 7, 7, 8 1 2 4 6 3, 6 Key: 6|3 = 63 years old %3Darrow_forward
- Help. Pleasearrow_forwardQuestion no. 03: A data set consists of ten (x,y) pairs of numbers: (3,20)(5,13)(6,9)(8,4)(11,0)(12,0)(14,1)(17,6)(18,9)(20,16) a) Plot the data in a scatter diagram. b) Based on the plot, explain whether the relationship between x and y appears to be linear or not linear.arrow_forwardSubject Risk Age Blood Pressure Smoker 1. 12 57 152 2 24 67 163 3 13 58 155 4 56 86 177 1 5) Determine using appropriate graphical methods whether older people at a higher 5 28 59 196 risk of stroke ie is there a corelation between age and risk of stroke? 51 76 189 1. 7 18 56 155 1 8 31 78 120 9 37 80 135 1 10 15 78 98 11 22 71 152 12 36 70 173 1. 13 15 67 135 14 48 77 209 1. 15 15 60 199 16 36 82 119 1. 17 8. 66 166 18 34 80 125 1. 19 3 62 117 20 37 59 207 1. 21 13 56 153 22 25 бб 162 23 14 57 156 24 57 85 176 1. 25 29 58 197 26 52 75 188 1 27 19 55 156 1 28 32 77 119 29 38 79 134 1. 30 16 77 99 31 23 70 151 32 37 69 174 1 33 16 66 134 1. 34 49 76 208 1 35 16 59 200 36 37 81 118 1 37 65 167 38 35 79 124 1 39 4 61 118 40 38 58 206 1arrow_forward
- Question 1 a) A wedding photographer made $500 on average in the 5 years it has been operational. A sample of 12 months were analyzed and it was found that he made an average of $620. i. Does the value $500 refer to the parameter or to the statistic? ii. Is the value $620 a parameter or a statistic? iii. State two advantages of using a sample statistic rather than a parameter. b) For each the following variables, state which is quantitative and which is qualitative. If it is quantitative, state whether it is discrete or continuous. i. The amount of flour added to bake a pie ii. The temperature of a glass of milk iii. The addresses of all patients at a dental office c) Choose the level of measurement described below i. Rate how satisfied are you with your customer service (ordinal, interval) ii. The distance Madison runs every morning (interval, ratio) iii. The Magazine that sells the most copies in a month (nominal, ordinal) Question 2 A small Fashion Boutique sells its…arrow_forwardThe following is a 3D scatter plot of some data. The colored vectors correspond to the three principal components of this data, obtained by performing PCA. Which of these vectors is most likely to be the first principal component? 3 -1.00 -0.75 -0.50 -0.25 -1 g00 0.25 -2 0.50 -3 0.75 100 yellowarrow_forwardQuestion 21 The SSR: A) Will increase if you increase the number of observations B) Is a measure of the variation in Y that our model fails to explain C) Is our preferred measure of goodness of fit D) (a) and (b) are true, but (c) is false E) (b) and (c) are true, but (a) is falsearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage