Skip to main content

Posts

Difference between the Standard Deviation, Standard Error and Confidence Itervals

In its simplest: the standard deviation represents the variability of input values, the standard error (of the mean) represents variability of computed mean, the confidence intervals represents where the 'true' mean value might lie. Computation: the standard deviation is computed from the variance of your data - input values, the standard error is computed from the standard deviation, the confidence intervals are computed from the standard error. Read this: Many people confuse the standard deviation (SD) and the standard error of the mean (SE) and are unsure which, if either, to use in presenting data in graphical or tabular form. The SD is an index of the variability of the original data points and should be reported in all studies. The SE reflects the variability of the mean values, as if the study were repeated a large number of times. By itself, the SE is not particularly useful; however, it is used in constructing 95% and 99% confidence intervals ( CIs ), which indicate ...

Google Testing Blog: TotT: EXPECT vs. ASSERT

Google commented on different types of assertations in their testing framework ( Google Testing Blog: EXPECT vs. ASSERT)   I have found assertations in my code very useful on many occasions; however, I do not see any need for the EXPECT function. If your code is broken then it is broken and there is no point in continuing and testing conditions which are not likely to be met.  It is like with C++ compiler errors. The most important error is the firtst error. The rest of the erorrs is usually rubish and useless. 

Linked list sorted in an ascending order

Again to practice some of skills I wrote linked list sorted in an ascending order. It is very simple example and it performs only two operation: inserting an item into the appropriate position in the list printing the whole list on the screen The following code is placed in the public domain. Use it as you wish. The code can be downloaded with the solution project file for MS Visual Studio 2008 from here . // LinkedList.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include /* The supplied C code fragment is intended to implement a linked list of integers stored in ascending order. Each element of the list is a struct of type Item holding the integer value, a pointer pred to the previous element, if any, and a pointer succ to the succeeding element, if any. The variable head points to the ?rst element in the list, and tail points to the last element. Initially, both head and tail are NULL. The function insert is intended to insert its argum...

Viterbi Algorithm in C++ and using STL

To practice my C++ and STL skills, I implemented the Viterbi algorithm example from the Wikipedia page:  http://en.wikipedia.org/wiki/Viterbi_algorithm . The original algorithm was implemented in Python. I reimplemented the example in C++ and I used STL (mainly  vector  and  map  classes).  This code is in public-domain. So, use it as you want.  The complete solution for MS Visual C++ 2008 can be found at  http://filip.jurcicek.googlepages.com/ViterbiSTL.rar // ViterbiSTL.cpp : is an C++ and STL implementatiton of the Wikipedia example // Wikipedia: http://en.wikipedia.org/wiki/Viterbi_algorithm#A_concrete_example // It as accurate implementation as it was possible #include "stdafx.h" #include "string" #include "vector" #include "map" #include "iostream" using namespace std; //states = ('Rainy', 'Sunny') //  //observations = ('walk', 'shop', 'clean') //  //start_probability = {'Rainy': 0.6...

BBC NEWS | Magazine | Three little words so hard to say

A very nice article about knowledge and the ability to admit that you don't know. I cite a piece of the text from the article about the work of politicians. BBC NEWS | Magazine | Three little words so hard to say : "'I, in the early days, was trying to persuade a minister this was a really important public policy. He said, 'Do you know what? Repeat victimisation's got too many syllables. Can't you think of something with fewer syllables? Could we call it repeat offending?''"

No Mas FARC - Praga

Abych potpořil aktivity proti FARC v Kolumbii, tak jsem na YouTube nahral toto video. http://youtube.com/bozskyfilip Video bylo vytvořeno pro akci NO MAS FARC - PRAGA 4. 2. 2008 Další informace o akci jsou na http://www.colombiasoyyo.org/