Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Rstudio thanks Q3 [3 points] 1. Calculate 3= 1 4-143-1 y+z 3 points] 2. Use R to find all the prime numbers between 20

image text in transcribed

Use Rstudio thanks

Q3 [3 points] 1. Calculate 3= 1 4-143-1 y+z 3 points] 2. Use R to find all the prime numbers between 20 and 50. (Prime numbers: can be divided evenly only by 1 or itself.) [4 points] 3. Create a function that returns the elements on odd positions in a vector 4 points] 3. Create a Input: a vector Output: a vector of the elements only on odd positions Use the vector in your first question as an example and show the results. (5 points] 4. Create a function to calculate the confidence intervals. This function should be able to handle small data sets (n = 30 using normal distribution). Input: a data set; alpha (confidence level) Output: confidence interval (lower boundary and upper boundary) Given the following sample data of battery life: 491, 485, 503, 492, 482, 487, 490, 485, 495, 502 calculate the 95% confidence interval of the mean battery life

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago