# Are the input weights to WeightedData expected to be in the interval \[0,1\]?

**URL:** <https://community.wolfram.com/t/are-the-input-weights-to-weighteddata-expected-to-be-in-the-interval-0-1/21038>\
**Category:** Questions\
**Tags:** data-science, statistics-and-probability\
**Created:** [November 13, 2022, 7:58pm UTC](https://community.wolfram.com/t/are-the-input-weights-to-weighteddata-expected-to-be-in-the-interval-0-1/21038 "2022-11-13T19:58:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangentvectors](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tangentvectors/32/9065_2.png) [@tangentvectors](https://community.wolfram.com/u/tangentvectors)\
**Post date:** [November 13, 2022, 7:58pm UTC](https://community.wolfram.com/t/are-the-input-weights-to-weighteddata-expected-to-be-in-the-interval-0-1/21038/1 "2022-11-13T19:58:30Z")

</div>

Are the input weights to WeightedData expected to be in the interval [0,1]?

At present, my weights are in the integer range [0, ~100000].

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [November 13, 2022, 11:24pm UTC](https://community.wolfram.com/t/are-the-input-weights-to-weighteddata-expected-to-be-in-the-interval-0-1/21038/2 "2022-11-13T23:24:37Z")

</div>

Hi Richard,

They do not. I have used values outside of `[0, 1]`. Are you seeing an issue with weights outside of that range?

---

<div class="post-metadata">

**Author:** ![tangentvectors](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tangentvectors/32/9065_2.png) [@tangentvectors](https://community.wolfram.com/u/tangentvectors)\
**Post date:** [November 14, 2022, 12:03am UTC](https://community.wolfram.com/t/are-the-input-weights-to-weighteddata-expected-to-be-in-the-interval-0-1/21038/3 "2022-11-14T00:03:01Z")

</div>

I have not observed any anomalies so far. I was taking a sanity check before using it in a 6-day long computation involving many data sets.
