reference:
https://www.runoob.com/nodejs/nodejs-tutorial.html

自下而上的思考,自上而下的表达。
在较高层次的主题之间尽量用归纳法进行论述,在低层次用演绎方式论述。
通过纵向的思想引出主题和子主题之前的纵向关系。
“思想”定义:向读者发出新信息并引发读者疑问的语句。
纵向的思想实质是“疑问/回答”形式,这样更能吸引读者注意力。
以“情境、冲突、疑问、回答”方式来开篇,情境和冲突是读者熟知的事实。通过明确读者最初关心的问题,让后续的内容能吸引读者注意力。
四种主要的逻辑顺序:
界定问题:
结构化分析问题:
经典:建立诊断框架和逻辑树的指导来分析和引导思维,不仅能提高解决问题的效率,而且还简化了把结果构建成金字塔的工作。无目的的收集资料,会造成60%的无用功!!!
设计诊断框架的方法:其本身呈现有行结构/根据因果关系分解构建/归类分组
Reference:
https://www.jianshu.com/p/bdbf71572911
https://book.douban.com/review/7121761/
https://zhuanlan.zhihu.com/p/78548168
要理解Pearson相关系数,首先要理解协方差(Covariance),协方差是一个反映两个随机变量相关程度的指标,如果一个变量跟随着另一个变量同时变大或者变小,那么这两个变量的协方差就是正值,反之相反,公式如下:
$$
\operatorname{cov}(x, y)=\frac{\sum_{i=1}^{n}\left(x_{i}-x_{\mu}\right)\left(y_{i}-y_{\mu}\right)}{n-1}
$$
虽然协方差能反映两个随机变量的相关程度(协方差大于0的时候表示两者正相关,小于0的时候表示两者负相关),但是协方差值的大小并不能很好地度量两个随机变量的关联程度。
为了更好的度量两个随机变量的相关程度,引入了Pearson相关系数,其在协方差的基础上除以了两个随机变量的标准:
$$
\delta^{2}=\frac{\sum_{i=1}^{n}\left(x_{i}-x_{\mu}\right)}{n}
$$
容易得出,pearson是一个介于-1和1之间的值,当两个变量的线性关系增强时,相关系数趋于1或-1;当一个变量增大,另一个变量也增大时,表明它们之间是正相关的,相关系数大于0;如果一个变量增大,另一个变量却减小,表明它们之间是负相关的,相关系数小于0;如果相关系数等于0,表明它们之间不存在线性相关关系。
$$
p_{x, y}=\operatorname{cor}(x, y)=\frac{\operatorname{cov}(x, y)}{\delta x \delta y}=\frac{E\left[\left(x-x_{\mu}\right)\left(y-y_{\mu}\right)\right]}{\delta x \delta y}
$$
斯皮尔曼相关性系数,通常也叫斯皮尔曼秩相关系数。“秩”,可以理解成就是一种顺序或者排序,那么它就是根据原始数据的排序位置进行求解,这种表征形式就没有了求皮尔森相关性系数时那些限制。下面来看一下它的计算公式:
$$
\rho_{s}=1-\frac{6 \sum d_{i}^{2}}{n\left(n^{2}-1\right)}
$$
计算过程就是:
对两个变量(X,Y)的数据进行排序(统一用升序或降序),每个变量在排序之后的位置即为其秩次(X’, Y’),原始位置相同的X,Y的秩次X’, Y’的差值即为 $d_i$ 。n是变量的个数(或者对数)。
Kendall相关系数是对于定类变量的统计,之前讲pearson是对定距变量的统计,而spearman是对定序变量的统计。
Kendall相关系数的计算公式:
$$
Kendall1=\frac{C-D}{\frac{1}{2} N\left(N-1\right)}
$$
另一个计算公式:
$$
Kendall2=\frac{C-D}{\sqrt{\left(N_{3}-N_{1}\right)\left(N_{3}-N_{2}\right)}}
$$
其中C表示的是两变量中一致性元素的对数,D是不一致性元素的对数。
举例来讲,如果要计算相关性的数据是一个nx2的矩阵M,那么如果 $m_{i,1}$ > $m_{j,1}$ 且 $m_{i,2} > m_{j,2}$,或 $m_{i,1} < m_{j,1}$ 且 $m_{i,2} < m_{j,2}$ ,则称 $m_i$ 和 $m_j$ 构成一个一致性元素对。反之则为不一致性元素对。
第一个和第二个公式的区别在于,当两变量任何一个中都不存在相同元素时用公式1,两变量中任何一个中存在相同元素用2。
其中N为样本数量。再说N3,N2,N1。
$$
\mathrm{N} 3=\frac{1}{2} N(N-1)
$$
N2、N1就比较复杂,它们各指向一个变量,但是计算方法一致:
$$
\mathrm{N} 2=\sum_{i=1}^{s} \frac{1}{2} v_{i}\left(v_{j}-1\right)
$$
s是指该变量中拥有相同元素的小集合的个数,v就是每个集合中元素的个数。
Reference:
https://blog.csdn.net/ichuzhen/article/details/79535226
https://blog.csdn.net/zmqsdu9001/article/details/82840332?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
https://www.jianshu.com/p/93fd5ab408ae
人在情绪高涨的时候,看什么都顺眼,做什么都顺手;人在情绪低落的时候,做什么都不顺手,做什么都别扭。
人们只要想着成功,成功的景象就会出现在心中。
新思想只有在真正相信它、对它着迷的人手中,才可以开怀结果。
平时表现良好,但因为没有足够的心理准备而在关键比赛场合失败的现象。
每个人都不能同时挑选两种或两种以上的行为准则或者目标信念,否则他的工作和生活很快就会陷入混乱。
我们今天的选择将决定我们三年后的生活,什么样的选择会产生什么样的结果。
当一个人对某一特定目标的追求进行到一半时,通常会对自己能否完成最终目标而产生怀疑,甚至对完成这一目标的意义产生怀疑。
执着能让我们获得更多的机会,执着能让我们的行为受到钦佩,执着能让我们距离成功更近一步。
事情如果有变坏的可能,不过这种可能性有多小,它总会发生,并造成最大可能的破坏。
期待机会,却又恐惧机会,对迎面而来的机会感到恐惧。
因失败而产生的绝望、抑郁和意志消沉。
每个人都不可能是全才,每个人都有其独特的优势和劣势,只要让一个人的优势得到充分的发挥,他一定能够取得惊人的成绩。
通常来说,在双方有共同利益的时候,人们都会优先选择竞争,而不是选择对双方都有利的合作。
人们第一次与某物或某人接触时会给对方留下深刻的印象。
人与人相遇靠的是一点缘分,人与人相处靠的则是一份诚意。
南风法则也叫温暖法则,它源于法国作家拉·封丹的一则寓言:南风的温暖比北风的凌冽更容易让人脱下大衣。
在人们的交际过程中,如果彼此间存在着某种共同之处或者相似的地方,那么双方就更容易互相接近,也更容易萌生亲密感。
一个人往往会因为有些小小的缺点,而显得更加可敬可爱。
良好的人际关系是在双方间自我爆率逐渐增加的过程中发展起来的。
同情容易引起好感
人们对自己的关注大多胜于他人,所以如果你想进入他人的世界,获得他人的认可,就要学会关注他人。
要让对方高一些,就必须使自己低一些;要让自己高一些,就必须使对方低一些。
见面频率低的朋友远不如见面频率高的朋友间的情谊深。
刺猬彼此靠近取暖,但是距离太近又会被刺痛。
一个人若是接受了他人提出的一个小要求后,他会更容易接受后续更高的要求。
沉默可以给人一种特别的压力,让对方望而却步,从而在适当的时候化解矛盾和冲突。
先提出一个大要求,在被拒绝之后,再提出小要求,小要求被接受的可能性更高。
站在对方的立场上去体验和思考问题。
人们一旦被贴上某种标签,就会成为标签所标定的人。
强者不一定是胜利者,但胜利迟早都属于那些有信心的人。
全面认识自己,知己知彼,摆脱盲从的误区。
人们识记一系列事物时,通常末尾部分形成的记忆最强烈。
人们一旦选择进入某一路径,无论这一路径是好是坏,惯性的力量会使这一选择不断自我强化,让其轻易走不出去。
人们在刚刚步入某一领域时,常常在一段时间内完全被置于自生自灭的状态下。
在心中梳理某方面的榜样有助于我们梳理正确的人生理想。
同样一杯温水,如果摸之前先摸了冷水,会觉得更热;如果摸之前先摸了热水,会觉得更冷。
没有什么比市区热忱更使人觉得垂垂老矣。精神状态不佳,一切都将处于不佳状态。
第一天的工作没有做完,在休息时间,也会出现心里紧张状态。
不知道从何下手的事情,搁置一段时间后会忽然茅塞顿开。
温水煮青蛙,安逸不仅能让我们忽略周围环境的变化,还会让我们失去很多机会。
如果水平不够提前升值,容易出现:
因为可以从华盛顿大学食堂看到雷尼尔山峰,教授们就算工资低一些也愿意在这里工作。
胜利需求、安全需求、归属与爱的需求、尊重需求、自我实现需求。
刻板效应又叫定型效应,道听途说或者先入为主的想法都会使你的认知与真实情况产生极大的偏差。因此,经常与下属沟通至关重要。
多看事情的正面,不断的表扬,会使人进步更快。
向一个人传递积极的期望,他就会进步得更快,发展得更好。
成就需要、权利需要、友谊需要。
鲶鱼会捕食沙丁鱼,在沙丁鱼的鱼槽中放入一条鲶鱼,会使沙丁鱼保持活力。
因为有压力,所以有动力。
热炉效应形象地阐述了企业的惩处原则,即警告性原则、一致性原则、及时性原则、公平性原则。
有时管理人员越多,工作效率反而越差。
在处理一件事时,如果要求多个个体共同完成,每个个体的责任感就会变弱,也叫做旁观者效应。
Suppose that Alice is transferring 8 bitcoins to Bob, the process goes like this:
In order to achieve a successful bitcoin transaction, the following five key technologies are needed:
Bitcoin network does not have a central server. It is composed of many full nodes and light nodes. Among them:
Compared to traditional centralized transaction system, the Bitcoin uses a distributed ledger in which users open “accounts,” strictly speaking, addresses. Everyone can set up an “account” on the bitcoin blockchain and get a pair of a public key and a private key. The address is the hash value of the public key. We interact with the address through the private key.
Each of us has a wallet, which stores a private key. When two people transfer bitcoin to each other, they can do it directly through their wallet software.
Here, the decentralization of bitcoin is reflected in the fact that there is no longer a centralized organization for centralized management of ledgers. The account books are stored in the decentralized network composed of many nodes; there is no longer a centralized organization to help us manage accounts and deal with transactions. Everyone manages their own wallets, and the transactions are recorded by the distributed account books.
Some people will ask whether the bitcoin in our address is recorded in the account book or whether there seems to be a “centre” to store our assets. In fact, this ledger is stored in the decentralized network in a distributed way, so from this perspective, it can be seen as decentralized.
In contrast, for centralized online payment systems, centralized servers usually manage centralized ledgers. For the bitcoin system, the system behind it is a decentralized network, and network nodes jointly maintain a distributed ledger.
(to be continued)
Here we illustrate it by means of comparison.
There have always been three forms of “currency” in the digital world:
Comparison of three forms and cash in the physical world:
| Cash in physical world | Centralized e-cash | Centralized computer points | Decentralized e-cash | |
|---|---|---|---|---|
| Issuance | Centralized | Centralized | Centralized | Decentralized |
| Transaction | Decentralized | Centralized | Centralized | Decentralized |
The relationship between three forms and cash in the physical world:
| Cash in physical world | Centralized e-cash | Centralized computer points | Decentralized e-cash | |
|---|---|---|---|---|
| Map physical currency? | / | Yes | No | No |
| Self-issue? | / | No | Yes | Yes |
From the shallower to the deeper, it has the following aspects:
Later, in the process of developing and applying blockchain technology, we have to adjust from the most extreme ideal state to the practical direction.
Most blockchain projects are now managed by foundations. For example, Ethereum is co-ordinated between founder Vitalik Butlin and the Ethereum foundation, rather than being fully autonomous as the bitcoin community.
Main design principles of blockchain system:
Four key features by William Mougayar:
What bitcoin needs to do is a “point-to-point e-cash system”, in which the sender and the receiver deal directly without the intervention of intermediaries.
In order to remove the trusted third party and other intermediaries, we need to solve the “double blossom problem”. In the summary, Nakamoto presents a point-to-point network solution, and introduces the core of the solution - blockchain. He didn’t mention the word block chain, but in the paper he mentioned the two concepts of block and chain respectively.
The blockchain of bitcoin is a data block with time stamp and data storage and a chain connected by hash pointer based on workload proof.
This chain, or ledger, is stored on nodes of bitcoin network in a distributed way, so it is also called distributed ledger.
Nodes in bitcoin network perform encryption hash calculation according to rules to compete for the right to generate new blocks. After the node wins the competition, it gets the bookkeeping right. When it generates a block and becomes the latest block, it gets the mining reward corresponding to the new block.
Workload proof is also the security mechanism of blockchain account book. This chain cannot be modified without redoing the large amount of calculation required by “proof of workload”, which ensures the reliability of the data on the blockchain.
At any moment, the longest chain is the final record accepted by all.
Since the longest chain is completed by the main computing power in the network, as long as they do not cooperate with attackers, the longest chain they generate is reliable. This principle is called the “longest chain principle”.
Bitcoin’s decentralized network architecture is very simple and requires very little infrastructure. It can run on the Internet network. Computer nodes can leave or join the decentralized network at any time. When they join, they only need to follow the longest chain principle.
reference:
http://c.biancheng.net/view/1889.html
In the digital world, if we want to create a disintermediated and decentralized “e-cash”, we also need to design a complete financial system.
This system should be able to solve a series of problems as follows:
To solve the problems, Nakamoto developed Bitcoin system, which consists of 3 layers:
In the design of bitcoin system, Nakamoto creatively combines computer computing power competition with economic incentives to form a proof of work (POW) consensus mechanism, which enables mining computer nodes to complete the function of currency issuance and accounting in the calculation competition, as well as the operation and maintenance of blockchain ledger and decentralized network.
This forms a complete cycle: the mining machine mining (calculation power competition), the completion of decentralized accounting (operation system), and the economic incentive (economic reward) in the form of bitcoin.
Bitcoin’s workload proof consensus mechanism is a connecting layer, connecting the upper application and the lower technology: the upper layer is the issuance, transfer and anti-counterfeiting of e-cash; the lower layer is the node to the central network to reach an agreement and update the distributed ledger.
Blockchain is the technology of “value representation” and “value transfer” in the digital world. One side of blockchain coin is the encrypted digital currency or token representing value, and the other side is the distributed ledger and decentralized network for value transfer.
Blockchain is an underlying technology derived from bitcoin. In other words, bitcoin is the first successful application of blockchain technology.
When people talk about Blockchain, what do they mean:
When referring to blockchain, ordinary people often refers to the fourth largest scope, namely “account book + Network + protocol + currency”. In the industry, when people refer to blockchain, they usually refer to the third scope, namely “account book + Network + Protocol”. When talking about blockchain, many software developers usually refer to the second range of “ledger + network”.
reference:
http://c.biancheng.net/view/1884.html
An evaluation index system refers to an organic whole with an internal structure composed of multiple indicators that characterize various aspects of the evaluation object and their interconnections.
In order to make the indicator system scientific and standardized, the following principles should be followed when constructing it:
And the constructed index system should possess these features:
3E theory refers to:
3E system represents the trend of diversified development of performance evaluation system. Through the establishment of 3E standard system, the soft environment evaluation system is more scientific and transparent, and the efficiency and operability of performance evaluation are increased, which greatly promotes the improvement and development of public policy evaluation system.