r/AskStatistics • u/Alternative-Dare4690 • Sep 15 '24
How can i visualize this using code?
1
u/Leather-Produce5153 Sep 16 '24
generate a sample and plot the density, pretty much gives you all you need.
1
-2
u/CowboyKm Sep 15 '24
You can use Markdown
-7
u/Alternative-Dare4690 Sep 15 '24
I mean how can i code out how the variance becomes expected value as an example?
2
u/CowboyKm Sep 15 '24
Check the examples here.
Where do you want to depict those? If you use python (notebooks) you can open a Markdown cell.
If you use R with R studio you can do something similar afaik
-2
u/Speakop Sep 15 '24
I would use R markdown
-2
u/Alternative-Dare4690 Sep 15 '24
I mean how can i code out how the variance becomes expected value as an example?
22
u/SalvatoreEggplant Sep 15 '24
See: https://www.reddit.com/r/Rlanguage/comments/1fhdeyx/how_can_i_visualize_this_using_code/