close all
clear
clc
x = [161 203 235 176 201 188 228 211 191 178];
y = [159 206 241 163 197 193 209 189 169 201];
scatter(x,y)
xlabel('x')
ylabel('y')
title('scatter plot')
grid on
Xbar = mean(x);
Ybar = mean(y);
Sxx = sum((x-Xbar).^2)
Syy = sum((y-Ybar).^2)
Sxy = sum((x-Xbar).*(y-Ybar))
r = Sxy/sqrt(Sxx*Sxy)
fprintf('Yes, the scatter plot and the correlation coefficient
agree')
fprintf(' ')
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER
PLEASE PLEASE GIVE A THUMBS UP
For MATLAB 3. write a program to plot a scatter plot of data (x, y) pairs...
For the following data (a) display the data in a scatter plot, (b) calculate the correlation coefficient r, and (c) make a conclusion about the type of correlation. The ages (in years) of 6 children and the number of words in their vocabulary Age, x 1. 2 3 4 5 6 Vocabulary size, y 500 450 1350 1750 2300 2300 (a) Choose the correct scatter plot below. A. B. c. D. 2350+.. 7 2350- 2350- Vocabulary Age Vocabulary Vocabulary ....
for the following data set answer the following: x=17,13,12,15,16,14,16,16,18,19 y=94,73,59,80,93,85,66,79,77,91 a)prepare a scatter plot b)calculate an expression for the regression line c)calculate the correlation coefficient r d)calculate the coefficient of determination r^2 e)test the hypothesis (H0=P=0; Ha P does not equal 0) for sigma=0.05 using your determine value of r and online t tables. Please show work!!!
For the following data (a) display the data in a scatter plot, (b) calculate the correlation coefficient r, and (c) make a conclusion about the type of correlation. The ages (in years) of 6 children and the number of words in their vocabulary Age, x 1 2 3 4 5 6 Vocabulary size, y 300 450 1500 1500 2300 2400 a Ag Vocab Vocab Vocabi . 2450 Vocabulary Age Age Age (b) The correlation coefficient r is (Round to three...
For the accompanying data set, (a) draw a scatter diagram of the data, (b) compute the correlation coefficient, and (c) determine whether there is a linear relation between x and y.(a) Draw a scatter diagram of the data. Choose the correct graph below
I need this program in MATLAB with different or another code. INPUT: x = [0 1 8 12 27]; y = [1 2 3 4 5]; nx = length(x); ny = length(y); n = length(x); if nx ~= ny display('Error. La cantidad de datos en x no es igual que los datos en y') end Sx = sum(x); Sxx = sum(x.^2); Sy = sum(y); Sxy = sum(x.*y); a1 = (n*Sxy - Sx*Sy)/(n*Sxx-(Sx)^2); a0 = (Sxx*Sy - Sxy*Sx)/(n*Sxx - (Sx)^2); m...
Below are four bivariate data sets and the scatter plot for each. (Note that each scatter plot is displayed on the same scale.) Each data set is made up of sample values drawn from a population. x y 1.0 4.1 2.0 6.1 3.0 7.0 4.0 4.0 5.0 5.2 6.0 8.1 7.0 5.5 8.0 6.9 9.0 9.0 10.0 7.3 x1234567891011y12345678910110 Figure 1 u v 1.0 8.1 2.0 7.4 3.0 8.1 4.0 6.1 5.0 7.4 6.0 4.5 7.0 4.6 8.0 3.4...
13 The scatter plot for the data set X and Y shows the data points clustered in a nearly perfect circle. For these data, what is the most likely value for the Pearson r? a) near 0 b) r near +1 c) r near - 1 d) r between - 5 and 7.5 e) none of the above.
QUESTION 3 [20M] Given the data below, where x is the number of hours playing online game, y is the student's class test marks Student Variable 10 20 12 40 80 60 50 a) Name the two most popular correlation coefficients. b) Which one will you use for the data presented in the above table and why? c) Calculate the correlation coefficient, r d) Make a scatter plot of the data. From the plot, does the word linear really provide...
Match the coefficient of determination to the scatter diagram. The scales on the X-axis and y-axis are the same for each scatter diagram (a) R2 = 1. (b) R2 = 0.94, (c) R2 = 0.62 Response (a) Scatter diagram Explanatory (b) Scatter diagram Response (c) Scatter diagram Explanatory Response Explanatory Suppose a doctor measures the height, x, and head circumference, y, of 8 children and obtains the data below. The correlation coefficient is 0.807 and the least squares regression line...
Below are four bivariate data sets and the scatter plot for each. (Note that each scatter plot is displayed on the same scale.) Each data set is made up of sample values drawn from a population. x y 1.0 7.9 2.0 5.1 3.0 10.1 4.0 6.4 х 11 10+ 9+ 8+ 7+ 6+ 5- X X 1.0 7.3 117 10+ 2.0 9.0 9+ 3.0 7.3 8+ 7 4.0 5.6 6+ 5.0 7.9 5 4 6.0 5.3 2 7.0 4.8 5.0...