# Archimedes' Hatbox -- Hyperspherical Pseudorandom Vectors

**URL:** <https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224>\
**Category:** Staff Picks\
**Tags:** computer-science, data-science, engineering, graphics-and-visualization, numerical-computation, statistics-and-probability, machine-learning, staff-pick\
**Created:** [December 11, 2023, 1:10pm UTC](https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224 "2023-12-11T13:10:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcbeckman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bcbeckman/32/24364_2.png) [@bcbeckman](https://community.wolfram.com/u/bcbeckman)\
**Post date:** [December 11, 2023, 1:10pm UTC](https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224/1 "2023-12-11T13:10:55Z")

</div>

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/cefea145-7a77-47a0-891f-4dcb0b3702a6)

[DOWLOAD-DESKTOP-NOTEBOOK.nb](https://community.wolfram.com/uploads/short-url/4oIYKdMZpbgg7YGiJtsqRCmjpQd.nb) (16.1 MB)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [December 11, 2023, 11:54pm UTC](https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224/2 "2023-12-11T23:54:42Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial column _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and [Your Profile](http://community.wolfram.com/web/bcbeckman) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![pleasureoffiguring](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pleasureoffiguring/32/18977_2.png) [@pleasureoffiguring](https://community.wolfram.com/u/pleasureoffiguring)\
**Post date:** [December 12, 2023, 11:47am UTC](https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224/3 "2023-12-12T11:47:03Z")

</div>

Regarding the coordinate-dropping approach, have you already seen the [technical report of Voelker _et al._](http://compneuro.uwaterloo.ca/files/publications/voelker.2017.pdf)? As for sampling over a ball, it would be interesting to compare with [the approach of Barthe _et al._](https://arxiv.org/abs/math/0503650), which uses a (multi)normal distribution and an exponential distribution together, and [the approach of Harman and Lacko](https://doi.org/10.1016/j.jmva.2010.06.002), which takes a decompositional approach. (And of course, the normal variate approach is [a Marsaglia original](https://doi.org/10.1214/aoms/1177692644).)

---

<div class="post-metadata">

**Author:** ![bcbeckman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bcbeckman/32/24364_2.png) [@bcbeckman](https://community.wolfram.com/u/bcbeckman)\
**Post date:** [December 12, 2023, 6:10pm UTC](https://community.wolfram.com/t/archimedes-hatbox-hyperspherical-pseudorandom-vectors/23224/4 "2023-12-12T18:10:06Z")

</div>

Thanks for these great references!
