R Programming 1/15 Report Issue FIII In the blanks 108 s Submit Answer You have noticed that you frequently copy code to normalize a variable and then modify the code for the specific situation. You have decided to write a normalize function that you can use and that you can share with your colleagues. Complete the code for the function and use it to normalize the provided data_frame. Complete the code to return the output ``` write code here <- write code here f nominator <- x-min(x) denominator <- max (x)-nin(x) normalize <- nominator/denominator return(nornalize) } normalize(data_frame) ``` Expected Output \begin{tabular}{|c|c|c|c|} \hline & c1 & c2 & c3 \\ \hline 1 & 8.8147545 & 0.80138464 & 0.4753738 \\ \hline 2 & 8.4231670 & 1.00000000 & 0.1770441 \\ \hline 3 & 0.6188683 & 8.25643716 & 0.5026274 \\ \hline 4 & 0.6654362 & 0.48100711 & 0.7831380 \\ \hline 5 & 0.6191910 & 0.51043549 & 0.9208084 \\ \hline 6 & 8.5159375 & 0.66606083 & 0.4503218 \\ \hline 7 & 0.8431999 & 0.47990178 & 0.4853605 \\ \hline 8 & 0.5182570 & 0.00000000 & 0.1807158 \\ \hline 9 & 0.9457382 & 0.04369494 & 0.6304854 \\ \hline 10 & 0.5247195 & 0.80446847 & 0.4079343 \\ \hline \end{tabular}
Added by Sonia G.
Close
Step 1
```r normalize <- function(x) { ``` Show more…
Show all steps
Your feedback will help us improve your experience
Robin Corrigan and 82 other Intro Stats / AP Statistics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Q.1) IQ is a normal distribution of mean of 100 and standard deviation of 15 (a) What percentage of people have an IQ < 125? (b) What percentage of people have an IQ > 110? (c) What percentage of people have 110 < IQ < 125? (d) Find 25% for standard normal distribution. (e) Find 25% normal distribution with mean and standard deviation 2& 3. (f) What IQ separates the lower 25% from the others? (g) What IQ separates the top 25% from the others? (h) Find 25 percentile for mean 100 and SD 15. Q.2) Generate the 20 random number for a normal distribution with mean 572 and SD is 51. Calculate mean and SD of data set. Q.3) Make appropriate histogram of data in above question and visually assume if normal density
Robin C.
Sri K.
10.) If a random variable X has a normal distribution with mean 10 and standard deviation 5, the 25th percentile of the distribution of the random variable equals 0.2908 0.4432 0.5587 0.6276 0.7034 11.) If a random variable X has a normal distribution with mean 10 and standard deviation 5, the upper quartile (or the 75th percentile) of the distribution of the random variable equals 10.12 10.56 11.08 12.19 13.37 12.) If a random variable X has a normal distribution with mean 10 and standard deviation 5, the top 1% cutoff of the distribution of the random variable equals 21.63 20.45 20.18 19.88 19.25 13.) If X has a normal distribution with mean 10 and variance 4, Y has a normal distribution with mean 6 and variance 5, and the two random variables are independent, what is the distribution of X + Y? Normal with mean 16 and variance 9 Normal with mean 16 and variance 3 Normal with mean 16 and variance 1 Normal with mean 4 and variance 3 None of these 14.) A random variable X is normal with mean 16 and variance 9. What is the z-score of x = 22? 0.5 1 2 2/3 None of these 15.) If X has a standard normal distribution, then the probability that X is greater than 0.28 equals 0.3512 0.3371 0.3652 0.3710 0.3897 16.) For any normal distribution random variable X, which of the following is wrong? with chance around 68%, X falls within one standard deviation of the mean with chance around 95%, X falls within two standard deviations of the mean with chance around 99.7%, X falls within three standard deviations of the mean All of the above are correct. All of the above are wrong.
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD