Execute the scripts in Scilab and allow me to copy the runnable scripts because my keyboard has malfunctions. To do it manually. Thank you.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Execute the scripts in Scilab and allow me to copy the runnable scripts because my keyboard has malfunctions. To do it manually. Thank you.

7
end
disp('
disp(¹)
if fbelow -- 0
printf('Outliers below minimum class boundary $10.6g \n',fbelow)
end
if fabove -- 0
printf('Outliers above maximum class boundary
10.6g \n', fabove)
end
disp(' ')
printf('Total number of data points
printf('Total number of classes
10.6g \n',n);
-10.6g \n',k)
disp(' ');
xset(window',1);xbas(1);
histplot (k,x);
xtitle('histogram","x', 'rel.f');
xset('window', 2);xbase (2);
xset('mark',-9,2);
plot2d(cmark, feumulrel,-9);
plot2d(cmark, fcumulrel, 1);
xtitle('ogive', 'x', 'cun.rel.f');
//end function
In this example, we generate a vector of 100 randon data values and apply
function fregdist to it:
-->x-int(100*rand(1,100));
-->getf("freqdist')
-->min(x), max(x)
ans
ans
99.
-->xelass= [0:10:100];
-->freqdist (x,xelans)
1.
‒‒‒‒‒
Transcribed Image Text:7 end disp(' disp(¹) if fbelow -- 0 printf('Outliers below minimum class boundary $10.6g \n',fbelow) end if fabove -- 0 printf('Outliers above maximum class boundary 10.6g \n', fabove) end disp(' ') printf('Total number of data points printf('Total number of classes 10.6g \n',n); -10.6g \n',k) disp(' '); xset(window',1);xbas(1); histplot (k,x); xtitle('histogram","x', 'rel.f'); xset('window', 2);xbase (2); xset('mark',-9,2); plot2d(cmark, feumulrel,-9); plot2d(cmark, fcumulrel, 1); xtitle('ogive', 'x', 'cun.rel.f'); //end function In this example, we generate a vector of 100 randon data values and apply function fregdist to it: -->x-int(100*rand(1,100)); -->getf("freqdist') -->min(x), max(x) ans ans 99. -->xelass= [0:10:100]; -->freqdist (x,xelans) 1. ‒‒‒‒‒
//Typical call: freqdist(x,xclass)
[m n] = size(x);
[m nB]=size(xclass);
k = nB = 1;
//Calculate class marks
cmark
zeros (1,k);
for ii = 1:k
cmark (ii) = 0.5*(xclass (ii)+xclass(ii+1));
end
//Initialize frequency counts to zero
fcount-zeron (2, k);
fbelow 0; fabove 0;
//Accumulate frequency counts
for ii 1:n
if x(ii) < xclass (1)
fbelow
fbelow + 1;
elseif x(ii) > xclass (nB)
fabove fabove + 1;
else
for jj - 11k
if x(ii)
xclass(jj) & x(ii) xlass(jj+1)
fcount (jj) - fcount (jj) +1;
and
end
end
end
frel-fcount/n;
//Calculate cumulative frequencies
fcumul zeros(1,k);
fcumul(1)
fcount(1);
for ii = 2:k
fcumul(ii) - fcumul(ii-1) + fcount (ii);
end;
fcumulrel fumul/n;
//Produce summary table
disp(' ');
disp('Frequency distribution');
disp('
--====')
disp('Class LowBound UppBound Clann Mark
RelCunFreq')
Freq. RelFreq. CumFreq.
disp('
for ii 1:k
printf('85.0f $10.6g 10.6g 10.6g 10.6g 10.6g 10.6g 10.6g \n',
ii,
xclass(ii), xclass(ii+1),cmark (ii), fcount(ii), frel(ii), fcumul(ii), fcumulrel(ii))
//Sample size
//Number of class boundaries
//Number of classes
//Relative frequencies
//Relative cumulative frequencies
Transcribed Image Text://Typical call: freqdist(x,xclass) [m n] = size(x); [m nB]=size(xclass); k = nB = 1; //Calculate class marks cmark zeros (1,k); for ii = 1:k cmark (ii) = 0.5*(xclass (ii)+xclass(ii+1)); end //Initialize frequency counts to zero fcount-zeron (2, k); fbelow 0; fabove 0; //Accumulate frequency counts for ii 1:n if x(ii) < xclass (1) fbelow fbelow + 1; elseif x(ii) > xclass (nB) fabove fabove + 1; else for jj - 11k if x(ii) xclass(jj) & x(ii) xlass(jj+1) fcount (jj) - fcount (jj) +1; and end end end frel-fcount/n; //Calculate cumulative frequencies fcumul zeros(1,k); fcumul(1) fcount(1); for ii = 2:k fcumul(ii) - fcumul(ii-1) + fcount (ii); end; fcumulrel fumul/n; //Produce summary table disp(' '); disp('Frequency distribution'); disp(' --====') disp('Class LowBound UppBound Clann Mark RelCunFreq') Freq. RelFreq. CumFreq. disp(' for ii 1:k printf('85.0f $10.6g 10.6g 10.6g 10.6g 10.6g 10.6g 10.6g \n', ii, xclass(ii), xclass(ii+1),cmark (ii), fcount(ii), frel(ii), fcumul(ii), fcumulrel(ii)) //Sample size //Number of class boundaries //Number of classes //Relative frequencies //Relative cumulative frequencies
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Intelligent Machines
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education