{"id":336,"date":"2021-08-10T21:38:04","date_gmt":"2021-08-10T12:38:04","guid":{"rendered":"https:\/\/derrylab.com\/?p=336"},"modified":"2021-08-10T21:42:37","modified_gmt":"2021-08-10T12:42:37","slug":"now-i-understand-what-is-identically-distributed-iid-random-variable","status":"publish","type":"post","link":"https:\/\/blog.derrylab.com\/index.php\/2021\/08\/10\/now-i-understand-what-is-identically-distributed-iid-random-variable\/","title":{"rendered":"Now I Understand: What is Independent and Identically Distributed (IID) Random Variable"},"content":{"rendered":"\n<p>I was working with my friend on a Random Number Generator (RNG) research paper. We need to evaluate the quality of our random bitstream result using the NIST SP800-90B entropy test.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Since this is my first time working in the RNG field, I tried to gather all information about evaluating the quality of an RNG. The SP800-90B standard is the starting point. I tried to read it again and again since there is so much jargon, one of them that took me a long time to understand is the Independent and Identically Distributed (IID). I got the concept right but each article seems to explain different complicated cases and examples which made me confuse even more. Eventually, I end up with this explanation:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Independent is when a value is not affected by the other value.<br>For example, if you roll two dice, the result does not depend on each other. <\/p><p>Identically Distributed is when the probability of any specific outcome is the same.<br>For example, if you flip a coin, you had 50 50 chances of getting head or tail. That value doesn&#8217;t change every time you flip a coin. On the other hand, if you have a collection of weighted coins, where each coin had a different probability of head or tail, that would be not identically distributed. <\/p><p>In machine learning, IID often implies that all of the data from the training set comes from the same process and that data is not related to each other.<\/p><cite>Terms: Independent and Identically Distributed (IID) by IntuitiveML (https:\/\/www.youtube.com\/watch?v=EGKbPww2_rc)<\/cite><\/blockquote>\n\n\n\n<p>Now I can sleep well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was working with my friend on a Random Number Generator (RNG) research paper. We need to evaluate the quality of our random bitstream result using the NIST SP800-90B entropy test.<\/p>\n","protected":false},"author":1,"featured_media":348,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[118],"tags":[122,126,119,127,121,125,124,123,120,128],"class_list":["post-336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-understanding","tag-entropy","tag-identically-distributed","tag-iid","tag-independent","tag-nist","tag-nowiunderstand","tag-random-number-generator","tag-rng","tag-statistics","tag-understanding"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2021\/08\/erik-mclean-C3T8KTZxTFM-unsplash-scaled-e1628599260397.jpg?fit=512%2C341&ssl=1","jetpack-related-posts":[{"id":591,"url":"https:\/\/blog.derrylab.com\/index.php\/2022\/03\/18\/now-i-understand-what-is-oblivious-ram\/","url_meta":{"origin":336,"position":0},"title":"Now I Understand: What is Oblivious RAM?","author":"derry","date":"March 18, 2022","format":false,"excerpt":"ORAM is the acronym of an Oblivious Random-Access Machine. The main idea is to hide the access patterns from attackers. For example, when a client tries to access data stored in the server, the server cannot gain any information about the user access pattern. Imagine data storage, where each data\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/blog.derrylab.com\/index.php\/category\/programming\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/03\/harrison-broadbent-ING1Uf1Fc30-unsplash-1.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/03\/harrison-broadbent-ING1Uf1Fc30-unsplash-1.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/03\/harrison-broadbent-ING1Uf1Fc30-unsplash-1.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/03\/harrison-broadbent-ING1Uf1Fc30-unsplash-1.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/03\/harrison-broadbent-ING1Uf1Fc30-unsplash-1.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":146,"url":"https:\/\/blog.derrylab.com\/index.php\/2020\/12\/29\/arty-a7-riscv-debugging-using-j-link\/","url_meta":{"origin":336,"position":1},"title":"Stuck at Debugging RISCV on Arty A7 using J-Link","author":"derry","date":"December 29, 2020","format":false,"excerpt":"Running the RISCV Processor I got an Arty A7 board coming to my desk, and I'm curious to try running a RISCV processor on it. Not long after following the tutorial from Digilent, I was able to program the RISCV processor on this board just by using a MicroUSB cable.\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/blog.derrylab.com\/index.php\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2659,"url":"https:\/\/blog.derrylab.com\/index.php\/2023\/03\/09\/why-is-it-so-hard-to-start-working-on-our-own-dissertation\/","url_meta":{"origin":336,"position":2},"title":"Why is it So Hard to Start Working on Our Own Dissertation","author":"derry","date":"March 9, 2023","format":false,"excerpt":"Today I felt so overwhelmed. Too many tasks have to be done here and there, constantly consuming my energy to work on my dissertation. I don't quite understand what happens. So I asked ChatGPT exactly using this post title, and it responded with good pieces of advice. :) Why? Starting\u2026","rel":"","context":"In &quot;Understanding&quot;","block_context":{"text":"Understanding","link":"https:\/\/blog.derrylab.com\/index.php\/category\/understanding\/"},"img":{"alt_text":"blur chains chrome close up","src":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2023\/03\/pexels-photo-220237.jpeg?fit=1200%2C853&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2023\/03\/pexels-photo-220237.jpeg?fit=1200%2C853&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2023\/03\/pexels-photo-220237.jpeg?fit=1200%2C853&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2023\/03\/pexels-photo-220237.jpeg?fit=1200%2C853&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2023\/03\/pexels-photo-220237.jpeg?fit=1200%2C853&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2210,"url":"https:\/\/blog.derrylab.com\/index.php\/2022\/10\/11\/this-is-the-most-expensive-thing-that-i-have-repaired\/","url_meta":{"origin":336,"position":3},"title":"This is The Most Expensive Thing That I Have Repaired","author":"derry","date":"October 11, 2022","format":false,"excerpt":"That day, Professor told me to start learning about power side-channel attacks. Our lab has some ChipWhisperer lite kits, and I took one. I took the course and learned how to do CPA and DPA with invasive methods, which we need to connect physically to the victim chip to measure\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/blog.derrylab.com\/index.php\/category\/hardware\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/10\/alexander-grey-8lnbXtxFGZw-unsplash-scaled.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/10\/alexander-grey-8lnbXtxFGZw-unsplash-scaled.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/10\/alexander-grey-8lnbXtxFGZw-unsplash-scaled.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/10\/alexander-grey-8lnbXtxFGZw-unsplash-scaled.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2022\/10\/alexander-grey-8lnbXtxFGZw-unsplash-scaled.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4090,"url":"https:\/\/blog.derrylab.com\/index.php\/2024\/11\/22\/how-to-easily-deploy-pixtral-large-using-docker-vllm-for-self-hosting-with-one-liner-command\/","url_meta":{"origin":336,"position":4},"title":"How To Easily Deploy Pixtral Large Using Docker VLLM For Self Hosting With One Liner Command","author":"derry","date":"November 22, 2024","format":false,"excerpt":"Recently, Mistral has released a powerful multimodal model with 123B parameters. In this blog post, we will first understand what Pixtral is. Then, we will quickly get into the process of deploying Pixtral Large using VLLM. Understanding Pixtral Pixtral is an innovative AI model designed to handle complex tasks with\u2026","rel":"","context":"In &quot;Artificial Intelligence&quot;","block_context":{"text":"Artificial Intelligence","link":"https:\/\/blog.derrylab.com\/index.php\/category\/artificial-intelligence\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2024\/11\/image.png?fit=1024%2C768&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2024\/11\/image.png?fit=1024%2C768&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2024\/11\/image.png?fit=1024%2C768&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2024\/11\/image.png?fit=1024%2C768&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5208,"url":"https:\/\/blog.derrylab.com\/index.php\/2025\/12\/31\/how-to-recruit-great-talents-efficiently-with-ai-powered-recruitment-engine\/","url_meta":{"origin":336,"position":5},"title":"How to Recruit Great Talents Efficiently with AI Powered Recruitment Engine","author":"derry","date":"December 31, 2025","format":false,"excerpt":"I built\u00a0Talens\u00a0because I was tired of how broken hiring feels when you are on the side that actually has to build and lead teams. Before working in industry, I was a\u00a0research lab team leader, responsible for selecting students and researchers who would stay with us for years. Later, as an\u00a0AI\u2026","rel":"","context":"In &quot;Artificial Intelligence&quot;","block_context":{"text":"Artificial Intelligence","link":"https:\/\/blog.derrylab.com\/index.php\/category\/artificial-intelligence\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2025\/12\/image-1.png?fit=1200%2C559&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2025\/12\/image-1.png?fit=1200%2C559&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2025\/12\/image-1.png?fit=1200%2C559&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2025\/12\/image-1.png?fit=1200%2C559&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/blog.derrylab.com\/wp-content\/uploads\/2025\/12\/image-1.png?fit=1200%2C559&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/posts\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":5,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/posts\/336\/revisions\/352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/media\/348"}],"wp:attachment":[{"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.derrylab.com\/index.php\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}