Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Julia Cookbook

You're reading from   Julia Cookbook Over 40 recipes to get you up and running with programming using Julia

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher
ISBN-13 9781785882012
Length 172 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Raj R Jalem Raj R Jalem
Author Profile Icon Raj R Jalem
Raj R Jalem
Jalem Raj Rohit Jalem Raj Rohit
Author Profile Icon Jalem Raj Rohit
Jalem Raj Rohit
Arrow right icon
View More author details
Toc

Descriptive statistics

Descriptive statistics is the discipline of statistics, where information and features, which explain the essence of data, are extracted and analyzed. This part is very important, as it helps us estimate the shape and features of data for model and algorithm selection.

Getting ready

You have to have the StatsBase package ready. This can be done by running using StatsBase in the REPL.

How to do it...

  1. The variance of a vector can be found using the var() function. This can be done by the following:
    var(x)
    

    The output would look like the following:

    How to do it...

  2. For calculating the weighted variance of the vector x with respect to weight vector w, both of them can be simply added to the variance() function as arguments:

    How to do it...

  3. For calculating the standard deviation, the std() function can be used. This can be done by executing the following in the REPL:
    std(x)
    

    The output would look like the following:

    How to do it...

  4. As with the calculation of the preceding variance, the weighted...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image