Cumulative bins, starting at zero and normalizing

on Monday, April 4th, 2016 3:04 | by Christian Rohrsen

In the last meeting Björn proposed to do correlations of cumulative increasing bins. He said to do that taking the zeroth point (last library point where prediction is still not done) and use it for having a potential 1 of correlation coefficient at the beginning. I could not do that because I didnt save the zeroth points, and this will be a bit tedious and confusing considering that many flies were tested and probably the order is not 100% known. Thus, I just did the bins skipping this zeroth point. After all, we should see something similar with this one. First two graphs: c105;;c232>TNT (first and second prediction point), second: WTBxTNT, third: WTBxc105;;c232.

c105>TNTcumbinsfirst predCorrelationbothneigh

c105>TNTcumbinssec predCorrelationbothneigh

WTBxTNTTNTxWTBcumbinsfirst predCorrelationbothneighTNTxWTBcumbinssec predCorrelationbothneigh

WTBxc105;;c232.WTBxc105first predCorrelationbothneighWTBxc105sec predCorrelationbothneigh

 

Examples of how each of the flies look like. So they are basically cumulative bins with each single fly (each in different colour). Just to have a hint how does the singularity looks like.  exampleallfliesb exampleallfliescumbins exampleallfliesr   Second thing I did is normalize the to have a range from -1 to 1 all of them (I have to double check the range in the script) and also setting them at a starting point of zero. I did this because we do not want to have differences in the correlation coefficient due to a different offset of the values of the wing beat and neither because of the starting point (if the fly was already flying to the right full gas, then it could be that it has an influence in the following prediction).

c105;;c232 –> first at starting at zero without normalizing and then with normalizing. The next is just the RMSE (not so important).

Correl-startingzero-c105>TNTfirstpredCorrel-norm-c105>TNTfirstpred

RMSE-startingzero-c105>TNTfirstpredRMSE-norm-c105>TNTfirstpred

Print Friendly, PDF & Email

Category: R code, Spontaneous Behavior, strokelitude, WingStroke

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.