# Normalization of histograms

**URL:** <https://discourse.julialang.org/t/normalization-of-histograms/25007>\
**Category:** Statistics\
**Created:** [June 6, 2019, 1:16pm UTC](https://discourse.julialang.org/t/normalization-of-histograms/25007 "2019-06-06T13:16:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![woutersj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/woutersj/32/8771_2.png) [@woutersj](https://discourse.julialang.org/u/woutersj)\
**Post date:** [June 6, 2019, 1:16pm UTC](https://discourse.julialang.org/t/normalization-of-histograms/25007/1 "2019-06-06T13:16:52Z")

</div>

This used to work in v0.6.3:

```julia
using StatsBase
normalize(fit(Histogram,rand(100),closed=:left))

```

In v1.1.0 I get `UndefVarError: normalize not defined`. Is this a bug or has the syntax changed?

---

<div class="post-metadata">

**Author:** ![woutersj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/woutersj/32/8771_2.png) [@woutersj](https://discourse.julialang.org/u/woutersj)\
**Post date:** [June 6, 2019, 1:22pm UTC](https://discourse.julialang.org/t/normalization-of-histograms/25007/2 "2019-06-06T13:22:40Z")

</div>

Okay, I’ve found it, I had to do `using LinearAlgebra` first.
