Posts

Stochastic models

I made progress thinking about probability distributions today. I woke up thinking about distributions and then I started thinking about the fundamental axioms and definitions of probability and used them to derive the probabilty mass function for a binomial distribution. The proof helped me to clarify some terminology. A random variable variable is a member of set of experiments. An experiment is series of events. eg. E = {A,B} where A and B are events. An experiment is a series of events like this AAABB. this means A happened 3 times followed by B happening 2 times. A probability of a experiment is given by the amount of times of the occurance of such an experiment divided by the total size of the sample space for that experiments. An experiment with 3 trials with n(E)=2 has a sample space size of 2^3=8. The number of times of of saying obtaining 2A's in such experiment is 3C2*Pr(A)^2*(P(B))^1. This is exactly the form of probability mass function for binomial distribution. ...

Mathematician versus Programmer

the problem with Programmers is their over-reliance on the debugger. the problem with Mathematicians is their over-reliance on rigorous proofs.

Stocastic models and mathematics

I have been studying different models, and it seems I neglected stocastic models. This however are needed to analyse agent based models. My time for submission of proposal is running out, and it seem I will have to learn a bit about statistical modeling before I proceed in well informed manner. There seems to be network models but which i figured are similar to discrete time models. Similar to state based models. I think at the end as much as the computing modeling community want to stay away from the math, math is inescapable so to speak. Math fobia is not the solution to design of modeling, infact math is the utopia of all modeling. Mathematics represents resources, logical or algebraic intellectual tools that can be used across many fields. It is formal language that is meant to formalize our loose statements in science. Useful resource. I think its value derives in its hierachical development, logical consistency. but also its reasoning capability. I think the war between fun...

Amazing paper period.

https://arxiv.org/pdf/1006.0408.pdf

Modeling Part 1

I am back at modeling now. I am reading agent based modeling and individual based modeling by steven railback et.al. Thinking out loud, it gets me thinking about the different types of models. 1. deterministic 2. non deterministic and the subgategories goes like 1. deterministic 1.1 traditional mathematical models ( aggregate models) 2. non deterministic 2.1 statistical models ( sample models ) 2.2 individual based models( individual models ) The models differ in the way they treat their variables. With traditional mathematical models, the variables are aggregates of similar type, eg number of people, height, age, etc. These are what we call quantities, infact quantity is an aggregate of similar things. Traditional mathematics models things by first quantifying and then finding equations that represent the quantity as it changes in time. Normally this is represented using differential equations( it can be done using plain functions however, with a note that s...

99 lisp problems

Here is the solutions to 99 lisp problems so far. I am Problem 11. ;P01 (*) Find the last box of a list. ;Example: ;* (my-last '(a b c d)) ;(D) to my.last :list ifelse emptyp butfirst :list [output first :list] [output my.last butfirst :list] end to my.last2 :list output last :list end ;P02 (*) Find the last but one box of a list. ;Example: ;* (my-but-last '(a b c d)) ;(C D) to my.but.last :list ifelse emptyp butfirst butfirst :list [output :list] [output my.but.last butfirst :list] end ;P03 (*) Find the K'th element of a list. ;The first element in the list is number 1. ;Example: ;* (element-at '(a b c d e) 3) ;C to element.at :list :index ifelse emptyp :list [output :list] [ifelse equalp :index 1 [output first :list] [output element.at butfirst :list (:index - 1)]] end to element.at2 :list :index output item :index :list end ;P04 (*) Find the number of elements of a list. to number.of.elements :list ifelse emptyp :lis...

Logo

Logo is lisp without brackets and some syntax modifications: fput - cons first - car butfirst - cdr list - list sentence - append templates - lambda cond - cond ifelse - if