Skip to content

Commit 374674f

Browse files
CLN: Fix typos
1 parent 803b841 commit 374674f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/source/pitfalls.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ relative to Poisson, that is the true model has the same dispersion as Poisson
108108
or is underdispersed, is inconsistent with the overdispersion assumption of
109109
the Negative Binomial distribution. The loglikelihood and its derivatives, as
110110
implemented in statsmodels, cannot be evaluated for dispersion parameter at
111-
zero dispersion or in a positve neighborhood of zero dispersion.
111+
zero dispersion or in a positive neighborhood of zero dispersion.
112112

113113
Zero inflated models currently use either Logit or Probit as model for
114114
inflation. This means that no inflation is at the boundary of the parameter

statsmodels/tsa/stl/_stl.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ cdef class STL(object):
246246
self.low_pass_deg = low_pass_deg # ildeg
247247
self.robust = robust
248248
if not _is_pos_int(low_pass_jump, False):
249-
raise ValueError('low_pass_jump must be a positve integer')
249+
raise ValueError('low_pass_jump must be a positive integer')
250250
if not _is_pos_int(seasonal_jump, False):
251-
raise ValueError('seasonal_jump must be a positve integer')
251+
raise ValueError('seasonal_jump must be a positive integer')
252252
if not _is_pos_int(trend_jump, False):
253-
raise ValueError('trend_jump must be a positve integer')
253+
raise ValueError('trend_jump must be a positive integer')
254254
self.low_pass_jump = low_pass_jump
255255
self.seasonal_jump = seasonal_jump
256256
self.trend_jump = trend_jump

statsmodels/tsa/stl/tests/test_stl.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,17 @@ def test_jump_errors(default_kwargs):
232232
class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
233233
endog = class_kwargs["endog"]
234234
period = class_kwargs["period"]
235-
with pytest.raises(ValueError, match="low_pass_jump must be a positve"):
235+
with pytest.raises(ValueError, match="low_pass_jump must be a positive"):
236236
STL(endog=endog, period=period, low_pass_jump=0)
237-
with pytest.raises(ValueError, match="low_pass_jump must be a positve"):
237+
with pytest.raises(ValueError, match="low_pass_jump must be a positive"):
238238
STL(endog=endog, period=period, low_pass_jump=1.0)
239-
with pytest.raises(ValueError, match="seasonal_jump must be a positve"):
239+
with pytest.raises(ValueError, match="seasonal_jump must be a positive"):
240240
STL(endog=endog, period=period, seasonal_jump=0)
241-
with pytest.raises(ValueError, match="seasonal_jump must be a positve"):
241+
with pytest.raises(ValueError, match="seasonal_jump must be a positive"):
242242
STL(endog=endog, period=period, seasonal_jump=1.0)
243-
with pytest.raises(ValueError, match="trend_jump must be a positve"):
243+
with pytest.raises(ValueError, match="trend_jump must be a positive"):
244244
STL(endog=endog, period=period, trend_jump=0)
245-
with pytest.raises(ValueError, match="trend_jump must be a positve"):
245+
with pytest.raises(ValueError, match="trend_jump must be a positive"):
246246
STL(endog=endog, period=period, trend_jump=1.0)
247247

248248

0 commit comments

Comments
 (0)