租金 预测

by Zhen Liu

刘震

如何预测租金并优化租赁期限,从而节省资金 (How to Predict Rent and Optimize Your Lease Duration So You Can Save Money)

In my last post, we talked about how to pick the best month to sign the lease based on seasonality. Now, how long should you sign the lease for when facing different options like 12-month, 15-month, 18-month or longer? Is there any strategy in selecting the best option to save money?

在我的上一篇文章中 ,我们讨论了如何根据季节选择最佳月份来签署租约。 现在,当面对不同的选择(例如12个月,15个月,18个月或更长时间)时,您应该签署多长时间的租约? 选择省钱的最佳选择是否有任何策略?

To analyze this, I modelled 353 cities’ rent data from Zillow (one-bedroom, city-level data). In this article, I will show you how to make time series predictions, and which cities are predicted to increase the most in rent!

为了对此进行分析,我从Zillow建模了353个城市的租金数据(一居室,城市级别的数据)。 在本文中,我将向您展示如何进行时间序列预测,以及预测哪些城市的租金涨幅最大!

首先,租赁期限如何帮助您节省资金? (First, how does lease duration help you save money?)

As shown below, you can save money by signing a longer lease if you predict the rent will increase in your city. If the monthly rent increases $100 in the next year, you’ll save $1,200 by signing a 2-year lease, then renew it year-by-year.

如下图所示,如果您预计城市租金会上涨,则可以通过签一份更长的租约来省钱。 如果明年的月租金增加100美元,则您可以通过签订2年的租约,然后逐年续约来节省1200美元。

您如何预测租金会增加吗? (How do you predict if rent will increase?)

We observed that rent is an additive time series with a combination of seasonality, trend and some random noise.

我们观察到,租金是具有季节性,趋势和一些随机噪声的组合的附加时间序列。

Additive model: Y(t) =Seasonality(t) + Trend(t) + Randomness(t)

加性模型:Y(t)=季节性(t)+趋势(t)+随机性(t)

We can decompose a time series into the right hand side of the equation above by applying R’s stl() function (stl stands for "seasonal and trend decomposition using locally weighted scatterplot smoothing”).

我们可以通过应用R的stl()函数将时间序列分解为上述方程式的右侧(stl代表“使用局部加权散点图平滑的季节和趋势分解”)。

# Decompose the additive time seriesdecomposed_rent <- stl(rent.series, s.window="periodic") #periodic means the seasonality factor is same for every year
# Extract the components from time seriesseasonal   <- decomposed_rent$time.series[,1]trend       <- decomposed_rent$time.series[,2]random     <- decomposed_rent$time.series[,3]

You can simply apply the st() function in R on the time series format of rent data to predict rent in the next 2 years.

您可以在租金数据的时间序列格式中简单地在R中应用st()函数来预测未来2年的租金。

# Forecast rent for the next 24 months with 95% Confidence Intervalfore_rent<-stlf(rent.series, s.window="period",h=24, level = 95)

预计哪些城市租金上涨? (Which cities have the predicted increase of rent?)

*How to read the plots: The light green band area after 2018 is the 95% Confidence Interval of the rent prediction. The text in purple tells you how much you can save if you sign a 2-year rent vs 1-year rent, according to the purple rectangular area outlined. I used ggplot2 for all the plots.

*如何阅读地块:2018年后的浅绿 色带区域是租金预测的95%置信区间。 根据概述的紫色矩形区域,紫色文本告诉您如果签定2年租金与1年租金,您可以节省多少。 我将 ggplot2 用于所有绘图。

1.海湾地区 (1. Bay Area)

Sunnyvale’s predicted monthly rent increase is the greatest among all 246 cities I analyzed, which is $165 (comparing 2018–01’s rent to the predicted rent in 2019–01). So signing a 2-year lease in 2018 Jan can save you 165*12= $ 1980 on the second year; signing a 18-month lease can save 165*6 = $990. Given the seasonality effect in Sunnyvale, you should also try to avoid renewing the lease around July.

在我分析的所有246个城市中,森尼韦尔的预计每月租金涨幅最大,为165美元(将2018-01年度的租金与2019-01年度的预计租金进行比较)。 因此,在2018年1月签订为期2年的租赁,第二年可为您节省165 * 12 = $ 1980 ; 签订18个月的租约可节省165 * 6 = 990美元 。 考虑到森尼韦尔的季节性影响,您还应尽量避免在7月前后续订租约。

2,丹佛 (2.Denver)

3,南加州 (3.Southern California)

4.西雅图地区 (4. Seattle Area)

5.佛罗里达 (5. Florida)

6.德州 (6. Texas)

For the 11 cities above, if a 2-year lease isn’t an option, 18-months can still save a lot compared to an yearly updated increasing rent.

对于上述11个城市,如果不选择2年租约,则与每年更新的租金增长相比,18个月仍可以节省很多钱。

Which other cities show a huge leap in rent? I plotted the 20 cities total (including the cities mentioned above) to show you a comparison of rent as well as the increase of rent among more cities.

还有哪些城市在租金上有巨大飞跃? 我绘制了20个城市(包括上述城市)的总数,以向您显示租金的比较以及更多城市之间的租金增长。

The length of line segment of each city is the increase of the rent where the red dot is the rent in 2018–01 and the green is the predicted rent in 2019 -01.

每个城市线段长度是租金的增加量,其中红点是2018-01的租金,绿色是2019-01的预计租金。

From the plot above, Lakewood (Denver Metro in CO) and El Cajon (San Diego Metro in CA)’s rents are not that high among the 20 cities, but the “step” of increase is bigger compared to other cities with similar range of rent.

从上图可以看出,在20个城市中,莱克伍德(科罗拉多州的丹佛地铁)和埃尔卡洪(加利福尼亚州的圣地亚哥地铁)的租金并不高,但涨幅的“步伐”比其他类似范围的城市大租金。

The cities with rent >$2000 and significant predicted increase are all in CA (Top 4 of the plot). The rent there is already expensive, and they are getting more expensive, faster.

租金超过$ 2000美元且预计大幅增长的城市都在CA(地块的前4位)。 那里的租金已经很昂贵了,而且变得越来越昂贵,越来越快。

Among the top 20, there are 8 in CA, 6 in FL, 2 in WA, 2 in TX, 1 in NY and 1 in CO.

在前20名中,CA排名第8位,FL排名第6位,WA排名第2位,TX排名第2位,NY排名第1位,CO排名第1位。

有没有哪个城市的租金趋势不大? (Are there any cities that don’t show much trend in rent?)

For the cities above, there’s no predicted increase. So for cities with very significant seasonality effect like Boston and Wilmington, it doesn’t really matter how long you sign the lease; but which month you sign.

对于以上城市,没有预计的增长。 因此,对于像波士顿和威尔明顿这样的季节性影响非常大的城市,签下租约多长时间并不重要。 但您签署的月份

The month with the highest rent in Boston is November, while it’s April in Wilmington.

波士顿租金最高的月份是11月,威尔明顿的月份是4月。

If you are curious about what are other cities like this, read more about cities with seasonality in my last post!

如果您对这样的其他城市感到好奇,请在我的上一篇文章中阅读有关季节性城市的更多信息

Find the R code for time series models and visualization with ggplot2 here.

在此处找到用于ggplot2的时间序列模型和可视化的R代码。

Give me a few claps and follow me here if you find it helpful!

给我一些鼓掌 如果对您有用,请在这里关注我!

翻译自: https://www.freecodecamp.org/news/https-medium-freecodecamp-org-how-to-predict-rent-and-select-the-best-lease-duration-to-save-money-5cf35145d398/

租金 预测

租金 预测_如何预测租金并优化租赁期限,从而节省资金相关推荐

  1. 使用Java写出身高预测_何预测孩子身高遗传潜质

    1.男孩:(父亲身高+母亲身高+13)÷2±5cm 2.女孩:(父亲身高+母亲身高-13)÷2±5cm 「长高」三要素: 1.运动:以轻巧的伸展运动为主,诸如游泳和球类运动. 2.营养:大多数矮小儿童 ...

  2. 时间序列模型预测_时间序列预测,使用facebook先知模型预测股价

    时间序列模型预测 1.简介 (1. Introduction) 1.1. 时间序列和预测模型 (1.1. Time-series & forecasting models) Tradition ...

  3. python整数预测_时间序列预测全攻略(附带Python代码) | 36大数据

    介绍 时间序列(简称TS)被认为是分析领域比较少人知道的技能.(我也是几天前才知道它).但是你一定知道最近的小型编程马拉松就是基于时间序列发展起来的,我参加了这项活动去学习了解决时间序列问题的基本步骤 ...

  4. python决策树分类预测_数据分类预测之python决策树

    决策树是一种树状结构,它的每一个叶节点对应着一个分类,非叶节点对应着在某个属性上的划分,根据样本在该属性上的不同取值将其划分成若干个子集.对于非纯的叶节点,多数类的标号给出到达这个节点的样本所属的类. ...

  5. 统计学习基础:数据挖掘、推理和预测_百度零基础深度学习笔记(三) 波士顿房价预测...

    波士顿房价预测 波士顿房价预测是一个经典的机器学习任务,期待构建一个房价预测模型,其数据中包含13个影响房价的因素和该类型房屋均价. 波士顿房价影响因素 数据预处理 数据预处理包括: 数据导入 数据形 ...

  6. 基于ai的预测_基于AI的预测性维护可增强战备状态,减少飞行故障

    基于ai的预测 By Philong Duong, Senior Product Manager 高级产品经理Philong Duong As a leading provider of AI-ena ...

  7. 序列每天从1开始_时间序列预测一

    什么是时间序列: 时间序列可以看作是普通的二维的无序的特征矩阵向时间空间的拓展,相对来说多了仅仅一个维度但也是非常重要的时间维度: 时间序列是按时间顺序进行的一系列观察,通常包括了连续性时间序列数据和 ...

  8. python时间序列指数平滑预测_时间序列分析预测实战之指数平滑法

    一.什么是时间序列分析? 在工作中,常常要对数据进行预测,确定业务未来的发展趋势,进而配置相关的营销策略.制定业务目标,由此引申出了一个重要的用数据预测未来的方法--时间序列分析,今天和大家分享就是实 ...

  9. 2009年9月三级网络技术考前预测_填空题部分

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 2009年9月 ...

最新文章

  1. css层叠样式表(一)
  2. ACMNO.2 输入一个华氏温度,要求输出摄氏温度。公式为 c=5(F-32)/9 输出要求有文字说明,取位2小数。 输入 一个华氏温度,浮点数 输出 摄氏温度,浮点两位小数
  3. 二 RHEL7.2下的Docker配置
  4. nginx配置文件基本配置
  5. 待处理,待学习(每日更新)
  6. what happens if PR_TYPE is mapped to a given transaction type
  7. Linux多线程实践(9) --简单线程池的设计与实现
  8. 关于工厂创建问题,一个纠结的终结源于KFC
  9. python语言要多久_怎么自学python,大概要多久?
  10. Unity 防止数组索引越界的几种方法
  11. win 10 桌面路径还原到C盘拒绝访问
  12. 求循环小数的循环节C/C++
  13. 共享自习室创业项目分析
  14. android app卸载以后弹出用户反馈界面
  15. uni-app如何获取位置信息(经纬度)
  16. 压缩包解压后的文件名是乱码怎么解决
  17. t检验自由度的意义_在统计中自由度是什么?
  18. 智能客服vs人工客服,两者真水火不容?
  19. 无线充电产业爆发点到来 概念股迎机遇
  20. 在ThinkPHP中开启调试模式

热门文章

  1. 我们究竟还要学习哪些Android知识?附赠课程+题库
  2. 服务器重装 pe,WinPE 下安装 Windows Server 2003 服务器
  3. java主流微服务框架_Spring Boot作为当下最流行的微服务开发框架,一名合格的Java开发者一定有所了解,...
  4. 在idea中新建的text文件_开发属于自己的第一款 IDEA 插件!
  5. 20155305乔磊2016-2017-2《Java程序设计》第四周学习总结
  6. 微信企业号第三方应用开发[一]——创建套件
  7. hyper虚拟机下对centos进行动态扩容
  8. 扫雷游戏制作学习过程
  9. vue打包后放在 nginx部署时候的配置文件
  10. ZooKeeper編程01--RMI服務的多服務器管理