Earlier this week on Google Plus, Hal Rottenberg posted a PowerShell idea he had. His goal was to identify a group of objects that would be statistically significant. For example, given a collection of files, group the files by size … Continue reading...
To enable repeatable testing of the statistical functions I’m creating I decided to create a test script. $data1 = @( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ) $data2 = @( 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 ) get-mean -numbers $data1 get-mean...
This measures the degree of dependence between two sets of values - +1 indicates perfect positive correlation 0 indicates no correlation -1 indicates perfect negative correlation We can calculate the correlation coefficient using this function function...
Another simple calculation in PowerShell function get-standarddeviation { [ CmdletBinding ( ) ] param ( [double[]] $numbers ) $avg = $numbers | Measure-Object -Average | select Count , Average $popdev = 0 foreach ( $number in $numbers ) { $popdev += Read...
Been looking at some simple statistical calculations. First off calculating the mean (arithmetic mean aka average in layman’s speak) For this we can use Measure-Object function get-mean { [ CmdletBinding ( ) ] param ( [double[]] $numbers...
Microsoft Scripting Guy Ed Wilson here, the hotel we are using this weekend has free wireless access points setup throughout the facility. I decided to take my laptop with me as I headed downstairs to get some breakfast. The horse show does not begin...