**Wiekvoet**, and kindly contributed to R-bloggers)

In my previous post I tried building Williams designs in R. Since that code was running a bit slow, this was an ideal test for Julia. Big enough to be at least slightly realistic, small enough that it is doable.

I am very impressed. Almost twenty fold speed increase, even though this was the best I could do in R, the most naive way possible in Julia.

R Julia Ratio

Double Williams design 4, 100 times 3.97 sec 0.212 sec 0.053

Williams design 5, 10 times 289.5 sec 18.54 sec 0.064

I’d surely love to use Julia more. For instance, if I could port some of the algorithm’s of Professor Ng Machine Learning class to Julia? I don’t think it is possible yet, but what is not, may come.

#### Julia code

#### Note

Both designs were created using the same script. If you ask an even number of design points using the odd algorithm, then this will work. You just get a design with double the rows, carry over balanced, every treatment equally often in each row and each column.

**leave a comment**for the author, please follow the link and comment on his blog:

**Wiekvoet**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...