Ramblings of a Bayesian (Part I)

“There are three kinds of lies: lies, damned lies and statistics.”  In this first article, I will try to explain the concepts of what we now call probability. You may have heard probabilities used in different contexts; here are three common examples: 1. There is a 30% chance of rain in Stony Brook, NY, tomorrow, […]

Hello world!

Welcome to your brand new blog at SB You: Web Publishing for You. To get started, simply log in, edit or delete this post and check out all the other options available to you. Consider joining the Stony Brook SB You user group on Yammer. For assistance, visit our comprehensive support site and check out […]

Adventures with Beaglebone Green Wireless

I wanted to share some experiences with the Beaglebone Green Wireless that I received a few weeks ago.  This board seems ideal for IoT applications but since it is pretty new and since not many people own it yet, there is not much support out there. Let me first say that I really love how […]

Open Hardware Microfluidics Controller Arduino Shield

Finally, I managed to produce our first open hardware project.  The Microfluidics Controller allows us to drive 8 air pressure controllers and 8 air valves.  For this we have two 4-channel Digital-to-Analog chips (MCP4728) that produce voltages from 0-5V as input for our air-pressure controllers.  The air switching valves are driven using a darlington array […]

Gelman bioassay without MCMC

I am currently teaching a class on Advanced Numerical Methods in Biomedical Engineering (BME 502) at Stony Brook University and I wanted to include some basic Bayesian Analysis.  I chose to go through some of the examples in “Bayesian Data Analysis” by A. Gelman, J.B. Carlin, H.S. Stern, D.B. Dunson, A.Vehtari and D.B. Rubin.  Since […]

Mathjax in Squarespace 6

Finally, I managed to get Mathjax working in Squarespace 6.  This is how it works: 1. Under Settings -> Code injection insert the following in the header: <script type=”text/javascript” src=”http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML”></script> then insert the following in a code block as HTML and you will see the Mathjax rendered equation below: When \(a \ne 0\), there are […]

Syntax highlighting in Squarespace 6

I held off switching to Squarespace 6 because of its lack of support for javascript-based syntax highlighters that I have used in Squarespace 5. I finally found a solution that may not be ideal but works. I am using Textmate 2 on the OS X that provides very nice syntax highlighting for most languages. Use […]

MatPlotLib running in Cocoa under Xcode

I have always been frustrated that python does not have a nice GUI builder similar to what XCode provides.  Since I am a scientist and engineer, I am really fond of the combination matplotlib/scipy/numpy.  Here I will give an example of how to combine the two using the python cocoa bridge that is build into […]

Sending Humidity and Temperature data with ZigBee

This is the solution that I posed to my senior design in Biomedical Engineering class (BME 440).  Over the last few weeks we covered basic Arduino programming (e.g. debounced toggle, DHT sensor), we did some basic ZigBee communication (AT mode).  The final project was to build a wireless Humidity, Temperature sensor that can transmit the […]