Skip to main content
added 168 characters in body
Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

(Cannot connect to FinancialData, so I used fakeReturns instead of logr.)

 fakeReturns = RandomVariate[NormalDistribution[], 600];

 Plot[SurvivalFunction[HistogramDistribution[fakeReturns], x], {x, -3, 3},
   Exclusions -> None]

It seemsenter image description here

Or, Histogram using with Round[logr,.001] ("typical values") as bin delimiters and "SF" (i.e., SurvivalFunction) as the height function gives something close to what I think you need:

 fakeReturns = RandomVariate[NormalDistribution[], 600];
Histogram[fakeReturns, {Union@Round[fakeReturns, 0.1]}, "SF", PlotRange -> Full]

enter image description here

or, with a different specification of "typical" values:

 Histogram[fakeReturns, {Union@Round[fakeReturns, 0.01]}, "SF", PlotRange -> Full]

enter image description here

(Cannot connect to FinancialData, so I used fakeReturns instead of logr.)

It seems Histogram using Round[logr,.001] as bin delimiters and "SF" (i.e., SurvivalFunction) as the height function gives something close to what I think you need:

 fakeReturns = RandomVariate[NormalDistribution[], 600];
Histogram[fakeReturns, {Union@Round[fakeReturns, 0.1]}, "SF", PlotRange -> Full]

enter image description here

or, with a different specification of "typical" values:

 Histogram[fakeReturns, {Union@Round[fakeReturns, 0.01]}, "SF", PlotRange -> Full]

enter image description here

(Cannot connect to FinancialData, so I used fakeReturns instead of logr.)

 fakeReturns = RandomVariate[NormalDistribution[], 600];

 Plot[SurvivalFunction[HistogramDistribution[fakeReturns], x], {x, -3, 3},
   Exclusions -> None]

enter image description here

Or, Histogram with Round[logr,.001] ("typical values") as bin delimiters and "SF" (i.e., SurvivalFunction) as the height function gives:

Histogram[fakeReturns, {Union@Round[fakeReturns, 0.1]}, "SF", PlotRange -> Full]

enter image description here

or, with a different specification of "typical" values:

 Histogram[fakeReturns, {Union@Round[fakeReturns, 0.01]}, "SF", PlotRange -> Full]

enter image description here

Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

(Cannot connect to FinancialData, so I used fakeReturns instead of logr.)

It seems Histogram using Round[logr,.001] as bin delimiters and "SF" (i.e., SurvivalFunction) as the height function gives something close to what I think you need:

 fakeReturns = RandomVariate[NormalDistribution[], 600];
Histogram[fakeReturns, {Union@Round[fakeReturns, 0.1]}, "SF", PlotRange -> Full]

enter image description here

or, with a different specification of "typical" values:

 Histogram[fakeReturns, {Union@Round[fakeReturns, 0.01]}, "SF", PlotRange -> Full]

enter image description here