<< Chapter < Page Chapter >> Page >

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(' ')
Got questions? Get instant answers now!

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(' ')
Got questions? Get instant answers now!

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(' ')
Got questions? Get instant answers now!

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(' ')
Got questions? Get instant answers now!

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]')
Got questions? Get instant answers now!

Questions & Answers

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
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
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?
Damian Reply
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
s. Reply
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
Devang Reply
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
Abhijith Reply
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?
s. Reply
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 ?
SUYASH Reply
for screen printed electrodes ?
SUYASH
What is lattice structure?
s. Reply
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
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