New answers tagged

5 votes

Nearest-neighbor density estimation in Mathematica

Why not use the "Adaptive" option for SmoothKernelDistribution? This is in the same spirit as having a kernel density ...
JimB's user avatar
  • 40.3k
3 votes

Leading significant digits

To get the areas of the triangles we may define a function: a[0]=100; a[n_]= a[0] (3/4)^n; To get the first digits, we may use the function "RealDigits". ...
Daniel Huber's user avatar
  • 47.1k
0 votes
Accepted

Bandwidth selection for histograms in bounded domain?

It is difficult to understand your non-comment code. Here is a partial answer to your question:...
user64494's user avatar
  • 24k
6 votes
Accepted

One more incorrect result of CDF

The issue seems to be with DiscreteUniformDistribution when one of the parameters is an integer and the other an undefined variable. The following all give the ...
JimB's user avatar
  • 40.3k
1 vote

Optimization of a Markov сhain with symbolic transition rate

I don't know what you want to do honestly. if you want everything to be symbolic,how about using characteristic function? Consider a conditional random walk. Let's say that if the value of i is ...
Xminer's user avatar
  • 1,215
4 votes
Accepted

An incorrect result of CDF

I suspect that CDF is having trouble because t isn't restricted to non-negative integers and/or the specific values of the ...
JimB's user avatar
  • 40.3k
1 vote

An incorrect result of CDF

...
Gosia's user avatar
  • 838
0 votes

Manually modify lists for survival analysis

Essentially picking an entry from the lower triangularized matrix t. ...
Syed's user avatar
  • 41.5k
1 vote

Manually modify lists for survival analysis

ClearAll[h] h[v_ : 0, nv_ : 0] := SequenceReplace[p : {v, ___} :> Splice[nv & /@ p]]; Examples: ...
kglr's user avatar
  • 384k
1 vote

Manually modify lists for survival analysis

Define a function that changes its definition when it encounters a 0 and map it on the input list: ...
kglr's user avatar
  • 384k
1 vote

Manually modify lists for survival analysis

Using PositionSmallest (new in V 13.2) ...
eldo's user avatar
  • 47.6k
2 votes

Any luck estimating a multivariate hidden Markov process?

It looks like you are trying to fit a 2-state HiddenMarkovProcess where the emission distributions from each state are both 2-variable ...
ydd's user avatar
  • 3,453

Top 50 recent answers are included