[{"data":1,"prerenderedAt":223},["ShallowReactive",2],{"project-23153451":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":26,"sentiment":27,"stance_mix":28,"scored_comments":32,"aspects":33,"strip":38,"post_text":40,"what":41,"said":62,"maker_in_thread":110,"shape":119,"grid":121,"attempts":178,"same_week":186,"maker_shows":214,"maker_hidden":215,"reader_version":216,"card":217},"23153451","Monty Hall","The Monty Hall Problem in JavaScript","title","Show HN: The Monty Hall Problem in JavaScript","https:\u002F\u002Fgithub.com\u002Fvictorqribeiro\u002Fmontyhall","github.com","atum47",1589288354,2020,15,24,1964,3028,65,"shown","learning_science","probability simulation","web_app",[24,21,25],"monty hall problem","javascript","mixed",-0.235,{"positive":29,"neutral":30,"mixed":31,"critical":30},1,3,0,7,{"idea":34,"design":35,"execution":36},{"positive":29,"critical":31},{"positive":31,"critical":29},{"positive":31,"critical":37},2,[30,31,31,29,31,31,31,31,31,31,31,31,31,39,31,31,31,31,29,31,30,31,29,30],5,null,{"problem":42,"audience":40,"pricing":40,"motivation":49,"time_to_build":40,"stack":60,"openness":61,"stage":61,"team_size":61},{"value":43,"source":44,"evidence":45},"Shows that switching doors wins more often in the Monty Hall problem, by simulating rounds.","maker",[46],{"id":47,"by":11,"text":48},"23162298","well, I made this experiment cause I didn't believed that you would have more chance switching doors. Couldn't wrap my head around the idea...",{"value":50,"source":44,"evidence":51},"The maker did not believe switching doors was better and wanted to see for themselves.",[52,56,57],{"id":53,"by":54,"text":55},"23161904","tombert","Ah, the good ol' Monty Hall problem...this problem (and .999...=1) have caused a ton of arguments between me and my not-quite-as-mathematical friends. I guess the fact that it's…",{"id":47,"by":11,"text":48},{"id":58,"by":11,"text":59},"23162320","yeas, I wrote this code at least 10 years ago because I didn't believed statistics. I had to see for my self. It was a great exercise for both areas, code and probability.",[],"unknown",{"praise":63,"objections":76,"requests":92,"questions":100,"alternatives":109},[64],{"value":65,"source":66,"evidence":67},"Simulation is a good way to learn the counterintuitive probability result.","commenter",[68,72],{"id":69,"by":70,"text":71},"23162318","madrox","Totally! Simulation is a great way of learning this stuff. I spent a lot of time in R doing similar things over the years.",{"id":73,"by":74,"text":75},"23162373","abiogenesis","Try increasing the number of doors and your brain will (slowly) accept it. \"One million doors\" as described in another comment [1] is a good way to visualise it. [1]…",[77,84],{"value":78,"source":66,"evidence":79},"Colors and statistics display are confusing; the stats should show the switch win ratio.",[80],{"id":81,"by":82,"text":83},"23165152","s9w","Some constructive feedback: - The language randomly seems to switch to something else (\"porta\") - Even if you're faintly familiar with the problem (like me), it's hard to gauge…",{"value":85,"source":66,"evidence":86},"Text has a Portuguese word ('porta') mixed into the English interface.",[87,88],{"id":81,"by":82,"text":83},{"id":89,"by":90,"text":91},"23165605","mping","Porta mesma door in Portuguese. Author is probably pt\u002Fpt or pt\u002Fbr",[93],{"value":94,"source":66,"evidence":95},"Add a version starting with many doors that reduces each round.",[96],{"id":97,"by":98,"text":99},"23161993","jancsika","One thing that helps IMO here is to exaggerate the problem: Start with one million doors. Choose one. Now have Monty open 999,998 of them. Do you switch doors? I believe it works…",[101],{"value":102,"source":66,"evidence":103},"Why does switching win more often than staying with the first choice?",[104,105],{"id":53,"by":54,"text":55},{"id":106,"by":107,"text":108},"23162449","wyattpeak","It's a common error, but I don't know if it's most in my experience. I've seen plenty of people fully understand the problem (for some value of fully understand) and insist it…",[],{"comments":32,"answered":30,"key":111},[112,115,118],{"id":113,"text":114},"23166587","yes I am pt\u002Fbr",{"id":116,"text":117},"23166585","yeah, this is one of my earliest code in life. I made sure to kept it close to original as possible, I did translate it to English, must have missed one word. thank you for the…",{"id":58,"text":59},{"commenters":14,"max_depth":39,"maker_replies":32,"first_comment_mins":120,"lifespan_hours":15},237,[122,124,128,129,131,132,134,135,137,140,142,143,145,147,149,152,154,155,159,163,165,169,171,174],[97,31,30,123,98,31],"project\u002Fneutral\u002Fidea",[125,31,31,126,127,31],"23162028","commenter\u002Fneutral\u002Fnone","systemBuilder",[106,31,31,126,107,31],[81,29,29,130,82,31],"project\u002Fcritical\u002Fdesign",[89,29,31,126,90,31],[113,29,31,133,11,29],"maker\u002Fneutral\u002Fnone",[116,29,31,133,11,29],[53,37,31,136,54,31],"other\u002Fneutral\u002Fnone",[138,37,31,136,139,31],"23162121","freefriedrice",[141,37,31,136,74,31],"23162412",[58,37,31,133,11,29],[144,30,31,136,70,31],"23162263",[47,30,31,146,11,29],"maker\u002Fneutral\u002Fidea",[69,30,39,148,70,31],"project\u002Fpositive\u002Fidea",[150,30,31,136,151,31],"23162428","Frost1x",[153,30,31,133,11,29],"23162656",[73,30,31,126,74,31],[156,157,31,158,11,29],"23156280",4,"project\u002Fneutral\u002Fdocs",[160,39,29,161,162,31],"23162050","project\u002Fcritical\u002Fexecution","karanke",[164,39,31,126,11,29],"23162304",[166,39,30,167,168,31],"23162395","project\u002Fneutral\u002Fexecution","Skunkleton",[170,39,31,126,74,31],"23162353",[172,39,29,161,173,31],"23165597","hackerman123469",[175,176,30,167,177,31],"23162538",6,"newtoday",[179,182,185],{"id":180,"t":181,"points":29,"comments":37},"22982864",1587859775,{"id":183,"t":184,"points":37,"comments":37},"22988902",1587924495,{"id":4,"t":12,"points":14,"comments":15},[187,191,196,201,206,210],{"id":188,"name":189,"points":190,"category":20},"23165333","SHA-256 Animation",1053,{"id":192,"name":193,"points":194,"category":195},"23169962","This Word Does Not Exist",956,"ai",{"id":197,"name":198,"points":199,"category":200},"23114103","Twitch Roulette",732,"consumer_social",{"id":202,"name":203,"points":204,"category":205},"23126458","Lite",607,"dev_tools",{"id":207,"name":208,"points":204,"category":209},"23157408","Scan Your PDF","productivity",{"id":211,"name":212,"points":213,"category":209},"23101869","HPI",478,53,false,"v2",{"id":218,"name":5,"line":6,"ai":215,"cat":20,"year":13,"points":14,"comments":15,"rec":26,"s":219,"top":18,"kw":220,"maker":11,"domain":10,"tier":19,"attempts":30,"strip":221,"url":9,"mix":222,"praise":65,"objection":78,"sub":21},23153451,-0.23,[24,21,25],"300100000000050000103013",[29,30,31,30],1794036590382]