原假设和备择假设

Null and alternative hypothesis

推文的情绪(积极的、神经的或消极的)并不独立于推文中单词 "apple" 的出现。

什么是零假设和备择假设?

这肯定和编程无关

零假设(用 H0 表示)声明您的实验不会有任何观察到的效果。所以它可以表示为:

The sentiment of a tweet (positive, neural or negative) is independent of the appearance of the word "apple" in the tweet.

或者:

The appearance of the word "apple" does not predict sentiment in a tweet.

备择假设(H1 或 Ha)则相反,您将观察到实验结果的影响,它可以简单地表示为 H0 的否定:

There is a relationship between the sentiment of a tweet (positive, neural or negative) and the appearance of the word "apple" in the tweet.

也可以是对预期结果的陈述,例如:

A tweet that contains the word "apple" is more likely to be positive.