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

 Page 19 / 24

mgsumn.m function [z,pz] = mgsumn(varargin) is an alternate to mgnsum, utilizing varargin in MATLAB version 5.1. The call is of the form [z,pz] = mgsumn([x1;p1],[x2;p2], ..., [xn;pn]) .

function [z,pz] = mgsumn(varargin)% MGSUMN [z,pz] = mgsumn([x1;p1],[x2;p2], ..., [xn;pn]) % Version of 6/2/97 Uses MATLAB version 5.1% Sum of n independent simple random variables % Utilizes distributions in the form [x;px](two rows) % Iterates mgsumn = length(varargin); % The number of distributions z = 0; % Initializationpz = 1; for i = 1:n % Repeated use of mgsum[z,pz] = mgsum(z,varargin{i}(1,:),pz,varargin{i}(2,:));end

diidsum.m function [x,px] = diidsum(X,PX,n) determines the sum of n iid simple random variables, with the common distribution $X,PX$ .

function [x,px] = diidsum(X,PX,n)% DIIDSUM [x,px] = diidsum(X,PX,n) Sum of n iid simple random variables% Version of 10/14/95 Input rev 5/13/97 % Sum of n iid rv with common distribution X, PX% Uses m-function mgsum x = X; % Initializationpx = PX; for i = 1:n-1[x,px] = mgsum(x,X,px,PX);end

itest.m Tests for independence the matrix P of joint probabilities for a simple pair $\left\{X,Y\right\}$ of random variables.

% ITEST file itest.m Tests P for independence % Version of 5/9/95% Tests for independence the matrix of joint % probabilities for a simple pair {X,Y}pt = input('Enter matrix of joint probabilities '); disp(' ')px = sum(pt); % Marginal probabilities for X py = sum(pt'); % Marginal probabilities for Y (reversed)[a,b] = meshgrid(px,py);PT = a.*b; % Joint independent probabilities D = abs(pt - PT)>1e-9; % Threshold set above roundoff if total(D)>0 disp('The pair {X,Y} is NOT independent')disp('To see where the product rule fails, call for D') elsedisp('The pair {X,Y} is independent') end

idbn.m function p = idbn(px,py) uses marginal probabilities to determine the joint probability matrix (arranged as on the plane) for an independent pair of simple randomvariables.

function p = idbn(px,py) % IDBN p = idbn(px,py) Matrix of joint independent probabilities% Version of 5/9/95 % Determines joint probability matrix for two independent% simple random variables (arranged as on the plane) [a,b]= meshgrid(px,fliplr(py)); p = a.*b

isimple.m Takes as inputs the marginal distributions for an independent pair $\left\{X,Y\right\}$ of simple random variables. Sets up the joint distribution probability matrix P as in idbn , and forms the calculating matrices $t,u$ as in jcalc . Calculates basic quantities and makes available matrices $X,Y,PX,PY,P,t,u$ for additional calculations.

% ISIMPLE file isimple.m Calculations for independent simple rv % Version of 5/3/95X = input('Enter row matrix of X-values '); Y = input('Enter row matrix of Y-values ');PX = input('Enter X probabilities '); PY = input('Enter Y probabilities ');[a,b] = meshgrid(PX,fliplr(PY));P = a.*b; % Matrix of joint independent probabilities [t,u]= meshgrid(X,fliplr(Y)); % t, u matrices for joint calculations EX = dot(X,PX) % E[X]EY = dot(Y,PY) % E[Y] VX = dot(X.^2,PX) - EX^2 % Var[X]VY = dot(Y.^2,PY) - EY^2 % Var[Y] disp(' Use array operations on matrices X, Y, PX, PY, t, u, and P')

how can chip be made from sand
is this allso about nanoscale material
Almas
are nano particles real
yeah
Joseph
Hello, if I study Physics teacher in bachelor, can I study Nanotechnology in master?
no can't
Lohitha
where is the latest information on a no technology how can I find it
William
currently
William
where we get a research paper on Nano chemistry....?
nanopartical of organic/inorganic / physical chemistry , pdf / thesis / review
Ali
what are the products of Nano chemistry?
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
learn
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
learn
da
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Bhagvanji
hey
Giriraj
Preparation and Applications of Nanomaterial for Drug Delivery
revolt
da
Application of nanotechnology in medicine
has a lot of application modern world
Kamaluddeen
yes
narayan
what is variations in raman spectra for nanomaterials
ya I also want to know the raman spectra
Bhagvanji
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
Nasa has use it in the 60's, copper as water purification in the moon travel.
Alexandre
nanocopper obvius
Alexandre
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
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
Hafiz
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
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive