<< Chapter < Page Chapter >> Page >

ckn.m function y = ckn(P,k) determines the probability of the occurrence of k or more of the n independent events whose probabilities are in row or column vector P ( k may be a row or column vector)

function y = ckn(P,k) % CKN y = ckn(P,k) Probability of k or more successes% Version of 5/15/95 % Probabilities of k or more of n independent events% Uses the m-functions mintable, minprob, csort n = length(P);m = length(k); T = sum(mintable(n)); % The number of successes in each mintermpm = minprob(P); % The probability of each minterm [t,p]= csort(T,pm); % Sorts and consolidates success numbers % and adds corresponding probabilitiesfor i = 1:m % Sums probabilities for each k value y(i) = sum(p(k(i)+1:n+1));end
Got questions? Get instant answers now!

parallel.m function y = parallel(p) determines the probability of a parallel combination of the independent events whose probabilities are in row or columnvector p .

function y = parallel(p) % PARALLEL y = parallel(p) Probaaability of parallel combination% Version of 3/3/93 % Probability of parallel combination.% Individual probabilities in row matrix p. y = 1 - prod(1 - p);
Got questions? Get instant answers now!

Conditional probability and conditional idependence

bayes.m produces a Bayesian reversal of conditional probabilities. The input consists of P ( E | A i ) and P ( A i ) for a disjoint class { A i : 1 i n } whose union contains E . The procedure calculates P ( A i | E ) and P ( A i | E c ) for 1 i n .

% BAYES file bayes.m Bayesian reversal of conditional probabilities % Version of 7/6/93% Input P(E|Ai) and P(Ai) % Calculates P(Ai|E) and P(Ai|Ec)disp('Requires input PEA = [P(E|A1) P(E|A2) ... P(E|An)]')disp(' and PA = [P(A1) P(A2) ... P(An)]')disp('Determines PAE = [P(A1|E) P(A2|E) ... P(An|E)]')disp(' and PAEc = [P(A1|Ec) P(A2|Ec) ... P(An|Ec)]')PEA = input('Enter matrix PEA of conditional probabilities '); PA = input('Enter matrix PA of probabilities ');PE = PEA*PA'; PAE = (PEA.*PA)/PE;PAEc = ((1 - PEA).*PA)/(1 - PE); disp(' ')disp(['P(E) = ',num2str(PE),])disp(' ') disp(' P(E|Ai) P(Ai) P(Ai|E) P(Ai|Ec)')disp([PEA; PA; PAE; PAEc]')disp('Various quantities are in the matrices PEA, PA, PAE, PAEc, named above')
Got questions? Get instant answers now!

odds.m The procedure calculates posterior odds for for a specified profile E . Assumes data have been entered by the procedure oddsf or oddsp .

% ODDS file odds.m Posterior odds for profile % Version of 12/4/93% Calculates posterior odds for profile E % Assumes data has been entered by oddsdf or oddsdpE = input('Enter profile matrix E '); C = diag(a(:,E))'; % aa = a(:,E) is an n by n matrix whose ith columnD = diag(b(:,E))'; % is the E(i)th column of a. The elements on the % diagonal are b(i, E(i)), 1<= i<= n % Similarly for b(:,E)R = prod(C./D)*(p1/p2); % Calculates posterior odds for profile disp(' ')disp(['Odds favoring Group 1: ',num2str(R),])if R>1 disp('Classify in Group 1')else disp('Classify in Group 2')end
Got questions? Get instant answers now!

Questions & Answers

where we get a research paper on Nano chemistry....?
Maira Reply
nanopartical of organic/inorganic / physical chemistry , pdf / thesis / review
Ali
what are the products of Nano chemistry?
Maira Reply
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
Google
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
Hafiz Reply
revolt
da
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
Jyoti Reply
ya I also want to know the raman spectra
Bhagvanji
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
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
Brian Reply
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?
LITNING Reply
what is a peer
LITNING Reply
What is meant by 'nano scale'?
LITNING Reply
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 ?
Bob Reply
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?
Damian Reply
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
Adin
why?
Adin
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
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
Samson Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask