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

 Page 7 / 24

oddsdf.m Sets up calibrating frequencies for calculating posterior odds.

```% ODDSDF file oddsdf.m Frequencies for calculating odds % Version of 12/4/93% Sets up calibrating frequencies % for calculating posterior oddsA = input('Enter matrix A of frequencies for calibration group 1 '); B = input('Enter matrix B of frequencies for calibration group 2 ');n = length(A(:,1)); % Number of questions (rows of A) m = length(A(1,:)); % Number of answers to each questionp1 = sum(A(1,:)); % Number in calibration group 1 p2 = sum(B(1,:)); % Number in calibration group 2a = A/p1; b = B/p2;disp(' ') % Blank line in presentation disp(['Number of questions = ',num2str(n),]) % Size of profile disp(['Answers per question = ',num2str(m),]) % Usually 3: yes, no, uncertain disp(' Enter code for answers and call for procedure "odds" ')disp(' ')```

oddsdp.m Sets up conditional probabilities for odds calculations.

```% ODDSDP file oddsdp.m Conditional probs for calculating posterior odds % Version of 12/4/93% Sets up conditional probabilities % for odds calculationsa = input('Enter matrix A of conditional probabilities for Group 1 '); b = input('Enter matrix B of conditional probabilities for Group 2 ');p1 = input('Probability p1 an individual is from Group 1 '); n = length(a(:,1));m = length(a(1,:)); p2 = 1 - p1;disp(' ') % Blank line in presentation disp(['Number of questions = ',num2str(n),]) % Size of profile disp(['Answers per question = ',num2str(m),]) % Usually 3: yes, no, uncertain disp(' Enter code for answers and call for procedure "odds" ')disp(' ')```

## Bernoulli and multinomial trials

btdata.m Sets parameter p and number n of trials for generating Bernoulli sequences. Prompts for bt to generate the trials.

```% BTDATA file btdata.m Parameters for Bernoulli trials % Version of 11/28/92% Sets parameters for generating Bernoulli trials % Prompts for bt to generate the trialsn = input('Enter n, the number of trials '); p = input('Enter p, the probability of success on each trial ');disp(' ') disp(' Call for bt')disp(' ')```

bt.m Generates Bernoulli sequence for parameters set by btdata. Calculates relative frequency of “successes.”

```% BT file bt.m Generates Bernoulli sequence % version of 8/11/95 Revised 7/31/97 for version 4.2 and 5.1, 5.2% Generates Bernoulli sequence for parameters set by btdata % Calculates relative frequency of 'successes'clear SEQ; B = rand(n,1)<= p; % ones for random numbers<= p F = sum(B)/n; % relative frequency of onesN = [1:n]'; % display detailsdisp(['n = ',num2str(n),' p = ',num2str(p),])disp(['Relative frequency = ',num2str(F),])SEQ = [N B];clear N; clear B;disp('To view the sequence, call for SEQ') disp(' ')```

binomial.m Uses ibinom and cbinom to generate tables of the individual and cumulative binomial probabilities for specified parameters. Note that for calculation in MATLAB it is usually much more convenient and efficient to use ibinom and/or cbinom .

```% BINOMIAL file binomial.m Generates binomial tables % Version of 12/10/92 (Display modified 4/28/96)% Calculates a TABLE of binomial probabilities % for specified n, p, and row vector k,% Uses the m-functions ibinom and cbinom.n = input('Enter n, the number of trials '); p = input('Enter p, the probability of success ');k = input('Enter k, a row vector of success numbers '); y = ibinom(n,p,k);z = cbinom(n,p,k); disp([' n = ',int2str(n),' p = ' num2str(p)]) H = [' k P(X = k) P(X>= k)'];disp(H) disp([k;y;z]')```

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