Comments (3)
Christensen starts the loop with 0 that effectively sets ECount=1, whereas in _calc the loop start directly with 1, while ECount=0
Example:
from scipy.stats import kendalltau
x1 = [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]
x2 = [1, 4, 7, 1, 1, 3, 1, 6, 7, 7, 3, 6, 2, 7, 2, 8]
kt12 = Tau(x1,x2)
kt21 = Tau(x2,x1)
tau = kendalltau(x1,x2)[0]
tau
Out[277]: 0.15494494670022804
kt12.tau
Out[278]: 0.2541027354465522
kt21.tau
Out[279]: 0.16666666666666666
from giddy.
Thank you for submitting this issue.
Can you post an example that reveals that this is a bug?
As it stands, we have followed the algorithm reported by Christensen (2005) which initializes ECount=0.
from giddy.
Thanks for the update.
from giddy.
Related Issues (20)
- update supported for Python version HOT 3
- How to use spatial_markov model by adopting my own data HOT 1
- how use my own data HOT 1
- notebook links are returning 404 HOT 2
- fail gracefully when `splot` not installed
- swap out `setup.py` for `pyproject.toml`
- giddy import fails due to numba missing `generated_jit` HOT 5
- environment.yml out of date
- Notebook links on landing page are broken HOT 1
- exposing the package version HOT 16
- np.int depreceated HOT 10
- Not a bug and not a request BUT is giddy.markov.Spatial_Markov stochastic? HOT 6
- the spatial lags : related to issue 215 HOT 4
- failing tests (numpy outputting data type in addition to the value) HOT 4
- adopt `ruff` for both linting & formatting
- add explicit Mac intel testing environment
- CI maint for standard naming, oldest dependencies, & Python 3.12
- drop 3.9 as minimally support Python version? HOT 1
- update chat from `gitter` to `discord` HOT 3
- some linting adjustments [2024-07-15]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giddy.