# \#stats

**URL:** https://discourse.julialang.org/tag/stats/184.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [StatsBase.wsum doesn't work for iterators](https://discourse.julialang.org/t/statsbase-wsum-doesnt-work-for-iterators/118289)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 4:56pm UTC](https://discourse.julialang.org/t/statsbase-wsum-doesnt-work-for-iterators/118289 "2024-08-19T16:56:28Z")

</div>

StatsBase.wsum (and others) don’t work on iterators. Is there a fundamental reason for this? And speaking of which, the docstring shows wsum(v, w::AbstractVector, \[dim\]) but in reality all methods are v::AbstractArray. …

---

## [Cointegration Johansen test and Autocorrelation Durbin Watson Test](https://discourse.julialang.org/t/cointegration-johansen-test-and-autocorrelation-durbin-watson-test/103950)

<div class="topic-metadata">

**Author:** [@ginger\_snaps](https://discourse.julialang.org/u/ginger_snaps)\
**Replies:** 2\
**Last updated:** [September 18, 2023, 10:21am UTC](https://discourse.julialang.org/t/cointegration-johansen-test-and-autocorrelation-durbin-watson-test/103950 "2023-09-18T10:21:37Z")

</div>

Hello. I’m new in Julia, but I need some performance so I’m rewriting from R and Python to Julia but I have problems with built-in functions. I know that Julia is not as wide as R and Python, but I was sure that I would…

---

## [Figure gallery with source code and more](https://discourse.julialang.org/t/figure-gallery-with-source-code-and-more/44911)

<div class="topic-metadata">

**Author:** [@yoninazarathy](https://discourse.julialang.org/u/yoninazarathy)\
**Replies:** 0\
**Last updated:** [August 14, 2020, 4:34am UTC](https://discourse.julialang.org/t/figure-gallery-with-source-code-and-more/44911 "2020-08-14T04:34:11Z")

</div>

Hi Community, We’ve created a figure gallery presenting the 126 figures that appear in “Statistics with Julia” and are generated by the open sourced code described in the book. This can perhaps be (another) useful quick…

---

## [List challenge](https://discourse.julialang.org/t/list-challenge/43447)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 6\
**Last updated:** [July 22, 2020, 11:41am UTC](https://discourse.julialang.org/t/list-challenge/43447 "2020-07-22T11:41:05Z")

</div>

I have a list: my\_list=collect(1:n)', and a repeatability vector: repeat\_list = \[n1, n1, n2, n1, n2, n2\]. I would like to create a new list with repeated n1 times, 2 repeated n1 times, 3 repeated n2 times, etc. The len…

---

## [Grouping RegexMatch](https://discourse.julialang.org/t/grouping-regexmatch/28509)

<div class="topic-metadata">

**Author:** [@hasanOryx](https://discourse.julialang.org/u/hasanOryx)\
**Replies:** 3\
**Last updated:** [September 8, 2019, 11:38am UTC](https://discourse.julialang.org/t/grouping-regexmatch/28509 "2019-09-08T11:38:44Z")

</div>

I’m trying to read this file, and find how many time the following words appear: file: What's in a name? That which we call a rose By any other name would smell as sweet! rose :) Words to be found: rose' and sweet\` so…

---

## [Median vs 50th Quantile giving different answers](https://discourse.julialang.org/t/median-vs-50th-quantile-giving-different-answers/18414)

<div class="topic-metadata">

**Author:** [@davidzentlermunro](https://discourse.julialang.org/u/davidzentlermunro)\
**Replies:** 6\
**Last updated:** [February 18, 2019, 1:22pm UTC](https://discourse.julialang.org/t/median-vs-50th-quantile-giving-different-answers/18414 "2019-02-18T13:22:09Z")

</div>

I’m getting different answers for median(v,w::AnalyticWeights) and quantile(v,w::AnalyticWeights,0.5) and not sure why. Any ideas?

---

## [Multiple linear regression with weights](https://discourse.julialang.org/t/multiple-linear-regression-with-weights/7449)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 10\
**Last updated:** [December 2, 2017, 3:01pm UTC](https://discourse.julialang.org/t/multiple-linear-regression-with-weights/7449 "2017-12-02T15:01:48Z")

</div>

Background: I’m trying to fit a 2D symmetric Gaussian to a an image of a point source. So I have an image of a light source, it’s Gaussian in shape, and I want to find it’s exact center and get a measure of how good the …
