%matlab code
ages = [14 11 14 13 14 13 12 14 11 11 12 14 11 14 11 11 12 12 11
11 14 14 12 12 13 11 11 11 11 14 14 11 12 12 12 12 12 11];
pushUps = [17 29 25 39 10 15 20 25 35 39 11 25 20 21 23 24 32 50 17
21 41 13 22 31 22 31 36 71 100 19 20 21 21 23 31 15 18 19 31
32];
older13 = 0;
for i=1:length(ages)
if ages(i) >= 13
older13 = older13 + 1;
end
end
fprintf('Number of Children 13 and older: %d\n',older13);
%output: Number of Children 13 and older: 13
maxIndex = 1;
maxPushups = pushUps(1);
for i=1:length(pushUps)
if pushUps(i) >= maxPushups
maxPushups = pushUps(i);
maxIndex = i;
end
end
fprintf('Maximum pushups is of Child %d and pushups is
%d\n',maxIndex,maxPushups);
%output: Maximum pushups is of Child 29 and pushups is
100
average11 = 0;
count = 0;
for i=1:length(ages)
if ages(i) == 11
average11 = average11 + pushUps(i);
count = count + 1;
end
end
avg = average11/count;
fprintf('Average pushups for 11 year old: %d\n',avg);
%output: Average pushups for 11 year old:
34.7143
result = []
j = 1;
for i=1:pushUps(ages)
if (pushUps(i) < 2*avg)
result(j) = pushUps(i);
j = j + 1;
end
end
pushUps = result;
disp(pushUps);
%output: 17 29 25 39 10 15 20 25 35 39 11 25 20 21 23 24 32
50 17 21 41
We are interested in analyzing fitness data for children, we have a vector or student ages,...
III. In a psychiatric study of families of schizophrenic children two Rorshach scores of the mothers (M, and M,) and fathers ( F, F,) were of particular import. The observed values of these scores for parents of nl=10 psychotic adolescents and n2=10 normal control children of similar age and economic status are given below:SchizophreniacontrolM1M2F1F2M1M2F1F230352533201526252141152111318192732253472118353431362115242220371421151117132338192513122015282726302213221932422937539122636273321132019293524321412108 Analyze this data.
Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays for the wind speed and for the temperature. You will then use the stored data to calculate and output the average wind speed and the average temperature. Create a constant with a value of 30 and use that to declare and loop through your arrays and as a divisor to produce your averages. Here is the data file (below). 1. 14 25 2. 12...
One measure of variation that we can look at is the Range when we have continuous variables. We will be using this measure to create a histogram. A histogram is used to show the frequencies of certain events or categories of data values in a set of data from one time period. Data are plotted in increasing or deceasing order based on the frequency count for each data categories. Assignment I Below is a data file containing the average number...
One measure of variation that we can look at is the Range when we have continuous variables. We will be using this measure to create a histogram. A histogram is used to show the frequencies of certain events or categories of data values in a set of data from one time period. Data are plotted in increasing or deceasing order based on the frequency count for each data categories. Assignment I Below is a data file containing the average number...
•he data consist of growth measurements for 11 girls and 16 boys at ages 8, 10, 12, and 14. • •Based on the long form of this data set, considering the effect of gender, generate the following: –Individual response profile –Mean response profile –Boxplot response profile •Based on the wide form of this data set –Create the mean summary measure (MSM) of (y2 y3 y4) –Generate the boxplot for mean summary measure by gender –Perform an analysis of covariance •model...
Q. The following data is a systematic survey of the amount paid by a student at a bookstore for a month. (k = 200, Z0.025 = 2) Data set : 30 20 10 62 28 31 40 29 17 51 29 21 13 15 23 32 14 29 48 50 29 25 16 63 21 20 23 12 29 38 ($) 1. Find the average you paid for the book. 2. Find the limit of the estimation error for the...
Student Test Score Student Test Score Student Test Score 1 30 13 26 25 9 2 29 14 43 26 36 3 33 15 43 27 61 4 62 16 68 28 79 5 59 17 63 29 57 6 63 18 42 30 46 7 80 19 51 31 70 8 32 20 45 32 31 9 60 21 22 33 68 10 76 22 30 34 62 11 13 23 40 35 56 12 41 24 26 36...
Graph the mean winning margins for years 2005 - 2007 for women's NCAA Basketball tournaments. Is there a trend over time? 2005 Winning Margin 34 3 1 8 26 17 22 32 35 3 22 10 22 31 3 21 51 12 2 20 5 25 10 41 32 16 23 10 33 48 12 37 2006 Winning Margin 24 12 13 21 4 5 15 48 23 17 5 19 24 18 10 41 69 2 10 19 6...
Question 4.112 pts Following data relate to the number of children per household (HH). Consider a population of 36 HHs. HH# HH# 2 HH# # of HH children 1 7 2 8 8 3 6 9 4 4 10 5 5 11 6 1 12 # of children 3 7 5 4 10 4 13 14 15 16 17 18 # of HHs children # 4 19 0 20 3 21 4 22 3 23 0 24 # of children...
.
Ns the population ages, there is increasing concem about acddent-related injunies to the edely, n aride reported on an experiment in which the maximum lean angle-the turthest a subject is able to lean and still recover in one step-as determined tor both a sample ot younger females (21-29 (67-91 year). ears) and a The tollowing cbservations are cons stent with summary data given in the article: Use tha follewing R code to visualize the data, pafarm a t teat...