Skip to main content

Posts

Application of Poisson Distribution

#include #include #include long fact(int n) { if(n<=0) return 1; else return n*fact(n-1); } double poisson(int x, double a) { if(x<0) return 0; else { return (exp(-a)*pow(a,x))/fact(x) ; } } int main() { int x; double mean; clrscr(); printf("enter d value of x & mean: "); scanf(" %d %lf",&x, &mean); printf(" p(%d) = %f",x,poisson(x,mean)); getch(); return 0; } by Amrender

Triangular Distribution

#include #include #include double f(double x, double a, double b, double c) { if(a <= x && x <= b) { return (2*(x-a))/((b-a)*(c-a)); } else if( b < x && x <= c) { return 2*(c-x)/((c-b)*(c-a)); } else return 0; } double F(double x, double a, double b, double c) { if(x<=a) return 0; else if( a c) return 1; } int main() { double x,a,b,c; clrscr(); printf("enter d value of x, a, b & : "); scanf(" %lf %lf %lf %lf",&x, &a, &b, &c); printf(" f(%.2f) = %f",x,f(x,a,b,c)); printf(" F(%.2f) = %f",x,F(x,a,b,c)); getch(); return 0; } ) By Alka (4501/09)

Future Event LIST (Simulation & Modeling)

Script for grocery shop with given inter-arrival/service time distribution assumed by Amrendra Kumar mca/4549/09 #include #include #include void addevent(int,int); void depart(); void arrival(); struct eventinfo { int type; int time; struct eventinfo *next; } * header; int inter[9] = {1,1,6,3,7,5,2,4,1}; int service[9] = {4,2,5,4,1,5,4,1,4}; int i=0,j=0; void main() { int t, eventtime; clrscr(); header = (struct eventinfo *) malloc(sizeof(struct eventinfo)); header ->time=0; header->next = NULL; header->type = 0; t =0; addevent(0,1); eventtime = header->next->time; while(t<=60) { if(t == eventtime) { printf("\nt=%d ",t); if(header->next->type ==1) arrival(); else depart(); if(header->next != NULL) eventtime = header->next->time; else eventtime = 100; if(i>=9 || j&

Measures of Central tendency

According to Prof Bowley averages are statistical constants which provide an idea about the concentration of values in the central part of the distribution. The five common measures of central tendency are : 1. Mean [Airthmetic mean] 2. Median 3. Mode 4. harmonic mean 5. Geometric mean According to Prof. Yule following are the characterstics required to measure central tendency: 1. Central tendency should be rigidly defined 2. It should be comprehensive and easy to determine 3. Should be based on all observations 4. It should not be much affected by the fluctuation of sampling 5. It should not be affected by extreme values Let us talk about these distributions in detail: 1. Arithmetic mean: Arithmetic mean of a set of observations can be calculated as their sum divided by the number of observations In case f i is the frequency of variable x i then distribution becomes ' Properties of Arithmetic Mean 1. Algebric sum of deviations of a set of v

simulation question bank

What is simulation? List a few advantages and disadvantages of simulation. Differentiate between the following: Continuous and Discrete Systems Static and Dynamic Systems Open and Closed Systems Deterministic and Stochastic activities Static Physical Models and Dynamic Physical Models Static Mathematical Models and Dynamic Mathematical Models Write short notes on Monte –Carlo methods M/M/1 model Continuous probabilistic distributions Binomial Distribution Bernoulli Distribution Exponential Distribution Poisson Distribution Erlang Distribution Log normal distribution Geometric distribution Hyper geometric distribution Normal distribution What is Discrete system simulation? Write short notes on GPSS. Explain at least 5 GPSS block-diagram symbols. What do you mean by Action Times and Succession of Events. Design a supermarket simulation model using GPSS symbols. Design a Telephone System simulation model using GPSS symbols. Writ

Key E-commerce Terms

• E-Commerce : electronic commerce was meant for facilitation of commercial transactions electronically, using technology such as Electronic Data Interchange (EDI), Electronic Funds Transfer (EFT), etc • Models of e-commerce : B2B,B2C, C2B AND C2B • EDI: can be stated as collection of standard message formats to exchange data between organizations computers via any electronic service. • SET: is a standard protocol for securing credit card transactions over insecure networks, more specifically addressing transactions over Internet. Please note clearly, SET is not itself a payment system, but rather a set of security protocols • Merchant account: When you want to have credit card, you fill up form/details and submit same to financial institution, on similar lines when some want to start e-business/ online transactions (which need online transaction through credit, debit, charge cards), one must step up a merchant account.