#defining vector
x = c(10,7,20,12,75,15,9,18,4,12,8,14)
1.
# 1. calculate mean , median and mode
mean_x = mean(x)
median_x = median(x)
# Create the function.
getmode <- function(x) {
uniqv <- unique(x)
uniqv[which.max(tabulate(match(x, uniqv)))]
}
mode_x = getmode(x)
#printing
> mean_X
[1] 17
> median_x
[1] 12
> mode_x
[1] 12
2.
> #standard deviation of x
> standard_dev_X = sd(x)
> standard_dev_X
[1] 18.82938
Interpretation: There is alot of variation in stock prices and standard deviation is $18.83
3.
> #min max normalisation for stock price $20
> min_max_normalised_value = (20 - min(x))/(max(x) -
min(x))
> min_max_normalised_value
[1] 0.2253521
4.
> #mid range stock value
> mid_range = (max(x) - min(x))/2
> mid_range
[1] 35.5
5.
> #computing z score
> z_score_value = scale(20, center = mean_x, scale =
standard_dev_X)
> z_score_value
[,1]
[1,] 0.1593255
attr(,"scaled:center")
[1] 17
attr(,"scaled:scale")
[1] 18.82938
6.
> #decimal scaling
> decimal_scaled_value = 20/(10^2)
> decimal_scaled_value
[1] 0.2
7.
> #skewness
> skewness_x = 3*(mean(x) - median(x))/(sd(x))
> skewness_x
[1] 0.7966275
Please rate my answer and comment for doubt
Consider the following stock price data (in dollars) to answer the questions in this section. Use...
Consider the following stock price data (in dollars) to answer the questions in this section. Use R. 10 7 20 12 75 15 9 18 4 12 14 8 Definitions: 1. Mean, median, mode, and standard deviation are obvious 2. Min-Max normalization: if x is a vector variable, the (x - min(x))/(max(x) - min(x)) 3. To find z-scores use the scale() function in R 4. Decimal scaling: Find the biggest absolute value in the data, count the number of digits...
4. Given the data set (20) 12,67,56,98,44,33,25,26,27,25,43,56,34,85,99,22,43,23,12,12,23,24,25,25, 23,66,27,23,39,32, Min Q1 Q2 Q3 | Max mean mode median Standard deviation variance IQR Range MOE skewness C.V.
Find the standard deviation of the following data. 30 24 26 119 78 1,762.80 41.99 95 47.5 Find the mean, median, mode, and midrange for the data provided. The data shows the test scores of 10 student taking a math class: 90 80 66 75 90 45 83 59 70 96 mean: 74.225, median: 79, mode: 90, midrange: 25.5 mean: 75.4, median: 77.5, mode: 90, midrange: 70.5 mean: 74.225, median: 77.5, mode: 73, midrange: 70.5 mean: 75.4, median: 79, mode:...
need help with m-t please 7. Given the data set (20 points) 101 2 13 17 19 23 73 79 83 89 101 103 107109 113 97 Compute the following a. Mean . b. Mode O c. Median d. Standard deviation 3o 10 e. Variance 13o3.1 f. Rangel g. Min 2 h. Max 1(3 k.Q3의 I IQR (0 m. Interval for non-outliers n. The 5-number summary o. What is the skewness? p. Is it skewed to the left or right_?...
10, 3. LUXURY CARS collects sample data regarding the number of cars rented per day: 6, 20 a) Calculate the mean, median and mode b) Calculate the range, standard deviation and coefficient of variation c) Calculate Pearson's coefficient of skewness d) Calculate Q.
2. The following data represent scores on a Depression Scale (X) and a Self-Esteem Inventory which were obtained from a sample of 7 mental health clients. Complete the following: a. Standard deviation for each variable b. Mean for each variable c. Median for each variable d. Mode for each variable VARIABLE X: Mean Median: Mode: VARIABLE Y: 13 Mean 10 Median: Mode: 2. The following data represent scores on a Depression Scale (X) and a Self-Esteem Inventory which were obtained...
Download the attached data file. Use the data file to answer the questions 1 to 5 1. Select a proper variable and use a bar graph to describe the distributions of this variable (show percentage, increasingly) a. Use a paragraph to describe the frequency distribution and relative frequency of this variable. Indicate the mode 2. Construct two pie charts by using another proper variable by further dividing this variable into two categories with another two-leveled variable a. Also, use a...
Download the attached data file. Use the data file to answer the questions 1 to 5 1. Select a proper variable and use a bar graph to describe the distributions of this variable (show percentage, increasingly) a. Use a paragraph to describe the frequency distribution and relative frequency of this variable. Indicate the mode 2. Construct two pie charts by using another proper variable by further dividing this variable into two categories with another two-leveled variable a. Also, use a...
Q1 Please use this sample dataset to answer the following questions: 3 26 38 22 21 35 10 16 13 22 13 25 28 36 10 4 17 15 46 32 (1) Please calculate mean, median, and mode. (2) Please calculate sample variance and sample standard deviation. (3) Please draw the stem-n-leaf plot.
Q1 Please use this sample dataset to answer the following questions: 3 26 38 22 21 35 10 16 13 22 13 25 28 36 10 4 17 15 46 32 (1) Please calculate mean, median, and mode. (2) Please calculate sample variance and sample standard deviation. (3) Please draw the stem-n-leaf plot.