# 4.1 Matlab and independent classes  (Page 3/4)

 Page 3 / 4

## Probabilities of boolean combinations

As in the nonindependent case, we may utilize the minterm expansion and the minterm probabilities to calculate the probabilities of Boolean combinations of events. However,it is frequently more efficient to manipulate the expressions for the Boolean combination to be a disjoint union of intersections.

## A simple boolean combination

Suppose the class $\left\{A,\phantom{\rule{0.166667em}{0ex}}B,\phantom{\rule{0.166667em}{0ex}}C\right\}$ is independent, with respective probabilities 0.4, 0.6, 0.8. Determine $P\left(A\cup BC\right)$ . The minterm expansion is

$A\cup BC=M\left(3,\phantom{\rule{0.166667em}{0ex}}4,\phantom{\rule{0.166667em}{0ex}}5,\phantom{\rule{0.166667em}{0ex}}6,\phantom{\rule{0.166667em}{0ex}}7\right),\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{so}\phantom{\rule{4.pt}{0ex}}\text{that}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}P\left(A\cup BC\right)=p\left(3,\phantom{\rule{0.166667em}{0ex}}4,\phantom{\rule{0.166667em}{0ex}}5,\phantom{\rule{0.166667em}{0ex}}6,\phantom{\rule{0.166667em}{0ex}}7\right)$

It is not difficult to use the product rule and the replacement theorem to calculate the needed minterm probabilities. Thus $p\left(3\right)=P\left({A}^{c}\right)P\left(B\right)P\left(C\right)=0.6\cdot 0.6\cdot 0.8=0.2280$ . Similarly $p\left(4\right)=0.0320,\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}p\left(5\right)=0.1280,\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}p\left(6\right)=0.0480,\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}p\left(7\right)=0.1920$ . The desired probability is the sum of these, 0.6880.

As an alternate approach, we write

$A\cup BC=A\bigvee {A}^{c}BC,\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{so}\phantom{\rule{4.pt}{0ex}}\text{that}\phantom{\rule{0.277778em}{0ex}}P\left(A\cup BC\right)=0.4+0.6\cdot 0.6\cdot 0.8=0.6880$

Considerbly fewer arithmetic operations are required in this calculation.

In larger problems, or in situations where probabilities of several Boolean combinations are to be determined, it may be desirable to calculate all minterm probabilities then use theminterm vector techniques introduced earlier to calculate probabilities for various Boolean combinations. As a larger example for which computational aid is highly desirable, consideragain the class and the probabilities utilized in [link] , above.

Consider again the independent class $\left\{{E}_{1},\phantom{\rule{0.166667em}{0ex}}{E}_{2},\phantom{\rule{0.166667em}{0ex}}\cdots ,\phantom{\rule{0.166667em}{0ex}}{E}_{10}\right\}$ with respective probabilities $\left\{0.13\phantom{\rule{0.277778em}{0ex}}0.37\phantom{\rule{0.277778em}{0ex}}0.12\phantom{\rule{0.277778em}{0ex}}0.56\phantom{\rule{0.277778em}{0ex}}0.33\phantom{\rule{0.277778em}{0ex}}0.71\phantom{\rule{0.277778em}{0ex}}0.22\phantom{\rule{0.277778em}{0ex}}0.43\phantom{\rule{0.277778em}{0ex}}0.57\phantom{\rule{0.277778em}{0ex}}0.31\right\}$ . We wish to calculate

$P\left(F\right)=P\left({E}_{1},\cup ,{E}_{3},\left({E}_{4}\cup {E}_{7}^{c}\right),\cup ,{E}_{2},\left({E}_{5}^{c}\cup {E}_{6}{E}_{8}\right),\cup ,{E}_{9},{E}_{10}^{c}\right)$

There are ${2}^{10}=1024$ minterm probabilities to be calculated. Each requires the multiplication of ten numbers. The solution with MATLAB is easy, as follows:

>>P = 0.01*[13 37 12 56 33 71 22 43 57 31];>>minvec10 Vectors are A1 thru A10 and A1c thru A10cThey may be renamed, if desired.>>F = (A1|(A3&(A4|A7c)))|(A2&(A5c|(A6&A8)))|(A9&A10c);>>pm = minprob(P);>>PF = F*pm' PF = 0.6636

Writing out the expression for F is tedious and error prone. We could simplify as follows:

>>A = A1|(A3&(A4|A7c));>>B = A2&(A5c|(A6&A8));>>C = A9&A10c;>>F = A|B|C; % This minterm vector is the same as for F above

This decomposition of the problem indicates that it may be solved as a series of smaller problems. First, we need some central facts about independence ofBoolean combinations.

## Independent boolean combinations

Suppose we have a Boolean combination of the events in the class $\left\{{A}_{i}:1\le i\le n\right\}$ and a second combination the events in the class $\left\{{B}_{j}:1\le j\le m\right\}$ . If the combined class $\left\{{A}_{i},\phantom{\rule{0.277778em}{0ex}}{B}_{j}:1\le i\le n,\phantom{\rule{0.277778em}{0ex}}1\le j\le m\right\}$ is independent, we would expect the combinations of the subclasses to be independent. It is importantto see that this is in fact a consequence of the product rule, for it is further evidence that the product rule has captured the essence of the intuitive notion of independence.In the following discussion, we exhibit the essential structure which provides the basis for the following general proposition.

Proposition . Consider n distinct subclasses of an independent class of events. If for each i the event A i is a Boolean (logical) combination of members of the i th subclass, then the class $\left\{{A}_{1},\phantom{\rule{0.166667em}{0ex}}{A}_{2},\phantom{\rule{0.166667em}{0ex}}\cdots ,\phantom{\rule{0.166667em}{0ex}}{A}_{n}\right\}$ is an independent class.

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 to know photocatalytic properties of tio2 nanoparticles...what to do now
it is a goid question and i want to know the answer as well
Maciej
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
for screen printed electrodes ?
SUYASH
What is lattice structure?
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive