HW2_R code_SJ
docx
keyboard_arrow_up
School
Westcliff University *
*We aren’t endorsed by this school
Course
504
Subject
Statistics
Date
Apr 3, 2024
Type
docx
Pages
10
Uploaded by BrigadierNarwhalMaster988
HW 2
Q1a. Bring the file into R
HW<-
read.csv
(
"pepsicokes.csv"
)
HWdata<-
data.frame
(HW)
View
(HWdata)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
Q1 b Create a dummy variable whitecollar ( 1 if white collar, 0 otherwise), representing stores with white collar percent > 60 and calculate frequencies for this variable; the white collar percentages on the dataset are represented by the variable WhiteCollarPctPen.
library
(dplyr)
## ## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## ## filter, lag
## The following objects are masked from 'package:base':
## ## intersect, setdiff, setequal, union
pepsicokes<-
mutate
(HWdata,
whitecollar=
ifelse
(WhiteCollarPctPen>
60
,
1
,
0
))
View
(pepsicokes)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
count
(pepsicokes,
c
(whitecollar))
## # A tibble: 2 <U+00D7> 2
## `c(whitecollar)` n
## <dbl> <int>
## 1 0 87
## 2 1 49
Q1c. Do a crosstab of Prizm cluster (the 16 social groups) with Chain; and another crosstab of Prizm cluster with whitecollar
library
(gtable)
table1<-
table
(pepsicokes$Chain, pepsicokes$Prizm_Cluster)
View
(table1)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
table2<-
table
(pepsicokes$whitecollar,pepsicokes$Prizm_Cluster)
View
(table2)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
Q1d.Calculate descriptive statistics for any 5 continuous variables in the dataset.
library
(psych)
## Warning: package 'psych' was built under R version 3.3.2
describe
(
select
(pepsicokes,Corp_Pep_Volume_Sales,Corp_Coke_Volume
_Sales,Corp_Pep_Price,Corp_Coke_Price,Prizm_Cluster))
## vars n mean sd median trimmed
## Corp_Pep_Volume_Sales 1 136 69978.45 34613.79 64290.97 67037.20
## Corp_Coke_Volume_Sales 2 136 40126.02 29009.98 32740.59 36594.37
## Corp_Pep_Price 3 136 0.00 1.00 -0.06 0.02
## Corp_Coke_Price 4 136 0.00 1.00 -0.32 -0.05
## Prizm_Cluster* 5 136 6.57 3.23 6.00 6.43
## mad min max range skew kurtosis
## Corp_Pep_Volume_Sales 27941.09 9514.52 193510.58 183996.05 1.05 1.61
## Corp_Coke_Volume_Sales 24858.14 3999.10 140015.28 136016.18 1.10 0.63
## Corp_Pep_Price 1.09 -2.78 2.63 5.41 -
0.19 0.04
## Corp_Coke_Price 0.99 -2.26 2.16 4.42 0.41 -0.91
## Prizm_Cluster* 4.45 1.00 13.00 12.00 0.31 -0.88
## se
## Corp_Pep_Volume_Sales 2968.11
## Corp_Coke_Volume_Sales 2487.59
## Corp_Pep_Price 0.09
## Corp_Coke_Price 0.09
## Prizm_Cluster* 0.28
Q1e. Regress Corp_Pep_Volume_per__MM_ACV (million dollars All Commodity Volume = Total Store Sales) on a set of any 6 independent variables. (use lm() for linear regression)
Regression<-
lm
(Corp_Pep_Volume_per__MM_ACV~Corp_Pep_Volume_Sales+Corp_Coke_Vo
lume_Sales+Corp_Pep_Price+CSD_Volume_per__MM_ACV+CSD_Price+Corp_C
oke_Price,
data=
pepsicokes)
summary
(Regression)
## ## Call:
## lm(formula = Corp_Pep_Volume_per__MM_ACV ~ Corp_Pep_Volume_Sales + ## Corp_Coke_Volume_Sales + Corp_Pep_Price + CSD_Volume_per__MM_ACV + ## CSD_Price + Corp_Coke_Price, data = pepsicokes)
## ## Residuals:
## Min 1Q Median 3Q Max ## -0.7273 -0.1781 -0.0249 0.1698 0.6004 ## ## Coefficients:
## Estimate Std. Error t value Pr(>|t|) ## (Intercept) -1.163e+01 7.673e-01 -15.156 < 2e-16 ***
## Corp_Pep_Volume_Sales 1.239e-06 7.190e-07 1.723 0.0873 . ## Corp_Coke_Volume_Sales -7.485e-07 1.284e-06 -0.583 0.5611 ## Corp_Pep_Price -2.784e-01 3.649e-02 -7.630 4.57e-12 ***
## CSD_Volume_per__MM_ACV 4.660e-04 1.768e-05 26.357 < 2e-16 ***
## CSD_Price 1.574e+00 1.391e-01 11.314 < 2e-16 ***
## Corp_Coke_Price 3.184e-03 2.590e-02 0.123 0.9023 ## ---
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
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## ## Residual standard error: 0.2503 on 129 degrees of freedom
## Multiple R-squared: 0.9401, Adjusted R-squared: 0.9373 ## F-statistic: 337.5 on 6 and 129 DF, p-value: < 2.2e-16
Q1f Run a Hierarchical Cluster Analysis using the variables Pepsi Volume per MM ACV, Pepsi Price per MM ACV, Coke Volume per
MM ACV, Coke Price per MM ACV. These variables were all standardized to mean 0, standard deviation 1 (Zscores) before clustering. Generate a Scree plot and find the kink point to determine the optimal number of clusters.
pepsicokes_use<-pepsicokes[,
c
(
36
,
37
,
39
,
40
)]
scaled_pepsicokes<-
scale
(pepsicokes_use,
center=
TRUE
,
scale=
TRUE
)
View
(scaled_pepsicokes)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
pepsicokes_dist<-
dist
(scaled_pepsicokes,
method =
"euclidean"
)
pepsicokes_hclust<-
hclust
(pepsicokes_dist,
method=
"complete"
)
summary
(pepsicokes_hclust)
## Length Class Mode ## merge 270 -none- numeric ## height 135 -none- numeric ## order 136 -none- numeric ## labels 0 -none- NULL ## method 1 -none- character
## call 3 -none- call ## dist.method 1 -none- character
plot
(pepsicokes_hclust)
plot
(pepsicokes_hclust,
label=
pepsicokes$TDLinx)
pepsicokes_hclust$height
## [1] 0.1386584 0.1396047 0.1631199 0.1671819 0.1725537 0.2093707 0.2136051
## [8] 0.2148434 0.2169044 0.2264955 0.2350235 0.2414639 0.2458700 0.2512878
## [15] 0.2605308 0.2642873 0.2765192 0.2772353 0.2809642 0.2848664 0.2913083
## [22] 0.3031009 0.3107680 0.3188676 0.3194838 0.3220497 0.3317241 0.3341909
## [29] 0.3407441 0.3471289 0.3824845 0.3842518 0.3857692 0.4052727 0.4096676
## [36] 0.4096954 0.4146928 0.4179864 0.4398404 0.4435938 0.4625907 0.4696793
## [43] 0.4714327 0.4741556 0.4928168 0.4999340 0.5045603 0.5071533 0.5138479
## [50] 0.5186018 0.5286290 0.5339792 0.5356408 0.5608411 0.5741377 0.5767585
## [57] 0.5769589 0.5846019 0.5870278 0.5970021 0.6284375 0.6359602 0.6647388
## [64] 0.6675389 0.6711418 0.6757199 0.6989639 0.7024853 0.7113948 0.7334023
## [71] 0.7504464 0.7522828 0.7757182 0.7794874 0.8166034
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
0.8207481 0.8216293
## [78] 0.8292620 0.8311296 0.8529778 0.8792595 0.8822876 0.8951340 0.9143303
## [85] 0.9182950 0.9205618 0.9396085 0.9538322 0.9644107 1.0058766 1.0164154
## [92] 1.0295904 1.0479720 1.0735370 1.0840720 1.1018983 1.1283187 1.1427112
## [99] 1.1778581 1.2029170 1.2308914 1.2843263 1.2881743 1.3136084 1.3149742
## [106] 1.3430558 1.3446066 1.3554758 1.4109480 1.4166235 1.5335090 1.7497358
## [113] 1.7634136 1.8420395 1.8874882 1.9327043 1.9705814 1.9982353 2.0039138
## [120] 2.0143144 2.0690615 2.1516141 2.2145405 2.3907431 2.7105632 2.9240202
## [127] 3.1327974 3.2017816 3.6972456 3.8005397 3.9446471 4.3989273 4.9564989
## [134] 5.3277902 6.4419282
plot
(pepsicokes_hclust$height)
pepsicokes_hclust_scree<-
rev
(pepsicokes_hclust$height)
plot
(pepsicokes_hclust_scree)
plot
(pepsicokes_hclust_scree,
main=
"Scree Plot"
, type=
"l"
)
rect.hclust
(pepsicokes_hclust,
h=
2.5
)
clusters<-
cutree
(pepsicokes_hclust,
4
)
table
(clusters)
## clusters
## 1 2 3 4 ## 16 53 39 28
pepsicokes_cluster<-
data.frame
(pepsicokes,clusters)
table
(
cutree
(pepsicokes_hclust,
4
),
cutree
(pepsicokes_hclust,
3
))
## ## 1 2 3
## 1 16 0 0
## 2 0 53 0
## 3 0 39 0
## 4 0 0 28
View
(pepsicokes)
## Warning: running command ''/usr/bin/otool' -L '/Library/Frameworks/
## R.framework/Resources/modules/R_de.so'' had status 1
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
Q1g Run a K-means Cluster Analysis using the number of clusters
determined in d
k_cluster<-
kmeans
(pepsicokes_use,
4
)
k_cluster
## K-means clustering with 4 clusters of sizes 31, 39, 45, 21
## ## Cluster means:
## Corp_Pep_Volume_per__MM_ACV Corp_Pep_Price Corp_Coke_Volume_per__MM_ACV
## 1 0.3042666 -0.55226207 -1.2223726
## 2 -0.9092102 1.14747095 0.8399118
## 3 -0.1669167 -0.05773223 -0.1685815
## 4 1.5970566 -1.19206155 0.6058648
## Corp_Coke_Price
## 1 -0.7113567
## 2 -0.8676354
## 3 1.1737700
## 4 0.1461995
## ## Clustering vector:
## [1] 4 4 3 4 4 4 4 4 4 4 4 3 4 4 4 4 4 4 3 2 2 3 2 2 3 2 2 2 3 2 2 2 4 3 4
## [36] 1 1 4 3 1 1 3 3 1 3 1 1 1 1 1 1 1 1 1 4 1 1 1 1 1 3 1 3 1 1 3 1 3 1 1
## [71] 3 1 1 1 3 1 3 1 1 3 3 2 2 2 2 3 2 2 3 3 3 2 3 2 3 2 3 2 3 2 2 3 3 2 2
## [106] 3 2 2 3 2 2 3 2 3 2 2 2 3 3 2 2 3 2 3 3 4 3 3 2 2 2 3 3 2 3 3
## ## Within cluster sum of squares by cluster:
## [1] 27.35084 29.36915 64.34683 47.89759
## (between_SS / total_SS = 68.7 %)
## ## Available components:
## ## [1] "cluster" "centers" "totss" "withinss" ## [5] "tot.withinss" "betweenss" "size" "iter" ## [9] "ifault"
Related Questions
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
Give 2 characteristics that indicate a linear model may be appropriate to model a data set
arrow_forward
SULSeyYRUZmwoouJ6xu12zdKuxrbgLISzeJxdxImA8AUa8mME76Q/viewform?hr_submissio
D: Level.
TAchieve3000: Level.
TAchieve3000: Lesson
G Classroom: manag.
Cell C
9 point
9. Valeria is throwing a party and bought a variety of drinks:
9 cans of Dr. Pepper
2 cans of Sprite
3 cans of Orange Fanta
6 can s of Coke
If Valeria randomly selects one can, what is the probability that she will choose a Sprite?
A.
10
B.
D.
Submit
MA
目
DELL
C.
arrow_forward
Spend at least 20 minutes looking at a few of the different unique data visualization ideas foundat this blog: http://flowingdata.com/. Discuss one of the posts in a few sentences, copying inany appropriate (and appropriately resized) graphics.
arrow_forward
Next summer you decide to enjoy the post-Covid world by attending some baseball games. You keep the stats of your
favorite players and decide to examine if there is any connection between Home Runs and Runs Batted In.
a) Fill in the empty cells in the table below. (If you are concerned a portion of the table is not showing up in your
word processer look at the pdf version of the exam).
Home Runs
Runs Batted In
Player
(X)
(Y)
x-X
y-ỹ
(x-X)(y-ỹ)
Buxton
4
14
Sano
5
26
Donaldson
13
Kirilloff
3
14
Polanco
4
24
Кepler
6.
11
Totals
24
b) Calculate the correlation coefficient (r).
Use Sx=1.414 and Sy = 6.325 while I know you can calculate standard deviations I have gone ahead
and done so for you.
SHOW YOUR WORK. (Write down the equation and plug in the correct values, the correct
answer alone will not get full points.)
r =
C.) Let's say you want to predict how many Runs Batted In a player would have based on their Home Runs. Write
down the general regression equation we could use to do so.
arrow_forward
Data set in the next image
arrow_forward
Only need (A) needs an answer
arrow_forward
Apply STATA commands & submit the output for each question
only when indicated below
i. Apply the command egen to create a variable called "wyd"
which is the rowtotal function on variables bwght & faminc.
ii. Apply the list command for the first 10 observations to
show that the code in part i worked. Include the outcome of
this code
iii. Apply the egen command to create a new variable called
"bwghtsum" using the sum function on variable bwght by
the variable high_faminc (Note: need to apply the bysort'
statement)
iv. Apply the "by high_faminc" statement to find the
V.
descriptive statistics of bwght and bwghtsum Include the
output of this code.
Why is there a difference between the standard deviations
of bwght and bwghtsum from part iv of this question?
arrow_forward
Please show proper steps.
arrow_forward
Student/611bb125fdb91dd9275f99f1#screenld%=Dbc98595e-dc0c-47ff-834-
Google Classroom
Maps
O Nearpod: You'll wo...
Nearpod- First Day... B Physical & Chemica.
Unit 1 Day 5 Fluency- 3 rigid motions; Version 2
Fabricio Diaz Perez
T.
8. Triangle RST has vertices R(10, 0), S(3, 4), and
T(4, 2). What is the resulting image of S' after a
translation two units down and four units right?
Rule:
n Tyne here to search
II
arrow_forward
Learn
+
A blackboard.sanjac.edu/webapps/blackboard/content/contentWrapper.jsp?course_id%3 3201092_1&displayName=My
Gmail
O YouTube
Maps
a News
O Translate
SPRING 2021
My San Jac
Courses
Student S
lyopenMath (MOM)
Question 33
A bag of M&M's has 5 red, 6 green, 4 blue, and 2 yellow M&M's. Suppose you randomly select two
M&M's from the bag one at a time without replacing the first M&M.
Let A = first M&M is red and B = second M&M is yellow.
Find the following probabilities. (Write your answers as fractions.)
a) P(A) =
b) P(B | A) =
C) P(A and B) =
Question Help: D Post to forum
Submit Question
DELL
F8
F4
F1
F2
F3
&
%23
%24
8.
6.
4
1
W #
arrow_forward
f Messenger | Facebook
Content
M2OL2 - Blackboard Learn
wP NWP Assessment Player UI Appli X
A education.wiley.com/was/ui/v2/assessment-player/index.html?launchld=393e4370-a779-41b5-8dbb-e250583f0ac1#/question/7
Q E * Tp
19
E M2OL2
Question
Math Symbolic and Graphing
Not started
Question 8 of 17
-/5
Question 4
- /5
View Policies
Multipart
Not started
Current Attempt in Progress
Question 5
-/5
Math Symbolic and Graphing
Not started
Find the general solution of the differential equation
y" – 4y' – 21y = -47t + 42t².
Question 6
-/5
Multiple Choice
Not started
NOTE: Use t as the independent variable.
Use cz and cz as arbitrary constants.
Question 7
- /5
Math Symbolic and Graphing
Not started
y(t) =
Viewing Question 8
-/5
Math Symbolic and Graphing
Not started
Question 9
-/5
Math Symbolic and Graphing
Not started
Question 10
-/5
Math Symbolic and Graphing
Not started
Question 11
-/5
Math Symbolic and Graphing
Not started
Attempts: 0 of 5 used Submit Answer
Save for Later
Using multiple…
arrow_forward
M
ui/v2/assessment-player/index.html?launchld=3cb6995a-a464-4ce8-9952-7c527abd86ce#/question/2
-/1 E
Question 3 of 14
View Policies
Current Attempt in Progress
A company has cost and revenue functions, in dollars, given by C(q) = 6000 + 8g and R(g) = 12g.
(a) Find the cost and revenue if the company produces 500 units. Does the company make a profit? What about 5000 units?
Enter the exact answers without comma separation of digits.
The cost of producing 500 units is $
i
The revenue if the company produces 500 units is $ i
Thus, the company
v a profit.
The cost of producing 5000 units is $
The revenue if the company produces 5000 units is $i
Thus, the company
v a profit.
eTextbook and Media
(b) Find the break-even point.
Enter the exact answer.
The break-even point is i
units.
eTextbook and Media
Which of tbe fellowina illust
break even point aranbically?
ssion_..docx
2 Discussion_-..docx
- Discussion_...docx
MacBook Pro
arrow_forward
>
Search
itc.edu.kh v
Activity
Midterm Statistics(2) (2020-2021GICI31STA_GIC_Statistics_OL Say_Mardi_7-9am)
Close
Teams
Hi DIM LIFY, when you submit this form, the owner will be able to see your name and email address.
Assignments
1
Question 5
Calendar
(20 Points)
Files
Let X1, X2, X3,..., Xn be a random sample from a Geometric distribution
Geo(0), where 0 is unknown. Find the maximum likelihood estimator (MLE) of
O based on this random sample. Recall that the pmf of X ~ Geo(0) is
f(x; 0) = (1 – 6)*-10,
(a) Ômle = X
(b) Ômle = 1/X
x = 0, 1, ....
%3D
(c) Ômle = E=, In X,
(d) Ômle = 2X
%3D
(a)
(b)
(c)
Apps
(d)
1:50 PM
A Spotify
T. General (2020-2021...
Details | bartleby - ..
A D 4) G E
ENG
12/16/2020
O
田
arrow_forward
Chrome- Do Homework- HW #12 = 8.4, 9.1, 9.2
A mathxl.com/Student/PlayerHomework.aspx?homeworkld 610059707&questionld%35&flushed%-Dtrue&cld%3D6700191¢er
Math for Aviation I
E Homework: HW #12 = 8.4, 9.1, 9.2
Question 7, 8.
For an arc length s, area of sector A, and central angle 0 of a circle of radius r, find the indicated quantity for the given value.
A= 76.9 mi2r= 76.9 mi, 0 = ?
radian
(Do not round until the final answer. Then round to three decimal places as needed.)
Heip me solve this
View an example
Get more belp-
DELL
arrow_forward
How to find independent and defendant variables
arrow_forward
Let (1,1), (2,3), (3,5) and (4,8) be four data points.
a) Find the 'best' line passing through these points.
b) Find the 'best' quadratic curve passing through these points.
c) Plot the line, quadratic curve and points on a graph(you can use matlab or plot it by hand
arrow_forward
Calculate the perimeter of the triangle formed by the following set of vertices (2,2) (-1,-3) (3,1)
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning

Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Related Questions
- 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 Aarrow_forwardGive 2 characteristics that indicate a linear model may be appropriate to model a data setarrow_forwardSULSeyYRUZmwoouJ6xu12zdKuxrbgLISzeJxdxImA8AUa8mME76Q/viewform?hr_submissio D: Level. TAchieve3000: Level. TAchieve3000: Lesson G Classroom: manag. Cell C 9 point 9. Valeria is throwing a party and bought a variety of drinks: 9 cans of Dr. Pepper 2 cans of Sprite 3 cans of Orange Fanta 6 can s of Coke If Valeria randomly selects one can, what is the probability that she will choose a Sprite? A. 10 B. D. Submit MA 目 DELL C.arrow_forward
- Spend at least 20 minutes looking at a few of the different unique data visualization ideas foundat this blog: http://flowingdata.com/. Discuss one of the posts in a few sentences, copying inany appropriate (and appropriately resized) graphics.arrow_forwardNext summer you decide to enjoy the post-Covid world by attending some baseball games. You keep the stats of your favorite players and decide to examine if there is any connection between Home Runs and Runs Batted In. a) Fill in the empty cells in the table below. (If you are concerned a portion of the table is not showing up in your word processer look at the pdf version of the exam). Home Runs Runs Batted In Player (X) (Y) x-X y-ỹ (x-X)(y-ỹ) Buxton 4 14 Sano 5 26 Donaldson 13 Kirilloff 3 14 Polanco 4 24 Кepler 6. 11 Totals 24 b) Calculate the correlation coefficient (r). Use Sx=1.414 and Sy = 6.325 while I know you can calculate standard deviations I have gone ahead and done so for you. SHOW YOUR WORK. (Write down the equation and plug in the correct values, the correct answer alone will not get full points.) r = C.) Let's say you want to predict how many Runs Batted In a player would have based on their Home Runs. Write down the general regression equation we could use to do so.arrow_forwardData set in the next imagearrow_forward
- Only need (A) needs an answerarrow_forwardApply STATA commands & submit the output for each question only when indicated below i. Apply the command egen to create a variable called "wyd" which is the rowtotal function on variables bwght & faminc. ii. Apply the list command for the first 10 observations to show that the code in part i worked. Include the outcome of this code iii. Apply the egen command to create a new variable called "bwghtsum" using the sum function on variable bwght by the variable high_faminc (Note: need to apply the bysort' statement) iv. Apply the "by high_faminc" statement to find the V. descriptive statistics of bwght and bwghtsum Include the output of this code. Why is there a difference between the standard deviations of bwght and bwghtsum from part iv of this question?arrow_forwardPlease show proper steps.arrow_forward
- Student/611bb125fdb91dd9275f99f1#screenld%=Dbc98595e-dc0c-47ff-834- Google Classroom Maps O Nearpod: You'll wo... Nearpod- First Day... B Physical & Chemica. Unit 1 Day 5 Fluency- 3 rigid motions; Version 2 Fabricio Diaz Perez T. 8. Triangle RST has vertices R(10, 0), S(3, 4), and T(4, 2). What is the resulting image of S' after a translation two units down and four units right? Rule: n Tyne here to search IIarrow_forwardLearn + A blackboard.sanjac.edu/webapps/blackboard/content/contentWrapper.jsp?course_id%3 3201092_1&displayName=My Gmail O YouTube Maps a News O Translate SPRING 2021 My San Jac Courses Student S lyopenMath (MOM) Question 33 A bag of M&M's has 5 red, 6 green, 4 blue, and 2 yellow M&M's. Suppose you randomly select two M&M's from the bag one at a time without replacing the first M&M. Let A = first M&M is red and B = second M&M is yellow. Find the following probabilities. (Write your answers as fractions.) a) P(A) = b) P(B | A) = C) P(A and B) = Question Help: D Post to forum Submit Question DELL F8 F4 F1 F2 F3 & %23 %24 8. 6. 4 1 W #arrow_forwardf Messenger | Facebook Content M2OL2 - Blackboard Learn wP NWP Assessment Player UI Appli X A education.wiley.com/was/ui/v2/assessment-player/index.html?launchld=393e4370-a779-41b5-8dbb-e250583f0ac1#/question/7 Q E * Tp 19 E M2OL2 Question Math Symbolic and Graphing Not started Question 8 of 17 -/5 Question 4 - /5 View Policies Multipart Not started Current Attempt in Progress Question 5 -/5 Math Symbolic and Graphing Not started Find the general solution of the differential equation y" – 4y' – 21y = -47t + 42t². Question 6 -/5 Multiple Choice Not started NOTE: Use t as the independent variable. Use cz and cz as arbitrary constants. Question 7 - /5 Math Symbolic and Graphing Not started y(t) = Viewing Question 8 -/5 Math Symbolic and Graphing Not started Question 9 -/5 Math Symbolic and Graphing Not started Question 10 -/5 Math Symbolic and Graphing Not started Question 11 -/5 Math Symbolic and Graphing Not started Attempts: 0 of 5 used Submit Answer Save for Later Using multiple…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning

Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman