由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DataSciences版 - how to reduce 10 data points to 8 proportionally
相关主题
报面筋求实习合租 (转载)One phone interview question.
有人在Big Data 用MATLAB ?OR出身转DS求建议
【湾区求职】Data Scientist or Marketing Analytics (统计mast (转载)求教linear regression的一道面试题
python sklearn nearest neighbor user defined metric为啥data science这么强调map reduce这些呢?
suggestion on geospatial data? (转载)新人恳求推荐
也问个模型请问大家有没有直接用java全程写mapreduce的程序的?
如何理解 curse of dimensionalityhive 里面的UDF会被几个node同时运行么?
有什么模型能把linear regression model 和 time series model (转载)大数据讲座:Big Data from Map Reduce to Spark
相关话题的讨论汇总
话题: points话题: data话题: linear
进入DataSciences版参与讨论
1 (共1页)
y**3
发帖数: 267
1
Hello,
I am building a time series model. The first couple of years I have 8 data
points.
but this year I have 10 data points. I am trying to convert the 10 data
points to 8 proportionally so that I can use all they years data to catch
seasonality( the differences between two nearest neighbors within one year
are different) .
Is there a sound mathematical way to achieve this? Thanks
E*********g
发帖数: 185
2
interpolate to 40 points and pick one every 5.
y**3
发帖数: 267
3
thanks!!!!
planning to do linear interpolation. But what if the relationship is not
straightly linear? Linear interpolation is gonna affect the projection
E*********g
发帖数: 185
4
there are many ways to do interpolation. don't have
to be linear
https://en.wikipedia.org/wiki/Interpolation
y**3
发帖数: 267
5
Thanks!
My problem is I want the original 1st and 10th data points same and turn
the 8 data points in between into 6 data points. So when I apply
interpolation, am I going to only use the 1st and 10th to compute the linear
(if I choose linear interpolation) coefficient? and then compute the other
6?( the original 10 data points are equally spaced).
E*********g
发帖数: 185
6
1 to 10 : 9 spaces
=> 1 to 64: 63 spaces, pick 1 for every 9 points => get 8 points total,
including 1st and 10th
You'better find a library to do it in a non-linear way.
If using python, try:
https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html
y**3
发帖数: 267
7
Great!!!thanks
1 (共1页)
进入DataSciences版参与讨论
相关主题
大数据讲座:Big Data from Map Reduce to Sparksuggestion on geospatial data? (转载)
问一道facebook的面试题.也问个模型
Data Scientist Phone Interview preparation (转载)如何理解 curse of dimensionality
retail bussiness预测客户的流失概率有什么模型能把linear regression model 和 time series model (转载)
报面筋求实习合租 (转载)One phone interview question.
有人在Big Data 用MATLAB ?OR出身转DS求建议
【湾区求职】Data Scientist or Marketing Analytics (统计mast (转载)求教linear regression的一道面试题
python sklearn nearest neighbor user defined metric为啥data science这么强调map reduce这些呢?
相关话题的讨论汇总
话题: points话题: data话题: linear