# How does Loess decide how many sub-intervals to use for local regression?

**URL:** https://discourse.julialang.org/t/how-does-loess-decide-how-many-sub-intervals-to-use-for-local-regression/2615
**Category:** Statistics
**Tags:** question
**Created:** [March 12, 2017, 5:34am UTC](https://discourse.julialang.org/t/how-does-loess-decide-how-many-sub-intervals-to-use-for-local-regression/2615 "2017-03-12T05:34:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KrishnaKanhaiya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krishnakanhaiya/32/443_2.png) [@KrishnaKanhaiya](https://discourse.julialang.org/u/KrishnaKanhaiya)
#### Post date: [March 12, 2017, 5:34am UTC](https://discourse.julialang.org/t/how-does-loess-decide-how-many-sub-intervals-to-use-for-local-regression/2615/1 "2017-03-12T05:34:05Z")

</div>

Hi,  
I want to do local regression at each and every input point. For example:

```julia
using Loess
xs = sort(rand(100)) #100 input points
p = 1
ys = exp(p*tpoints) + 0.1 * rand(100)
model = loess(xs,ys)

```

when I do  
`model.bs`  
I only get 2-D array of 33×3 dimension. I want to get b’s for all points in xs (i.e 100×3 dimension). Is there a way to do it?
