# The R Online WikiBook

I came across the R Programming Wikibook at http://en.wikibooks.org/wiki/R_Programming

It is quite surprisingly good- easy to read for a beginner- handy and concise reference for intermediate users. Some chapters like clustering could do with some more support from the community -see http://en.wikibooks.org/wiki/R_Programming/Clustering

## References

But I really liked the pages on Graphics, Modeling and Maths (including Matrix)

See

http://en.wikibooks.org/wiki/R_Programming/Graphics

I really believe that a consolidated one book online documentation can be achieved for R, only if we follow a moderated-wiki like structure. This can be of a great use- since online help documents for R are currently not concise or present a seemingly professional look (due to multiple formats and styles to the documentation) and they rarely do multiple package comparison. All this has made R books the top selling books on statistics on Amazon but a project like R deserves atleast one comprehensive online and concise book which can be used readily without going through all the scattered multiple documentation- a bit like a R Online Doc.This could help in stage next of the project in getting more users to be comfortable with it.

Any volunteers :) ?

# Online Analytics: Monte Carlo Simulation

Do your eyes glaze over when ever you hear the words simulation ? Simulation refers to trying to predict actual events , usually in a controlled atmosphere. Monte Carlo simulation is a type of simulation that draws on repeated random sampling to hit the result, and it is usually computed using computers (unless you are Enrico Fermi who did it in 1942.)

The classical definition as per the most peer reviewed online statistical journal (called www.wikipedia.org )

“the term describes a large and widely-used class of approaches. However, these approaches tend to follow a particular pattern:

1. Define a domain of possible inputs.
2. Generate inputs randomly from the domain, and perform a deterministic computation on them.
3. Aggregate the results of the individual computations into the final result.”

and ”

Monte Carlo simulation methods are especially useful in studying systems with a large number of coupled degrees of freedom, such as liquids, disordered materials, strongly coupled solids, and cellular structures (see cellular Potts model). More broadly, Monte Carlo methods are useful for modeling phenomena with significant uncertainty in inputs, such as the calculation of risk in business (for its use in the insurance industry, see stochastic modelling). A classic use is for the evaluation of definite integrals, particularly multidimensional integrals with complicated boundary conditions.

Monte Carlo methods in finance are often used to calculate the value of companies, to evaluate investments in projects at corporate level or to evaluate financial derivatives. The Monte Carlo method is intended for financial analysts who want to construct stochastic or probabilistic financial models as opposed to the traditional static and deterministic models.”

Here is a very good example of using the simulation to calculate distribution of leads to a website and the resultant conversion rate and probabilities. The down loadable excel sheet is great for learning both this class of simulation as well , maybe adding more robust mathematics in your online estimation efforts. The site is also great for excel related stuff. http://www.vertex42.com/ExcelArticles/mc/SalesForecast.html

Use it if you think estimating Online Profitabilty is more complex than :