# Update to "Statistics with Julia DRAFT", is online

**URL:** <https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836>\
**Category:** Package Announcements\
**Created:** [January 1, 2020, 3:39am UTC](https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836 "2020-01-01T03:39:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoninazarathy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yoninazarathy/32/10086_2.png) [@yoninazarathy](https://discourse.julialang.org/u/yoninazarathy)\
**Post date:** [January 1, 2020, 3:39am UTC](https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836/1 "2020-01-01T03:39:47Z")

</div>

Happy new year,

Here is an [update](https://people.smp.uq.edu.au/YoniNazarathy/julia-stats/StatisticsWithJulia.pdf) to “Statistics with Julia: Fundamentals for Data Science, Machine Learning and Artificial Intelligence.”

We just put this updated version on-line.

Not long to go till submission to the publisher. As always, happy for feedback.

Yoni.

---

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [January 1, 2020, 7:20am UTC](https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836/2 "2020-01-01T07:20:32Z")

</div>

this may be a silly question. are there any specific reasons to use pyplot as the back end of plotting? does that mean the readers need to have python and matplotlib installed to use your julia code?

---

<div class="post-metadata">

**Author:** ![Albert\_Zevelev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albert_zevelev/32/11844_2.png) [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Post date:** [January 2, 2020, 1:02am UTC](https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836/3 "2020-01-02T01:02:38Z")

</div>

The function in Listing 1.5 can be done in fewer lines.

```nohighlight
function bubbleSort!(a)
    n = length(a)
    for i in 1:n-1, j in 1:n-i
        if a[j] > a[j+1]
            a[j], a[j+1] = a[j+1], a[j]
        end
    end
    return a
end

```

---

<div class="post-metadata">

**Author:** ![Albert\_Zevelev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albert_zevelev/32/11844_2.png) [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Post date:** [January 4, 2020, 3:50am UTC](https://discourse.julialang.org/t/update-to-statistics-with-julia-draft-is-online/32836/4 "2020-01-04T03:50:15Z")

</div>

@yoninazarathy the ticks on the 3rd plot in listing 1.9 are a bit inconsistent.  
Maybe consider:

> M = z[1:101,1:101];  
> p3 = heatmap(M, c=cgrad([:blue, :red]), yflip=true, ylabel=“y”,  
> xticks=([1:20:101;], xVals[1:20:101]), yticks=([1:20:101;], yVals[1:20:101]) );
