File:Laplace pdf log.svg

Uploaded by Shiyu Ji
Upload date 2020-01-23T18:56:16Z
MIME type image/svg+xml
Dimensions 800 × 600 px
File size 12.7 KB

Summary

Description
English: Log scaled PDF plots of Laplace distributions
Date
Source Own work
Author Shiyu Ji
SVG development
InfoField
 The SVG code is valid.
 This plot was created with gnuplot.
Source code
InfoField

Gnuplot code

set term svg size 800,600 enhanced font 'Arial, 24'
set output 'laplace_pdf_log.svg'

set xrange [-3:3]
set xtics 1
set logscale y
set xzeroaxis lt -1 lc rgb "black" lw 1
set yzeroaxis lt -1 lc rgb "black" lw 1

# Draw the Laplace distribution's pdf
set key default

f(x,m,b) = 0.5/b * exp(-abs(x-m)*1.0/b)

plot f(x, 0, 1) t "μ=0, b=1" lc rgb "red" lw 5, \
     f(x, 0, 2) t "μ=0, b=2" lc rgb "black" lw 5, \
     f(x, 0, 4) t "μ=0, b=4" lc rgb "blue" lw 5, \
     f(x, -5, 4) t "μ=-5, b=4" lc rgb "green" lw 5


set term x11
set output

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Log scaled Probability density plots of Laplace distributions

Items portrayed in this file

depicts

23 January 2020

image/svg+xml

12,985 byte

42add47459f7f6ded3692ef6435f5e6b0fe40af8

Category:CC-BY-SA-4.0 Category:Probability distributions Category:Self-published work Category:Valid SVG created with Gnuplot code