# Appendix a to applied probability: directory of m-functions and m  (Page 17/24)

 Page 17 / 24

cdbn.m Plots a continuous graph of a distribution function of a simple random variable (or simple approximation).

% CDBN file cdbn.m Continuous graph of distribution function % Version of 1/29/97% Plots continuous graph of dbn function FX from % distribution of simple rv (or simple approximation)xc = input('Enter row matrix of VALUES '); pc = input('Enter row matrix of PROBABILITIES ');m = length(xc); FX = cumsum(pc);xt = [xc(1)-0.01 xc xc(m)+0.01];FX = [0 FX FX(m)]; % Artificial extension of range and domainplot(xt,FX) % Plot of continuous graph gridxlabel('t') ylabel('u = F(t)')title('Distribution Function')

simple.m Calculates basic quantites for simple random variables from the distribution, input as row matrices X and $PX$ .

% SIMPLE file simple.m Calculates basic quantites for simple rv % Version of 6/18/95X = input('Enter row matrix of X-values '); PX = input('Enter row matrix PX of X probabilities ');n = length(X); % dimension of X EX = dot(X,PX) % E[X]EX2 = dot(X.^2,PX) % E[X^2] VX = EX2 - EX^2 % Var[X]disp(' ') disp('Use row matrices X and PX for further calculations')

jddbn.m Representation of joint distribution function for simple pair by obtaining the value of ${F}_{XY}$ at the lower left hand corners of each grid cell.

% JDDBN file jddbn.m Joint distribution function % Version of 10/7/96% Joint discrete distribution function for % joint matrix P (arranged as on the plane).% Values at lower left hand corners of grid cells P = input('Enter joint probability matrix (as on the plane) ');FXY = flipud(cumsum(flipud(P))); FXY = cumsum(FXY')';disp('To view corner values for joint dbn function, call for FXY')

jsimple.m Calculates basic quantities for a joint simple pair $\left\{X,Y\right\}$ from the joint distrsibution $X,Y,P$ as in jcalc. Calculated quantities include means, variances, covariance, regression line, and regression curve (conditional expectation $E\left[Y|X=t\right]$ ).

% JSIMPLE file jsimple.m Calculates basic quantities for joint simple rv % Version of 5/25/95% The joint probabilities are arranged as on the plane % (the top row corresponds to the largest value of Y)P = input('Enter JOINT PROBABILITIES (as on the plane) '); X = input('Enter row matrix of VALUES of X ');Y = input('Enter row matrix of VALUES of Y '); disp(' ')PX = sum(P); % marginal distribution for X PY = fliplr(sum(P')); % marginal distribution for YXDBN = [X; PX]';YDBN = [Y; PY]';PT = idbn(PX,PY); D = total(abs(P - PT)); % test for differenceif D>1e-8 % to prevent roundoff error masking zero disp('{X,Y} is NOT independent')else disp('{X,Y} is independent')end disp(' ')[t,u] = meshgrid(X,fliplr(Y));EX = total(t.*P) % E[X] EY = total(u.*P) % E[Y]EX2 = total((t.^2).*P) % E[X^2] EY2 = total((u.^2).*P) % E[Y^2]EXY = total(t.*u.*P) % E[XY] VX = EX2 - EX^2 % Var[X]VY = EY2 - EY^2 % Var[Y] cv = EXY - EX*EY; % Cov[X,Y]= E[XY] - E[X]E[Y] if abs(cv)>1e-9 % to prevent roundoff error masking zero CV = cvelse CV = 0end a = CV/VX % regression line of Y on X isb = EY - a*EX % u = at + b R = CV/sqrt(VX*VY); % correlation coefficient rhodisp(['The regression line of Y on X is: u = ',num2str(a),'t + ',num2str(b),])disp(['The correlation coefficient is: rho = ',num2str(R),])disp(' ') eYx = sum(u.*P)./PX;EYX = [X;eYx]';disp('Marginal dbns are in X, PX, Y, PY; to view, call XDBN, YDBN') disp('E[Y|X = x]is in eYx; to view, call for EYX') disp('Use array operations on matrices X, Y, PX, PY, t, u, and P')

what is variations in raman spectra for nanomaterials
I only see partial conversation and what's the question here!
what about nanotechnology for water purification
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
what is the stm
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
what is Nano technology ?
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
what does nano mean?
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
absolutely yes
Daniel
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive     By   By Lakeima Roberts By 