Using R, plot the half of the integral area from — 2.5 to µ = 3.2 under the curve of the Gaussian density function ƒ with parameters µ = 3.2 and ² = 3. The curve to be plotted is on interval ( – 2.5, 9). Attach your source code.

Trigonometry (MindTap Course List)
10th Edition
ISBN:9781337278461
Author:Ron Larson
Publisher:Ron Larson
Chapter6: Topics In Analytic Geometry
Section6.1: Lines
Problem 4ECP: Find the distance between the point 3,2 and the line 3x+5y=2.
icon
Related questions
Question

Please provide a source code that can be copied into R programming.

The second image provides an example of what the code made look like and the guidelines with it

x<-seq(-4,8,0.01)
y<-dnorm(x,2,1.5)
plot(x,y,type = "1")
polygon(c(x[x>4],4),c(y[x>4],y[x = =-
== -4]), col= "honeydew2")
Transcribed Image Text:x<-seq(-4,8,0.01) y<-dnorm(x,2,1.5) plot(x,y,type = "1") polygon(c(x[x>4],4),c(y[x>4],y[x = =- == -4]), col= "honeydew2")
Using R, plot the half of the integral area from - 2.5 to µ = 3.2 under the curve of the Gaussian
density function f with parameters µ = 3.2 and ² = 3. The curve to be plotted is on interval
( – 2.5, 9). Attach your source code.
Transcribed Image Text:Using R, plot the half of the integral area from - 2.5 to µ = 3.2 under the curve of the Gaussian density function f with parameters µ = 3.2 and ² = 3. The curve to be plotted is on interval ( – 2.5, 9). Attach your source code.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

This code is not being accepted. Please look at this image and explain what I am doing incorrect. Please put the code in 4 succesive lines so it can be copied all at once. 

>x<-seg (-2.5,9, length=200)
> y < (1/(s* sqrt (2*pi))) *exp(-((x-mu) ^2)/(2*s^2))
Error: object 's' not found
> plot (x, y, type="1", 1wd=2, col = "blue", xlim = c(-2.5,9))
Error in xy.coords (x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
>pnorm (3.2, mean-mu, sd-s) -pnorm (-2.5, mean-mu, sd=s)
Error in pnorm (3.2, mean = mu, sd = s) : object 'mu' not found
>I
Transcribed Image Text:>x<-seg (-2.5,9, length=200) > y < (1/(s* sqrt (2*pi))) *exp(-((x-mu) ^2)/(2*s^2)) Error: object 's' not found > plot (x, y, type="1", 1wd=2, col = "blue", xlim = c(-2.5,9)) Error in xy.coords (x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ >pnorm (3.2, mean-mu, sd-s) -pnorm (-2.5, mean-mu, sd=s) Error in pnorm (3.2, mean = mu, sd = s) : object 'mu' not found >I
Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL