Update to "Statistics with Julia DRAFT", is online

Happy new year,

Here is an update 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.

17 Likes

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?

2 Likes

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

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
2 Likes

@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]) );

1 Like