notes for graph topic for Bpharm 8th semester

SubhajitDas984791 38 views 34 slides Aug 24, 2024
Slide 1
Slide 1 of 34
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34

About This Presentation

notes of graph for bpharm 8th sem


Slide Content

Graphs
UNIT -III
4/9/2024 1

•Sometimessignificanceiffigures(i.e.numbers)in
tabularpresentationisnoteasilyunderstood.
•Insuchcases,healthresearchersandotherexecutive
preferdiagrammaticpresentationwhichisreadily
understoodwiththehelpofgraphs,chartsor
diagrams.
•Graphsofstatisticaldatabringoutclear&relative&
arehelpfulinfindingouttherelationshipbetweentwo
ormoresetsofdata.•
•Diagrammaticrepresentationofdata.
3
Graphs
24/9/2024

•Imagineyoujustdidasurveyofyourfriendstofindwhichkindof
movietheylikedbest:
Table: Favorite Type of Movie
3
Graphs
34/9/2024
Comedy Action Romance Drama SciFI
4 5 6 1 4
•Itisareallygoodwaytoshowrelativesizes:wecansee
whichtypesofmoviearemostliked,andwhichareleast
liked,ataglance.

3
Types of Graphs
4
•Histogram
•Pie Chart
•Bar Diagram
•Statistical Map
•Frequency Polygon
•Time series plot
•Cubic Graph
•Response Surface Plot
•Counter plot Graph
4/9/2024

3
Histogram
5
❖Histogram:
❖Agraphshowingthedifferencesinfrequenciesor
percentagesamongcategoriesofaninterval-ratiovariable.
❖Thecategoriesaredisplayedascontiguousbars,with
widthproportionaltothewidthofthecategory&height
proportionaltothefrequencyorpercentageofthat
category.
❖Ahistogramisagraphicaldisplayofdatausingbarsof
differentheights.
❖Inahistogram,eachbargroupsnumbersintoranges.
❖Tallerbarsshowthatmoredatafallsinthatrange.
❖Ahistogramdisplaystheshapeandspreadofcontinuous
sampledata.
❖Ahistogramisanapproximaterepresentationofthe
distributionofnumericaldata.
4/9/2024

Histogram
4/9/2024 6
•Histogramisonetypeofgraphicalpresentationofdata
obtainedfromanysource.
•Thisiseasymethodtorepresentthedataandquick
understandingway.
•Histogramshouldbedesignedinvariousotherwayto
revealmorecomplicateddatainsinglesheet.
•Histogramhavinggreatimportanceinindustrialand
educationalpointofview.
•Differentstatisticalsoftwareplayingmajorroleto
showtheresults&reportsinhistogramsindifferent
organizations.

Types of Histogram
Thehistogramcanbeclassifiedbasedondifferenttypes
ofdistributions,suchas
✓Normaldistribution,
✓Skeweddistribution,
✓Bimodaldistribution,
✓Multimodaldistribution,
✓Combdistribution,
✓Edgepeakdistribution,
✓Dogfooddistributions,
✓Heartcutdistribution,andsoon.
Usedtorepresentthesedifferenttypesofdistributions.
Differenttypesofahistogramare
❑Uniformhistogram,
❑Symmetrichistogram,
❑Bimodalhistogram,
❑Probabilityhistogram.
4/9/2024 7

Types of Histogram
UniformHistogram
•Auniformdistributionrevealsthatthenumber
ofclassesistoosmall,andeachclasshasthe
samenumberofelements.
•Itmayinvolvedistributionthathasseveral
peaks.
4/9/2024 8
Uniform Histogram

Types of Histogram
4/9/2024 9
BimodalHistogram
•Ifahistogramhastwopeaks,itissaidtobebimodal.
•Bimodalityoccurswhenthedatasethasobservations
ontwodifferentkindsofindividualsorcombined
groupsifthecentresofthetwoseparatehistograms
arefarenoughtothevariabilityinboththedatasets.

Types of Histogram
4/9/2024 10
SymmetricHistogram
❖Whenyoudrawtheverticallinedownthecentreof
histogram,andthetwosidesareidenticalinsizeand
shape-Symmetrichistogram.
❖Thediagramisperfectlysymmetriciftherighthalf
portionoftheimageissimilartheleft.
❖Thehistogramthatarenotsymmetricareknownas
skewed.

Types of Histogram
4/9/2024 11
ProbabilityHistogram
•AProbabilityHistogram shows apictorial
representationofadiscreteprobabilitydistribution.
•Itconsistsofarectanglecentredoneveryvalueofx,
andtheareaofeachrectangleisproportionaltothe
probabilityofthecorrespondingvalue.
•Theprobabilityhistogramdiagramisbegunby
selectingtheclasses.
•Theprobabilitiesofeachoutcomearetheheightsof
thebarsofthehistogram.

Types of Histogram
4/9/2024 12
ProbabilityHistogram
Thefollowingtablegivesthelifetimeof400neonlamps.
Drawthehistogramforthebelowdata:
Life time
in Hrs
No of
Lamps
300 –400 14
400 –500 56
500 –600 62
600 –700 86
700 –800 74
800 –900 62
900 –1000 48

Pie chart
4/9/2024 13
Piechart:
•Agraphshowingthedifferencesinfrequenciesor
percentagesamongcategoriesofanominaloran
ordinalvariable.
•Thecategoriesaredisplayedassegmentsofa
circlewhosepiecesaddupto100percentofthe
totalfrequencies.
•Theangleofasectorisproportionaltothe
frequencyofthedata.
•Apiechartisagoodwayofdisplayingdatawhen
youwanttoshowhowsomethingissharedor
divided.

Pie chart
4/9/2024 14
Too many categories can be messy!White
Black
American Indian
Asian
Pacific Islander
Two or more
87.7%
8.3%
2.8%
.5%
.8%
.6%
N = 35,919,174
Annual Estimates of U.S. Population 65 Years & Over by Race, 2003
ThePieChart:TheRaceand
EthnicityoftheElderly

Pie chart
4/9/2024 15
WecanreducesomeofthecategoriesWhite
Black
Other and two or more
87.7%
8.3%
4%
N = 35,919,174
Annual Estimates of U.S. Population 65 Years and Over, 2003

Bar Graph
4/9/2024 16
TheBarGraph:TheLivingArrangementsandLabor
ForceParticipationoftheElderly0
10
20
30
40
50
60
70
80
Living alone Married Other
Series1
Living Arrangements of Males (65
and Older) in US, 2000
Bargraph:
•Agraphshowingthe
differencesinfrequenciesor
percentages among
categoriesofanominaloran
ordinalvariable.
•Thecategoriesaredisplayed
asrectanglesofequalwidth
withtheirheightproportional
tothefrequencyor
percentageofthecategory.

Bar Graph
4/9/2024 17
Candisplaymoreinfobysplittingsex0
10
20
30
40
50
60
70
80
Living alone Married Other
Males
Females
Living Arrangement of U.S. Elderly (65 and Older)
by Gender, 2003

Bar Graph
4/9/2024 1877.1
57.2
18
63.4
44.3
9.8
0 20 40 60 80 100
55 to 59
60- to 64
65 +
Women
Men
Percent of Men and Women 55 Years and Over in
the Civilian Labor Force, 2002

The Statistical Map: The Geographic
Distribution of the Elderly
4/9/2024 19
•Wecandisplaydramatic
geographicalchangesin
Americansocietybyusinga
statisticalmap.
•Mapsareespeciallyuseful
fordescribinggeographical
variationsinvariables,such
as
•Populationdistribution,
•Votingpatterns,
•Crimesrates,or
•Laborforceparticipation

The Frequency Polygon
4/9/2024 20
Frequencypolygon:
•Agraphshowingthe
differencesinfrequenciesor
percentages among
categoriesofaninterval-
ratiovariable.
•Pointsrepresentingthe
frequenciesofeachcategory
areplacedabovethe
midpointofthecategoryand
arejointedbyastraightline.
Source:AdaptedfromU.S.Bureauofthe
Census,CenterforInternationalResearch,
InternationalDataBase,2003.
Population of Japan, Age 55 & Over,
2000, 2010, & 2020Population of Japan, Age 55 and Over, 2000,
2010, and 2020
0
2,000,000
4,000,000
6,000,000
8,000,000
10,000,000
12,000,000
55-59 60-6465-69 70-7475-79 80+
2000
2010
2020

Time Series Charts
4/9/2024 21
Timeserieschart:
Agraphdisplayingchangesin
avariablesatdifferentpoints
intime. Itshowstime
(measuredinunitssuchas
yearsormonths)onthe
horizontalaxisandthe
frequencies(percentagesor
rates)ofanothervariableonthe
verticalaxis.
Source: Federal Interagency Forum on
Aging Related Statistics, Older Americans
2004: Key Indicators of Well Being, 2004.
Percentage of Total U. S. Population 65
Years and Over, 1900 to 20500
5
10
15
20
25
1900192019401960 19802000202020402060

Time Series Charts
4/9/2024 22
Timeserieschart:
Agraphdisplayingchangesin
avariablesatdifferentpoints
intime. Itshowstime
(measuredinunitssuchas
yearsormonths)onthe
horizontalaxisandthe
frequencies(percentagesor
rates)ofanothervariableonthe
verticalaxis.
Source: U.S. Bureau of the Census, “65+
in America,” Current Population Reports,
1996, Special Studies, P23-190, Table 6-1.
Percentage Currently Divorced
Among U.S. Population 65 Years
and Over, by Gender, 1960 to 2040 0
2
4
6
8
10
12
14
16
1960 1980 2000 2020 2040
Males
Females

Cubic Graph
4/9/2024 23
•Acubicgraphisagraphinwhich
allverticeshave degree
three(3D).
•Inotherwords,acubicgraphisa
3-regulargraph.
•Cubicgraphsarealsocalled
trivalentgraphs.
•Ifthesmallestandthelargestmagnitudetobepresented
asintheratioof1:1000,thebardiagramscannotbeused
•Becauseoftheheightofthebiggestbarwouldbe1000
timestheheightofthesmallestbarandthustheywould
lookverydisproportionate.

Cubic Graph
4/9/2024 24
❑Ifwetakesquaresofthesidesifthesquare1:√1000i.e.
1:31.62i.e.1:32(approx.)whichwillagaindisproportionate
diagrams.
❑Ifcubeareusedtothepresentthisdata,thenthevolumeof
cubeofsideis'x'thenwetakethecuberootsi.e.1:3√1000
i.e.1:10,whichwillgivetoareasonablyproportionatediagram
Construction of a cube of side 'AB'
•ConstructasquareofsideABCD.
•DrawEFasbisectorperpendiculartobisectorofAB[thisis
donebyfindingthemidpointofABandthendrawinga
perpendicularatthepointlinetoAB]suchthatEF=AB
•JoinAE,CF,andEF.
•ThroughBdrawalineBGparalleltoAE,suchthatBG-AE.
•JoinEGandthroughGdrawalineGH/EFsuchthatGH=EF
•JoinDH
•RuboffthelinesCF,EFandFH.NowCDHGEAC isthe
requiredcube

Cubic Graph
4/9/2024 25

Cubic Graph
4/9/2024 26

Response Surface Plot
4/9/2024 27
➢Surfaceplotsarediagramsofthree-
dimensionaldata.
➢Ratherthanshowingtheindividual
datapoints,surfaceplotsshowa
functionalrelationshipbetweena
designateddependentvariable(Y),
andtwoindependentvariables(X
andZ).
➢Theplotisacompanionplottothe
contourplot.

Response Surface Plot
4/9/2024 28
➢A2-DgridofXandzis
constructed.
➢Therangeisgridisequaltothe
rangeofthedata.
➢Avalueiscalculatedforeachgrid
point.
➢ThisYvalueisaweightedaverage
ofalldatathatisnearthisgrid
point.
➢The3-Dsurfaceisconstructed
usingtheseaveragesvalues.
➢Hence,thesurfaceplotdoesnot
showthevariationateachgrid
point.

Response Surface Plot
4/9/2024 29

Contour Plot Graph
4/9/2024 30

Response Surface Plot
4/9/2024 31

Response Surface Plot
4/9/2024 32

Why use charts and graphs?
4/9/2024 33
–Whatdoyougain?
–abilitytodirectreaders’attentiontooneaspectoftheevidence
–abilitytoreachreaderswhomightotherwisebeintimidatedbythe
samedatainatabularformat
–abilitytofocusonbiggerpictureratherthanperhapsminor
technicaldetails
–Whatdoyoulose?
–abilitytoexaminenumericdetailofferedbyatable
–potentiallytheabilitytoseeadditionalrelationshipswithinthedata
–potentiallytime:oftenwegetcaughtupinselectingcolorsand
formattingchartswhenasimplyformattedtableissufficient

344/9/2024
Tags