create account

Random data stuff by mathowl

View this thread on: hive.blogpeakd.comecency.com
@mathowl
$2.12
Random data stuff
Besides my main research did some data driven stuff this week. Curve fitting Corona, probability for traffic accidents and thinking about Matlab storage. 

## Logistic function and Corona

I got a pretty fit for the corona spread in China:

<center>
![corona_confirmed.jpg](https://files.steempeak.com/file/steempeak/mathowl/Vrv1hj4x-corona_confirmed.jpg)
</center>

It is a [logistic function](https://en.wikipedia.org/wiki/Logistic_function) which is exactly what you would expect. At 49 days we are pretty close to saturation. At day 21 it looked for a moment that it was heading towards a logistic function which would top at 45k but alas it climbed much higher. Data available [here](https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv).


## Traffic accidents in China

I was looking at the data on traffic related deaths in china. So apparently [18.2 people in 100 000](https://en.wikipedia.org/wiki/List_of_countries_by_traffic-related_death_rate) die from traffic accidents per year. Assume that this data is independent with respect to age, class etc, then the probability that you become 70 and didn't die from a traffic accident is (1- 18.2/(100 000))^70 which gives you about 98.7% to not get run over. Which means that if you know about 54 people from birth that there is about a 50% chance that at least one of them dies in a traffic accidents which seems pretty high to me D:  (Last calculation follows from  (1- ((1- 18.2/(100 000))^70)^54 = 0.497   ) )


## Storage

I needed to store some big matrices for some tests and  noticed that I was running out of space which was a bit distressing. I don't really work that much with data so let's have a look at what is going on the storage front. I am using Matlab (2016a) so I expected that it wouldn't be optimised for storage.
<center>
![image.png](https://files.steempeak.com/file/steempeak/mathowl/G1E10Tcm-image.png)  
</center>
That costvec2 contains about a 50 x 5e5 matrix. 130 Mb / 25e6 =  5.2 bits per matrix element which actually isn't that bad.  
馃憤  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 109 others
馃憥  ,
properties (23)
authormathowl
permlinkrandom-data-stuff
categoryhive-196387
json_metadata{"app":"steempeak/2020.03.1","format":"markdown","tags":["stem","ocd","palnet","neoxian","steemstem","datascience","corona","mathematics"],"links":["https://en.wikipedia.org/wiki/Logistic_function","https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv","https://en.wikipedia.org/wiki/List_of_countries_by_traffic-related_death_rate"],"image":["https://files.steempeak.com/file/steempeak/mathowl/Vrv1hj4x-corona_confirmed.jpg","https://files.steempeak.com/file/steempeak/mathowl/G1E10Tcm-image.png"]}
created2020-03-11 14:47:42
last_update2020-03-11 14:47:42
depth0
children4
last_payout2020-03-18 14:47:42
cashout_time1969-12-31 23:59:59
total_payout_value1.065 HBD
curator_payout_value1.054 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,117
author_reputation44,993,635,814,620
root_title"Random data stuff"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,262,471
net_rshares9,394,423,786,195
author_curate_reward""
vote details (175)
@olaf123
***But the end of all things has drawn near.*** Therefore be sober-minded and be sober unto prayers.(1 Peter 4:7)
## Question from the Bible, *Is there such a thing as untimely death in the Bible?*
Watch the Video below to know the Answer...
***(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)***
https://youtu.be/DEVMyCh6wF4
Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to **Thank you, our beloved friend.**  
Check our [Discord Chat](https://discord.gg/vzHFNd6) 
Join our Official Community: https://steemit.com/created/hive-182074
馃憤  
馃憥  
properties (23)
authorolaf123
permlinkl8qtuvqc3xf
categoryhive-196387
json_metadata""
created2020-03-11 14:55:57
last_update2020-03-11 14:55:57
depth1
children0
last_payout2020-03-18 14:55:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length707
author_reputation-10,813,981,844,129
root_title"Random data stuff"
beneficiaries[]
max_accepted_payout10,000.000 HBD
percent_hbd100
post_id96,262,764
net_rshares-24,776,302,496
author_curate_reward""
vote details (2)
@pocket-change
FLAGGED FOR EXCESSIVE UP-VOTE FROM @steemflagrewards...
ATTENTION @steemflagrewards...
March 15, 2020...  22.6  Hollywood Time...
properties (22)
authorpocket-change
permlinkq79uae
categoryhive-196387
json_metadata{"users":["steemflagrewards"],"app":"steemit/0.2"}
created2020-03-16 05:37:21
last_update2020-03-16 05:37:21
depth1
children0
last_payout2020-03-23 05:37:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length129
author_reputation-1,335,054,250,788
root_title"Random data stuff"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,396,693
net_rshares0
@steem-ua
#### Hi @mathowl!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 3.387 which ranks you at **#5251** across all Steem accounts.
Your rank has dropped 50 places in the last three days (old rank 5201).

In our last Algorithmic Curation Round, consisting of 75 contributions, your post is ranked at **#57**.
##### Evaluation of your UA score:

* You're on the right track, try to gather more followers.
* You have already convinced some users to vote for your post, keep trying!
* Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-random-data-stuff-20200316t192007z
categoryhive-196387
json_metadata"{"app": "beem/0.21.0"}"
created2020-03-16 19:20:09
last_update2020-03-16 19:20:09
depth1
children0
last_payout2020-03-23 19:20:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length770
author_reputation23,214,230,978,060
root_title"Random data stuff"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,414,021
net_rshares0
@steemstem
re-mathowl-random-data-stuff-20200318t033847939z
<div class='text-justify'> <div class='pull-left'> <center> <br /> <img width='200' src='https://res.cloudinary.com/drrz8xekm/image/upload/v1553698283/weenlqbrqvvczjy6dayw.jpg'> </center>  <br/> </div> 

This post has been voted on by the **SteemSTEM curation team** and voting trail. It is elligible for support from @curie and @minnowbooster.<br /> 

If you appreciate the work we are doing, then consider supporting our witness [@stem.witness](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=stem.witness). Additional witness support to the [curie witness](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=curie) would be appreciated as well.<br /> 

For additional information please join us on the [SteemSTEM discord]( https://discord.gg/BPARaqn) and to get to know the rest of the community!<br />

Please consider using the <a href='https://www.steemstem.io'>steemstem.io</a> app and/or including @steemstem in the list of beneficiaries of this post. This could yield a stronger support from SteemSTEM.
properties (22)
authorsteemstem
permlinkre-mathowl-random-data-stuff-20200318t033847939z
categoryhive-196387
json_metadata{"app":"steemstem-bot"}
created2020-03-18 03:38:51
last_update2020-03-18 03:38:51
depth1
children0
last_payout2020-03-25 03:38:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,050
author_reputation262,017,435,115,313
root_title"Random data stuff"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,452,503
net_rshares0