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

 Page 5 / 24

mincalct.m Modification of mincalc . Assumes mincalc has been run, calls for new target vectors and performs same calculations as mincalc.

```% MINCALCT file mincalct.m Aditional target probabilities % Version of 9/1/93 Updated for version 5 on 6/6/97 % Assumes a data file which includes% 1. Call for minvecq to set q basic minterm vectors. % 2. Data vectors DV. The first combination is always A|Ac.% 3. Row matrix DP of data probabilities. The first entry is always 1. TV = input('Enter matrix of target Boolean combinations ');[md,nd] = size(DV);[mt,nt] = size(TV);MT = 1:mt; rd = rank(DV);CT = zeros(1,mt); % Identification of computable target probabilities for j = 1:mtCT(j) = rd == rank([DV;TV(j,:)]);end ct = find(CT);CCT = TV(ct,:)/DV; % Determination of coefficients for computable targets ctp = DP*CCT'; % Determination of probabilitiesdisp(' Computable target probabilities') disp([MT(ct); ctp]')```

## Independent events

minprob.m `function y = minprob(p)` calculates minterm probabilities for the basic probabilities in row or column vector p . Uses the m-functions mintable, colcopy .

```function y = minprob(p) % MINPROB y = minprob(p) Minterm probs for independent events% Version of 4/7/96 % p is a vector [P(A1) P(A2) ... P(An)], with % {A1,A2, ... An} independent.% y is the row vector of minterm probabilities % Uses the m-functions mintable, colcopyn = length(p); M = mintable(n);a = colcopy(p,2^n); % 2^n columns, each the vector p m = a.*M + (1 - a).*(1 - M); % Puts probabilities into the minterm% pattern on its side (n by 2^n) y = prod(m); % Product of each column of m```

imintest.m `function y = imintest(pm)` checks minterm probabilities for independence.

```function y = imintest(pm) % IMINTEST y = imintest(pm) Checks minterm probs for independence% Version of 1/25//96 % Checks minterm probabilities for independence% Uses the m-functions mintable and minprob m = length(pm);n = round(log(m)/log(2)); if m ~= 2^ny = 'The number of minterm probabilities is incorrect'; elseP = mintable(n)*pm'; pt = minprob(P');a = fix(n/2); s = abs(pm - pt)>1e-7; if sum(s)>0 disp('The class is NOT independent')disp('Minterms for which the product rule fails') y = reshape(s,2^a,2^(n-a));else y = 'The class is independent';end end```

ikn.m `function y = ikn(P,k)` determines the probability of the occurrence of exactly k of the n independent events whose probabilities are in row or column vector P
( k may be a row or column vector of nonnegative integers less than or equal to n ).

```function y = ikn(P,k) % IKN y = ikn(P,k) Individual probabilities of k of n successes% Version of 5/15/95 % Uses the m-functions mintable, minprob, csortn = length(P); 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 probabilitiesy = p(k+1);```

#### Questions & Answers

how can chip be made from sand
Eke Reply
is this allso about nanoscale material
Almas
are nano particles real
Missy Reply
yeah
Joseph
Hello, if I study Physics teacher in bachelor, can I study Nanotechnology in master?
Lale Reply
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....?
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
has a lot of application modern world
Kamaluddeen
yes
narayan
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
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

### Read also:

#### Get Jobilize Job Search Mobile App in your pocket Now!

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? By By Michael Nelson By OpenStax By Brooke Delaney By OpenStax By Brooke Delaney By OpenStax By OpenStax By David Corey By Brooke Delaney