Showing posts with label statistics. Show all posts
Showing posts with label statistics. Show all posts

Sunday, February 03, 2013

Family of density functions in R

There is a family of density functions in R. Their names follows this pattern:

d<distribution name>

For example: dnorm, dbinom etc.

Now when do we need such functions?

Whenever

  • you know your target distribution and 
  • you know its distribution parameters and 
  • you want to know the probability of occurrence of an input.
For example
  • you know that it is Normal distribution and
  • you know that its Mean is 0 and SD is 1 and
  • you want to know the probability of occurrence of -0.5555556 then
  • invoke dnorm(c(-0.5555556),mean=0,sd=1)
Nice.

Saturday, July 21, 2012

minimum deviations

Median leads to minimum sum of absolute deviations.
Mean leads to minimum sum of deviation squares.
!!!

Friday, June 15, 2012

Programming language not based on boolean algebra

Programming languages are designed to be executed by a machine which understands Boolean Algebra. Naturally to express an idea in these programming languages one will have to totally unambiguous. Encapsulation and Abstraction concepts of prgramming languages try hard to hide or abstract the context in which the programmer tries to express something. But sooner or later it gets very complex.
Although I have very limited understanding of Fuzzy logic and similar mathematical/statistical concepts, but can we develop some programming language which is based on these foundations rather on Boolean Algebra? Or is it already there?
What I am vaguely imagining is a platform:
1. Is a composition of context bound expressions.
2. Would start with very contextual expressions and assume that they are correct and totally discrete and unambiguous.
3. Working towards the common goal of the program, when these expressions interact with others then there respective contexts should be corrected so that they make sense to each other.
4. The expressions remain the same and aren't corrected. The contexts are corrected.
5. It has to be iterative and evolving.
6. Not sure if the contexts should be aware of the bigger goal of the program. How will the contexts and their corrections align towards the main objective of the program?